This is odd, the error you are getting is usually a result of the flexmojos plugin not being loaded, might be an issue with the configurations, not sure why you are getting that.
I ran your pom excluding the reference to the parent pom. The only problem I found in it is the version mismatch between the SDK and the default compiler, fixed that one and it's working. The pom I used (with maven version 2.2.1): <?xml version="1.0" encoding="UTF-8"?> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http:// www.w3.org/2001/XMLSchema-instance"> <modelVersion>4.0.0</modelVersion> <!--<parent> <artifactId>game</artifactId> <groupId>com.atled</groupId> <version>1.0-SNAPSHOT</version> </parent>--> <groupId>com.atled</groupId> <artifactId>game-slot</artifactId> <version>1.0-SNAPSHOT</version> <packaging>swc</packaging> <name>game-slot Flex</name> <dependencies> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>flex-framework</artifactId> <version>4.5.1.21328</version> <type>pom</type> </dependency> <dependency> <groupId>com.adobe.flexunit</groupId> <artifactId>flexunit</artifactId> <version>0.85</version> <type>swc</type> <scope>test</scope> </dependency> </dependencies> <repositories> <repository> <id>flex-mojos-repository</id> <url> http://repository.sonatype.org/content/groups/flexgroup</url> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>flex-mojos-plugin-repository</id> <url> http://repository.sonatype.org/content/groups/flexgroup</url> </pluginRepository> </pluginRepositories> <build> <sourceDirectory>src/main/flex</sourceDirectory> <testSourceDirectory>src/test/flex</testSourceDirectory> <plugins> <plugin> <groupId>org.sonatype.flexmojos</groupId> <artifactId>flexmojos-maven-plugin</artifactId> <version>3.8</version> <extensions>true</extensions> <configuration> <locales> <locale>en_US</locale> </locales> </configuration> <dependencies> <dependency> <groupId>com.adobe.flex</groupId> <artifactId>compiler</artifactId> <version>4.5.1.21328</version> <type>pom</type> </dependency> </dependencies> </plugin> </plugins> </build> </project> On Tue, Mar 20, 2012 at 7:41 PM, Aravind Krishna <[email protected]>wrote: > thanks for your response,same error only. > > On Mar 20, 2012 8:46 PM, "Lior Boord" <[email protected]> wrote: > > > > Did you try running it with out reference to the parent pom? > > > > > > > > On Tue, Mar 20, 2012 at 4:09 PM, aravinthh rockz < > [email protected]> wrote: > >> > >> this is pom file for the module, What shall do for this one > >> > >> <?xml version="1.0" encoding="UTF-8"?> > >> <project > >> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > >> http://maven.apache.org/xsd/maven-4.0.0.xsd" > >> xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http:// > >> www.w3.org/2001/XMLSchema-instance"> > >> <modelVersion>4.0.0</modelVersion> > >> <parent> > >> <artifactId>game</artifactId> > >> <groupId>com.atled</groupId> > >> <version>1.0-SNAPSHOT</version> > >> </parent> > >> <groupId>com.atled</groupId> > >> <artifactId>game-slot</artifactId> > >> <version>1.0-SNAPSHOT</version> > >> <packaging>swc</packaging>*****from this line showing error as > > 1. >> unknown packaging swc > > >> <name>game-slot Flex</name> > >> <dependencies> > >> <dependency> > >> <groupId>com.adobe.flex.framework</groupId> > >> <artifactId>flex-framework</artifactId> > >> <version>4.5.1.21328</version> > >> <type>pom</type> > >> </dependency> > >> <dependency> > >> <groupId>com.adobe.flexunit</groupId> > >> <artifactId>flexunit</artifactId> > >> <version>0.85</version> > >> <type>swc</type> > >> <scope>test</scope> > >> </dependency> > >> </dependencies> > >> <repositories> > >> <repository> > >> <id>flex-mojos-repository</id> > >> <url> > http://repository.sonatype.org/content/groups/flexgroup</url> > >> </repository> > >> </repositories> > >> <pluginRepositories> > >> <pluginRepository> > >> <id>flex-mojos-plugin-repository</id> > >> <url> > http://repository.sonatype.org/content/groups/flexgroup</url> > >> </pluginRepository> > >> </pluginRepositories> > >> <build> > >> <sourceDirectory>src/main/flex</sourceDirectory> > >> <testSourceDirectory>src/test/flex</testSourceDirectory> > >> <plugins> > >> <plugin> > >> <groupId>org.sonatype.flexmojos</groupId> > >> > <artifactId>flexmojos-maven-plugin</artifactId> > >> <version>${flexmojos.version}</version> > >> <extensions>true</extensions> > >> <configuration> > >> <locales> > >> <locale>en_US</locale> > >> </locales> > >> </configuration> > >> </plugin> > >> </plugins> > >> </build> > >> </project> > >> > >> -- > >> 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/ > > > > > > -- > > 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/ > t > > -- > 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/ > -- 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/
