I forgot to mention : flexmojos version is 4.2-beta On Feb 20, 4:30 pm, "|03T3R" <[email protected]> wrote: > Hi everyone! > > I got 2 projects I need to mavenized : one SWC & one SWF. They both > share the same parent (I put only relevant parts of my pom.xml) : > [...] > <dependencies> > <dependency> > <groupId>com.adobe.flex.framework</groupId> > <artifactId>flex-framework</artifactId> > <version>3.6.0.16995</version> > <type>pom</type> > <exclusions> > <exclusion> > <groupId>com.adobe.flex.framework</groupId> > <artifactId>playerglobal</artifactId> > </exclusion> > </exclusions> > </dependency> > > <dependency> > <groupId>com.adobe.flexunit</groupId> > <artifactId>flexunit</artifactId> > <version>4.0-rc-1</version> > <type>swc</type> > </dependency> > > <dependency> > <groupId>com.adobe.flex.framework</groupId> > <artifactId>playerglobal</artifactId> > <version>3.6.0.16995</version> > <classifier>10</classifier> > <type>swc</type> > </dependency> > > </dependencies> > [...] > <pluginManagement> > <plugins> > <plugin> > <groupId>org.sonatype.flexmojos</groupId> > > <artifactId>flexmojos-maven-plugin</artifactId> > <dependencies> > <dependency> > <groupId>org.sonatype.flexmojos</groupId> > > <artifactId>flexmojos-flex3-compatibility-layer</ > artifactId> > <version>4.2-beta</version> > </dependency> > <dependency> > <groupId>com.adobe.flex</groupId> > <artifactId>compiler</artifactId> > <version>3.6.0.16995</version> > <type>pom</type> > </dependency> > </dependencies> > <configuration> > > <verboseStacktraces>true</verboseStacktraces> > <coverage>true</coverage> > <swfVersion>11</swfVersion> > > <configurationReport>false</configurationReport> > > <targetPlayer>10.2.0</targetPlayer> > <strict>true</strict> > > <showWarnings>false</showWarnings> > <quick>false</quick> > <optimize>false</optimize> > > <incremental>false</incremental> > <debug>false</debug> > <linkReport>false</linkReport> > > <allowSourcePathOverlap>true</allowSourcePathOverlap> > </configuration> > </plugin> > > </plugins> > </pluginManagement> > > The SWC pom.xml is as follow (All the swc dependencies are inside our > nexus server ): > dependencies> > > <dependency> > <groupId>org.alivepdf</groupId> > <artifactId>AlivePDF</artifactId> > <version>${alivepdf.version}</version> > <type>swc</type> > </dependency> > > <dependency> > <groupId>com.amcharts</groupId> > <artifactId>amChartsFB3</artifactId> > <version>${amcharts.version}</version> > <type>swc</type> > </dependency> > > <dependency> > <groupId>com.ammap</groupId> > <artifactId>amMapFB3</artifactId> > <version>${ammap.version}</version> > <type>swc</type> > </dependency> > > <dependency> > <groupId>fr.kapit.flex.ui.halo.autocomplete</groupId> > <artifactId>Autocomplete</artifactId> > <version>1</version> > <type>swc</type> > </dependency> > > <dependency> > <groupId>fr.kapit.diagrammer</groupId> > <artifactId>Diagrammer</artifactId> > <version>1</version> > <type>swc</type> > </dependency> > > <dependency> > <groupId>sandy.util</groupId> > <artifactId>DistortionEffects</artifactId> > <version>1</version> > <type>swc</type> > </dependency> > > <dependency> > <groupId>ds</groupId> > <artifactId>ds_release</artifactId> > <version>1</version> > <type>swc</type> > </dependency> > > <dependency> > <groupId>com.google.code.flex-iframe</groupId> > <artifactId>flex-iframe</artifactId> > <version>1.4.6</version> > <type>swc</type> > </dependency> > > <dependency> > <groupId>flexlib</groupId> > <artifactId>flexlib</artifactId> > <version>1</version> > <type>swc</type> > </dependency> > > <dependency> > <groupId>ilog</groupId> > <artifactId>ilog-elixir_rb</artifactId> > <version>1</version> > <type>swc</type> > </dependency> > > <dependency> > <groupId>ilog</groupId> > <artifactId>ilog-elixir</artifactId> > <version>1</version> > <type>swc</type> > </dependency> > > <dependency> > <groupId>klovis.flex.ui</groupId> > <artifactId>klovis-flex-ui</artifactId> > <version>1</version> > <type>swc</type> > </dependency> > > <dependency> > <groupId>thirdparties</groupId> > <artifactId>ThirdParties</artifactId> > <version>1</version> > <type>swc</type> > </dependency> > > <dependency> > <groupId>visualizer</groupId> > <artifactId>visualizer</artifactId> > <version>1</version> > <type>swc</type> > </dependency> > > </dependencies> > [...] > > The swc compiled just fine. > > Here is the SWF pom.xml: > > <dependencies> > > <dependency> > <groupId>swc groupid</groupId> > <artifactId>swc artifact ID</artifactId> > <version>1.0-SNAPSHOT</version> > <type>swc</type> > </dependency> > > Whenever I try to clean install swf project, I got : > > macromedia.abc.DecoderException: unknown opcode?? 61 > at macromedia.abc.Decoder$Opcodes.decode(Decoder.java:1700) > at macromedia.abc.Decoder$MethodBodies.decode(Decoder.java:537) > at macromedia.abc.Optimizer.optimize(Optimizer.java:293) > at macromedia.abc.Optimizer.optimize(Optimizer.java:83) > at flex2.linker.DependencyWalker.dump(DependencyWalker.java:266) > at flex2.linker.FlexMovie.generate(FlexMovie.java:242) > at flex2.linker.API.link(API.java:41) > at flex2.tools.Compiler.mxmlc(Compiler.java:295) > at flex2.tools.Mxmlc.mxmlc(Mxmlc.java:8) > at org.sonatype.flexmojos.compiler.DefaultFlexCompiler > $2.command(DefaultFlexCompiler.java:59) > at org.sonatype.flexmojos.compiler.command.CommandUtil > $1.run(CommandUtil.java:33) > at java.lang.Thread.run(Thread.java:680) > Error: null > > java.lang.NullPointerException > at macromedia.abc.Optimizer.optimize(Optimizer.java:84) > at flex2.linker.DependencyWalker.dump(DependencyWalker.java:266) > at flex2.linker.FlexMovie.generate(FlexMovie.java:242) > at flex2.linker.API.link(API.java:41) > at flex2.tools.Compiler.mxmlc(Compiler.java:295) > at flex2.tools.Mxmlc.mxmlc(Mxmlc.java:8) > at org.sonatype.flexmojos.compiler.DefaultFlexCompiler > $2.command(DefaultFlexCompiler.java:59) > at org.sonatype.flexmojos.compiler.command.CommandUtil > $1.run(CommandUtil.java:33) > at java.lang.Thread.run(Thread.java:680) > > I really can't find any solution by googling ... > > Any idea? > > thanks in advance
-- 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 http://flexmojos.sonatype.org/
