Your plugin definition is missing a dependency to the flex-compiler
... try this instead:
<plugins>
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>4.2-beta</version>
<extensions>true</extensions>
<configuration>
<debug>true</debug>
</configuration>
<dependencies>
<!-- This handles a bug in maven which causes
problems with flex resources -->
<dependency>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
<version>4.5.1.21328</version>
</dependency>
<!-- Without this FM will use the compiler
configured in its
master pom, which will result in version conflicts -->
<dependency>
<groupId>com.adobe.flex</groupId>
<artifactId>compiler</artifactId>
<version>4.5.1.21328</version>
<type>pom</type>
</dependency>
</dependencies>
</plugin>
</plugins>
Hope it helps
Chris
2012/3/21 aravinthh rockz <[email protected]>:
> i want to create swc library so that i need maven plugin for swc,i
> found that there is plugin available in flexmojo
> below pom file showing me the bug as this
>
> [INFO] Scanning for projects...
> [WARNING] The POM for com.adobe.flex:compiler:pom:4.5.1.21328 is
> missing, no dependency information available
> [WARNING] The POM for com.adobe.flex.compiler:mxmlc:jar:4.5.1.21328 is
> missing, no dependency information available
> [WARNING] The POM for com.adobe.flex.compiler:digest:jar:4.5.1.21328
> is missing, no dependency information available
> [WARNING] The POM for com.adobe.flex.compiler:optimizer:jar:
> 4.5.1.21328 is missing, no dependency information available
> [WARNING] The POM for com.adobe.flex.compiler:asdoc:jar:4.5.1.21328 is
> missing, no dependency information available
> [WARNING] The POM for com.adobe.flex.compiler:swcdepends:jar:
> 4.5.1.21328 is missing, no dependency information available
> [WARNING] The POM for com.adobe.flex.framework:playerglobal:swc:
> 10.0:4.1.0.16076 is missing, no dependency information available
> [WARNING] The POM for com.adobe.flex.framework:flex:swc:4.1.0.16076 is
> missing, no dependency information available
> [WARNING] The POM for net.sf.saxon:saxon-dom:jar:9.0 is missing, no
> dependency information available
> [ERROR] The build could not read 1 project -> [Help 1]
> [ERROR]
> [ERROR] The project com.atled:game-slot:1.0-SNAPSHOT (E:\Workspace
> \Atled\game\game-slot\pom.xml) has 2 errors
> [ERROR] Unresolveable build extension: Plugin
> org.sonatype.flexmojos:flexmojos-maven-plugin:4.2-beta or one of its
> dependencies could not be resolved: The following artifacts could not
> be resolved: com.adobe.flex.compiler:mxmlc:jar:4.5.1.21328,
> com.adobe.flex.compiler:digest:jar:4.5.1.21328,
> com.adobe.flex.compiler:optimizer:jar:4.5.1.21328,
> com.adobe.flex.compiler:asdoc:jar:4.5.1.21328,
> com.adobe.flex.compiler:swcdepends:jar:4.5.1.21328, net.sf.saxon:saxon-
> dom:jar:9.0, com.adobe.flex.framework:playerglobal:swc:
> 10.0:4.1.0.16076, com.adobe.flex.framework:flex:swc:4.1.0.16076,
> com.adobe.flex:compiler:pom:4.5.1.21328: Failure to find
> com.adobe.flex.compiler:mxmlc:jar:4.5.1.21328 in
> http://10.172.41.2:8080/archiva/repository/internal was cached in the
> local repository, resolution will not be reattempted until the update
> interval of atledtechnologies.repository has elapsed or updates are
> forced -> [Help 2]
> [ERROR] Unknown packaging: swc @ line 13, column 14
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with
> the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
> [ERROR] [Help 2]
> http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
>
>
>
> <?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>4.2-beta</version>
> <extensions>true</extensions>
> <configuration>
> <debug>true</debug>
> </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/