Ow, sorry, I didn't see on your original message, my miss.
<loadExternsOnModules>false</loadExternsOnModules>

So this is a unknown bug.  Can you file a ticket for it?  A sample showing
the problem can help a lot =D

BTW, what version are you using?


VELO

On Thu, Dec 18, 2008 at 4:11 PM, gianni <[email protected]> wrote:

>
> I put this node in my configuration node, toggling the value causes
> the build to fail/succeed.
> <loadExternsOnModules>false</loadExternsOnModules>
>
> The pom is kind of big, let me know if should also include the master
> pom. Thanks!!
>
>
> <project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://
> www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://
> maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>
>        <parent>
>                <groupId>com.mtvi</groupId>
>                <artifactId>master-flex</artifactId>
>                <version>16</version>
>        </parent>
>        <name>MediaPlayer Loader</name>
>        <artifactId>mediaplayerloader</artifactId>
>        <version>${majorMinorVersion}.${patchVersion}</version>
>        <description>Description</description>
>        <modelVersion>4.0.0</modelVersion>
>        <groupId>com.mtvnet.player</groupId>
>        <packaging>swf</packaging>
>        <scm>
>                <url>http://fisheye.mtvi.com/browse/Flashdev/projects/core/
> mediaplayerloader/flex/trunk<http://fisheye.mtvi.com/browse/Flashdev/projects/core/mediaplayerloader/flex/trunk>
> </url>
>                <developerConnection>scm:svn:
> https://subversion.1515.mtvi.com/
> flashdev/projects/core/mediaplayerloader/flex/trunk<https://subversion.1515.mtvi.com/flashdev/projects/core/mediaplayerloader/flex/trunk>
> </
> developerConnection>
>                <connection>scm:svn:
> https://subversion.1515.mtvi.com/flashdev/
> projects/core/mediaplayerloader/flex/trunk<https://subversion.1515.mtvi.com/flashdev/projects/core/mediaplayerloader/flex/trunk>
> </connection>
>        </scm>
>    <properties>
>        <majorMinorVersion>1</majorMinorVersion>
>        <patchVersion>0-SNAPSHOT</patchVersion>
>    </properties>
>        <dependencies>
>                <dependency>
>                        <groupId>com.mtvnet.player</groupId>
>                        <artifactId>mediaplayerloaderapi</artifactId>
>                        <version>1.0</version>
>                        <type>swc</type>
>                </dependency>
>                <dependency>
>                        <groupId>com.mtvnet.player</groupId>
>                        <artifactId>mediaplayersdk</artifactId>
>                        <version>3.10-SNAPSHOT</version>
>                        <type>swc</type>
>                        <scope>external</scope>
>                </dependency>
>                <dependency>
>                        <groupId>org.puremvc</groupId>
>                        <artifactId>puremvc-as3-mc</artifactId>
>                        <version>1.0.4</version>
>                        <type>swc</type>
>                </dependency>
>
>        <!-- Flex-Mojos Unit testing support -->
>        <dependency>
>            <groupId>info.flex-mojos</groupId>
>            <artifactId>testing-support</artifactId>
>            <version>2.0M10</version>
>            <type>swc</type>
>            <scope>test</scope>
>        </dependency>
>        </dependencies>
>        <build>
>                <finalName>${artifactId}.${version}-local</finalName>
>                <resources>
>            <resource>
>                <directory>src/main/resources</directory>
>                <filtering>true</filtering>
>            </resource>
>        </resources>
>                <plugins>
>                        <plugin>
>                <groupId>org.apache.maven.plugins</groupId>
>                <artifactId>maven-resources-plugin</artifactId>
>                <executions>
>                    <execution>
>                        <id>process-as</id>
>                        <phase>process-resources</phase>
>                        <goals>
>                            <goal>resources</goal>
>                        </goals>
>                        <configuration>
>                            <outputDirectory>${basedir}/target/
> generated-as</outputDirectory>
>                        </configuration>
>                    </execution>
>                </executions>
>            </plugin>
>                        <plugin>
>                <groupId>info.flex-mojos</groupId>
>                <artifactId>flex-compiler-mojo</artifactId>
>                                <configuration>
>                                        <flexUnitCommand>
>
> <argument>gflashplayer</argument>
>
> <argument>${project.build.testOutputDirectory}/TestRunner.swf</
> argument>
>                    </flexUnitCommand>
>                                        <skipTests>true</skipTests>
>                                        <sourceFile>Loader.mxml</sourceFile>
>                                        <sourcePaths>
>                        <path>${project.build.sourceDirectory}</path>
>                        <path>${basedir}/target/generated-as</path>
>                    </sourcePaths>
>                    <moduleFiles>
>
>  <module>/module/LoaderModule.mxml</module>
>                                        </moduleFiles>
>                    <includeSources>
>                        <param>${project.build.sourceDirectory}</
> param>
>                        <param>${basedir}/target/generated-as</param>
>                    </includeSources>
>
>  <loadExternsOnModules>false</loadExternsOnModules>
>                                        <rslUrls>
>                                                <url>
> http://media.mtvnservices.com/global/flex/rsl/
> framework_3.0.0.477.swz</url>
>                                                <url>
> http://media.mtvnservices.com/global/flex/rsl/
> framework_3.0.0.477.swf</url>
>                                        </rslUrls>
>                                        <policyFileUrls>
>                                                <url>
> http://media.mtvnservices.com/crossdomain.xml</url>
>                                                <url>
> http://media.mtvnservices.com/crossdomain.xml</url>
>                                        </policyFileUrls>
>                                </configuration>
>                        </plugin>
>                        <!-- Copy dependencies into the libs folder so
> code-complete and in-
> IDE building functions if desired -->
>            <plugin>
>                        <groupId>org.apache.maven.plugins</groupId>
>                        <artifactId>maven-dependency-plugin</artifactId>
>                        <executions>
>                                <execution>
>                                <id>copy-dependencies</id>
>                                <phase>validate</phase>
>                                <goals>
>                                        <goal>copy-dependencies</goal>
>                                </goals>
>                                <configuration>
>
>  <outputDirectory>libs</outputDirectory>
>
>  <overWriteReleases>false</overWriteReleases>
>
>  <overWriteSnapshots>false</overWriteSnapshots>
>
>  <overWriteIfNewer>true</overWriteIfNewer>
>
>  <excludeTransitive>true</excludeTransitive>
>
> <excludeGroupIds>com.adobe.flex.sdk,com.adobe.flex.framework</
> excludeGroupIds>
>                                </configuration>
>                                </execution>
>                        </executions>
>                </plugin>
>                </plugins>
>        </build>
>        <profiles>
>                <profile>
>                        <id>hudson</id>
>                        <build>
>
>  <finalName>${artifactId}.${version}-${BUILD_NUMBER}</finalName>
>                                <plugins>
>                                        <plugin>
>
>  <artifactId>maven-antrun-plugin</artifactId>
>                                                <executions>
>                                                        <execution>
>
>  <id>copy-to-teamsite</id>
>
>  <phase>deploy</phase>
>                                                                <goals>
>
>  <goal>run</goal>
>                                                                </goals>
>
>  <configuration>
>
>  <tasks>
>
>    <taskdef resource="net/sf/antcontrib/antcontrib.properties" /
> >
>
>    <if>
>
>            <isset property="teamsite.root" />
>
>            <then>
>
>                    <echo>Copying ${basedir}/target/${build.finalName}.swf to
> $
> {teamsite.root}/WORKAREA/MEDIAPLAYER/docs/apps/player/flex/</echo>
>
>                    <copy file="${basedir}/target/${build.finalName}.swf"
> todir="${teamsite.root}/WORKAREA/MEDIAPLAYER/docs/apps/player/flex/" /
> >
>
>                    <rename src="${teamsite.root}/WORKAREA/MEDIAPLAYER/docs/
> apps/player/flex/${build.finalName}.swf" dest="${teamsite.root}/
> WORKAREA/MEDIAPLAYER/docs/apps/player/flex/Loader.swf" />
>
>                    <!-- module -->
>
>                    <echo>Copying ${basedir}/target/${build.finalName}-
> LoaderModule.swf to ${teamsite.root}/WORKAREA/MEDIAPLAYER/docs/apps/
> player/flex/module/</echo>
>
>                    <copy file="${basedir}/target/${build.finalName}-
> LoaderModule.swf" todir="${teamsite.root}/WORKAREA/MEDIAPLAYER/docs/
> apps/player/flex/module/" />
>
>                    <rename src="${teamsite.root}/WORKAREA/MEDIAPLAYER/docs/
> apps/player/flex/module/${build.finalName}-LoaderModule.swf" dest="$
> {teamsite.root}/WORKAREA/MEDIAPLAYER/docs/apps/player/flex/module/
> LoaderModule.swf" />
>
>            </then>
>
>            <else>
>
>                    <echo>The teamsite.root property not set. Not deploying
> file to teamsite</echo>
>
>            </else>
>
>    </if>
>
>  </tasks>
>
>  </configuration>
>                                                        </execution>
>                                                </executions>
>                                                <dependencies>
>                                                        <dependency>
>
>  <groupId>ant-contrib</groupId>
>
>  <artifactId>ant-contrib</artifactId>
>
>  <version>1.0b2</version>
>                                <exclusions>
>                                    <exclusion>
>                                        <groupId>ant</groupId>
>                                        <artifactId>ant</artifactId>
>                                    </exclusion>
>                                </exclusions>
>                                                        </dependency>
>                                                </dependencies>
>                                        </plugin>
>                                </plugins>
>                        </build>
>                </profile>
>        </profiles>
>    <reporting>
>        <plugins>
>            <plugin>
>                <groupId>info.flex-mojos</groupId>
>                <artifactId>asdoc-mojo</artifactId>
>                <configuration>
>                    <!-- Paths to classes -->
>                    <sourcePaths>
>                        <path>${project.build.sourceDirectory}</path>
>                        <path>${basedir}/target/generated-as</path>
>                    </sourcePaths>
>                </configuration>
>            </plugin>
>        </plugins>
>    </reporting>
> </project>
>
> On Dec 18, 12:59 pm, "Marvin Froeder" <[email protected]> wrote:
> > Hi Gianni,
> >
> > And what did you put at your pom to achieve that?
> > I see the error, know what you wanna, but I dunno what you already tried.
> > Can you post it?
> >
> > VELO
> >
> > On Thu, Dec 18, 2008 at 3:53 PM, gianni <[email protected]> wrote:
> >
> > > Just to be sure this is necessary, what I'm trying to do is compile a
> > > Flex Module with out excluding the classes from the root application.
> >
> > > In Flex Builder, there is an option for modules: "Do not optimize
> > > (module can be loaded by multiple applications)". That is what I want
> > > to achieve...
> >
> > > Thanks.
> >
> > > On Dec 18, 12:48 pm, gianni <[email protected]> wrote:
> > > > Setting this to false causes my build to fail. It works when it's
> > > > true, or omitted.
> >
> > > > Is this a know bug? Has anyone used this before? Any help would be
> > > > appreciated.
> >
> > > > Here is the error:
> >
> > > > Exception in thread "main" java.lang.NullPointerException
> > > >         at
> > > flex2.tools.oem.internal.OEMConfiguration.toCommaSeparatedString
> > > > (OEMConfiguration.java:2108)
> > > >         at flex2.tools.oem.internal.OEMConfiguration.getOptions
> > > > (OEMConfiguration.java:412)
> > > >         at
> flex2.tools.oem.internal.OEMConfiguration.getCompilerOptions
> > > > (OEMConfiguration.java:114)
> > > >         at flex2.tools.oem.internal.OEMConfiguration.toString
> > > > (OEMConfiguration.java:1953)
> > > >         at
> > > info.rvin.mojo.flexmojo.compiler.AbstractFlexCompilerMojo.build
> > > > (AbstractFlexCompilerMojo.java:2054)
> > > >         at info.rvin.mojo.flexmojo.compiler.ApplicationMojo.tearDown
> > > > (ApplicationMojo.java:235)
> > > >         at info.rvin.mojo.flexmojo.AbstractIrvinMojo.execute
> > > > (AbstractIrvinMojo.java:180)
> > > >         at org.apache.maven.plugin.DefaultPluginManager.executeMojo
> > > > (DefaultPluginManager.java:579)
> > > >         at
> >
> > >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFai
> > > lures
> > > > (DefaultLifecycleExecutor.java:498)
> > > >         at
> >
> > >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForPr
> > > oject
> > > > (DefaultLifecycleExecutor.java:265)
> > > >         at
> > > >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
> > > > (DefaultLifecycleExecutor.java:191)
> > > >         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
> > > > (DefaultLifecycleExecutor.java:149)
> > > >         at org.apache.maven.DefaultMaven.execute_aroundBody0
> > > > (DefaultMaven.java:223)
> > > >         at org.apache.maven.DefaultMaven.execute_aroundBody1$advice
> > > > (DefaultMaven.java:304)
> > > >         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1)
> > > >         at
> org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2
> > > > (MavenEmbedder.java:904)
> > > >         at
> > > org.apache.maven.embedder.MavenEmbedder.execute_aroundBody3$advice
> > > > (MavenEmbedder.java:304)
> > > >         at
> > > org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:
> > > > 1)
> > > >         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:176)
> > > >         at org.apache.maven.cli.MavenCli.main(MavenCli.java:63)
> > > >         at org.apache.maven.cli.MavenCli.main(MavenCli.java:52)
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos?hl=en?hl=en

http://blog.flex-mojos.info/
-~----------~----~----~----~------~----~------~--~---

Reply via email to