FWIW, I've long since stopped using the flexmojos-flex-super-pom, not because I've had any problems with it, just at some point I found it was unnecessary. I started declaring things as dependencies instead, perhaps pushing those up to my own parent-pom where/when possible.
Lukas, if you are still experimenting, try this approach, that is, don't use the flexmojos-flex-super-pom, drag in the flex-framework pom dependency and see if the flexmojos behaves differently? JBoss+eman, why on earth would you be pulling-in and generating log4j, hibernate and junit. Clearly you've made a boo-boo! I'd say you've gone and declared the flexmojos:generate goal in your jar project and not your swc project??? I can't imagine why you would declare a junit dependency and such in your swc project. Alternatively, you declared a pom dependency that drags in a load of jar dependencies (although I'm not sure what effect this would have) or you've referenced a parent- pom that has declares jar dependencies which are inherited. I can agree with Velo, the generate goal works fine, although I have only started using since maven-2.2.1 + flexmojos-3.4.2. Cheers On Dec 16, 7:39 pm, velo <[email protected]> wrote: > no clue.... but if flexmojos do not get the parameter injected must be > a maven issue. > > VELO > > On Dec 16, 4:22 pm, Lukas Bradley <[email protected]> wrote: > > > > > > Aren't you mixing parent 3.4.0 and plugin 3.4.2 or something like > > > that, are you? > > > No. Here is the configuration: > > > <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.0http://maven.apache.org/maven-v4_0_0.xsd"> > > <modelVersion>4.0.0</modelVersion> > > > <parent> > > <groupId>org.sonatype.flexmojos</groupId> > > <artifactId>flexmojos-flex-super-pom</artifactId> > > <version>3.4.2</version> > > </parent> > > > <groupId>org.sonatype.flexmojos.itest</groupId> > > <artifactId>simple-generation</artifactId> > > <version>1.0-SNAPSHOT</version> > > > <packaging>swc</packaging> > > > <build> > > <plugins> > > <plugin> > > <groupId>org.sonatype.flexmojos</groupId> > > <artifactId>flexmojos-maven-plugin</artifactId> > > <version>3.4.2</version> > > <extensions>true</extensions> > > <executions> > > <execution> > > <goals> > > <goal>generate</goal> > > </goals> > > <configuration> > > <generatorToUse>graniteds2</generatorToUse> > > <includeJavaClasses> > > > <includeJavaClass>org.sonatype.flexmojos.generator.SimplePojo</ > > includeJavaClass> > > </includeJavaClasses> > > </configuration> > > </execution> > > </executions> > > </plugin> > > </plugins> > > </build> > > > <dependencies> > > <dependency> > > <groupId>org.sonatype.flexmojos.itest</groupId> > > <artifactId>generator-jar</artifactId> > > <version>1.0-SNAPSHOT</version> > > <scope>provided</scope> > > </dependency> > > </dependencies> > > > </project> > > > And here is the output from the command "C:\home\bin\java\apache\maven > > \2.2.1\bin\mvn --debug flexmojos:generate" > > > [DEBUG] Configuring mojo 'org.sonatype.flexmojos:flexmojos-maven- > > plugin:3.4.2:generate' --> > > [DEBUG] (f) baseOutputDirectory = C:\Users\lbradley\Projects\flexmojo > > \simple-generation\flex\target\generated-sources\flexmojos > > [DEBUG] (f) generatorToUse = graniteds1 > > [DEBUG] (f) outputDirectory = C:\Users\lbradley\Projects\flexmojo > > \simple-generation\flex\src\main\flex > > [DEBUG] (f) outputEnumToBaseOutputDirectory = false > > [DEBUG] (f) project = MavenProject: > > org.sonatype.flexmojos.itest:simple-generation:1.0-SNAPSHOT @ C:\Users > > \lbradley\Projects\flexmojo\simple-generation\flex\pom.xml > > [DEBUG] (f) useTideEntityTemplate = false > > [DEBUG] -- end configuration -- > > [INFO] [flexmojos:generate {execution: default-cli}] > > [INFO] flexmojos 3.4.2 - GNU GPL License (NO WARRANTY) - See COPYRIGHT > > file > > [INFO] Generating: C:\Users\lbradley\Projects\flexmojo\simple- > > generation\flex\target\generated-sources\flexmojos\org\sonatype > > \flexmojos\generator\SimplePojoBase.as > > [INFO] Generating: C:\Users\lbradley\Projects\flexmojo\simple- > > generation\flex\src\main\flex\org\sonatype\flexmojos\generator > > \SimplePojo.as > > [INFO] Generating: C:\Users\lbradley\Projects\flexmojo\simple- > > generation\flex\target\generated-sources\flexmojos\org\sonatype > > \flexmojos\generator\SimpleInterfaceBase.as > > [INFO] Generating: C:\Users\lbradley\Projects\flexmojo\simple- > > generation\flex\src\main\flex\org\sonatype\flexmojos\generator > > \SimpleInterface.as > > [INFO] 4 files generated. > > > Using the command "C:\home\bin\java\apache\maven\2.2.1\bin\mvn --debug > > clean install" does seem to work though. > > > Why would flexmojos:generate not work, but clean install work? -- 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/
