I just had a look at the pom of flexmojos-maven-plugin and could not find a reference to the framework:pom artifact except it being mentioned in the dependencyManagement section.
I did have a look at the dependencies of the mojo though and could see that the only thing having a dependency on the framework:pom was the com.adobe.flex:compiler:pom ... I added this dependency in there to allow checking the correct version of the flex core libs. But as you are overriding this and in com.adobe.flex:compiler:pom: 4.9.1.1447119 But having a look at your pom I just saw the error. You are adding the dependencies to the plugin classpath and not the artifact classpath. So just remove all of the "swc" and "swc.rb" dependencies from the plugin that it just contains the compiler:pom dependency. Chris -----Ursprüngliche Nachricht----- Von: Dan Rollo [mailto:[email protected]] Gesendet: Donnerstag, 2. Mai 2013 05:19 An: [email protected] Betreff: Re: AW: AW: how to setup and use maven-flex-plugin Hi Fred, So I'm not sure exactly what you mean: use all those deps as deps of FM plugin, or as deps at project level? I tried both, and only one of either, and all still fail because FM still tries to resolve FDK 4.6.0 stuff: ... [ERROR] The project test.com.percro.model:lib-model:1.0.0-SNAPSHOT (/home/dan/javadev/percero/convert/architype/lib-model/pom.xml) has 2 errors [ERROR] Unresolveable build extension: Plugin net.flexmojos.oss:flexmojos-maven-plugin:6.0.0 or one of its dependencies could not be resolved: Failed to collect dependencies for net.flexmojos.oss:flexmojos-maven-plugin:jar:6.0.0 (): Failed to read artifact descriptor for net.flexmojos.oss:flexmojos-maven-plugin:jar:6.0.0: Could not find artifact com.adobe.flex:framework:pom:4.6.0.23201 in flex-mojos-plugin-repository (http://repository.sonatype.org/content/groups/flexgroup) -> [Help 2] [ERROR] Unknown packaging: swc @ line 28, column 16 Full pom with full dep list as FM plugin deps and project deps: <?xml version="1.0" encoding="UTF-8"?> <!-- Flexmojos is a set of maven goals to allow maven users to compile, optimize and test Flex SWF, Flex SWC, Air SWF and Air SWC. Copyright (C) 2008-2012 Marvin Froeder <[email protected]> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. --> <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"> <modelVersion>4.0.0</modelVersion> <groupId>test.com.percro.model</groupId> <artifactId>lib-model</artifactId> <version>1.0.0-SNAPSHOT</version> <packaging>swc</packaging> <name>lib-model Flex</name> <properties> <flexmojos.version>6.0.0</flexmojos.version> <flex.version>4.9.1.1447119</flex.version> <!-- Point to standalone flashplayer --> <flex.flashPlayer.command>/home/dan/downloads/flashplayerdebugger</flex.flashPlayer.command> </properties> <build> <sourceDirectory>src/main/flex</sourceDirectory> <testSourceDirectory>src/test/flex</testSourceDirectory> <plugins> <plugin> <groupId>net.flexmojos.oss</groupId> <artifactId>flexmojos-maven-plugin</artifactId> <version>${flexmojos.version}</version> <extensions>true</extensions> <dependencies> <dependency> <groupId>com.adobe.flex</groupId> <artifactId>compiler</artifactId> <version>${flex.version}</version> <type>pom</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>advancedgrids</artifactId> <version>4.9.1.1447119</version> <type>swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>apache</artifactId> <version>4.9.1.1447119</version> <type>swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>authoringsupport</artifactId> <version>4.9.1.1447119</version> <type>swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>charts</artifactId> <version>4.9.1.1447119</version> <type>swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>core</artifactId> <version>4.9.1.1447119</version> <type>swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>experimental</artifactId> <version>4.9.1.1447119</version> <type>swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>flash-integration</artifactId> <version>4.9.1.1447119</version> <type>swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>framework</artifactId> <version>4.9.1.1447119</version> <type>swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>framework</artifactId> <version>4.9.1.1447119</version> <type>zip</type> <classifier>configs</classifier> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>mx</artifactId> <version>4.9.1.1447119</version> <type>swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>osmf</artifactId> <version>4.9.1.1447119</version> <type>swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>rpc</artifactId> <version>4.9.1.1447119</version> <type>swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>spark</artifactId> <version>4.9.1.1447119</version> <type>swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>sparkskins</artifactId> <version>4.9.1.1447119</version> <type>swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>spark_dmv</artifactId> <version>4.9.1.1447119</version> <type>swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>textLayout</artifactId> <version>4.9.1.1447119</version> <type>swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>flex-framework</artifactId> <version>4.9.1.1447119</version> <type>pom</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>advancedgrids</artifactId> <version>4.9.1.1447119</version> <type>rb.swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>apache</artifactId> <version>4.9.1.1447119</version> <type>rb.swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>charts</artifactId> <version>4.9.1.1447119</version> <type>rb.swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>experimental</artifactId> <version>4.9.1.1447119</version> <type>rb.swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>flash-integration</artifactId> <version>4.9.1.1447119</version> <type>rb.swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>framework</artifactId> <version>4.9.1.1447119</version> <type>rb.swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>framework</artifactId> <version>4.9.1.1447119</version> <type>rb.swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>mx</artifactId> <version>4.9.1.1447119</version> <type>rb.swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>rpc</artifactId> <version>4.9.1.1447119</version> <type>rb.swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>spark</artifactId> <version>4.9.1.1447119</version> <type>rb.swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>textLayout</artifactId> <version>4.9.1.1447119</version> <type>rb.swc</type> </dependency> </dependencies> <configuration> <storepass/> <debug>true</debug> </configuration> </plugin> </plugins> </build> <dependencies> <!-- <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>flex-framework</artifactId> <type>pom</type> </dependency> <dependency> <groupId>com.adobe.flash.framework</groupId> <artifactId>playerglobal</artifactId> <type>rb.swc</type> <version>11.4</version> <!– external scope when used in a library project –> <scope>external</scope> </dependency> --> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>advancedgrids</artifactId> <version>4.9.1.1447119</version> <type>swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>apache</artifactId> <version>4.9.1.1447119</version> <type>swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>authoringsupport</artifactId> <version>4.9.1.1447119</version> <type>swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>charts</artifactId> <version>4.9.1.1447119</version> <type>swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>core</artifactId> <version>4.9.1.1447119</version> <type>swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>experimental</artifactId> <version>4.9.1.1447119</version> <type>swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>flash-integration</artifactId> <version>4.9.1.1447119</version> <type>swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>framework</artifactId> <version>4.9.1.1447119</version> <type>swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>framework</artifactId> <version>4.9.1.1447119</version> <type>zip</type> <classifier>configs</classifier> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>mx</artifactId> <version>4.9.1.1447119</version> <type>swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>osmf</artifactId> <version>4.9.1.1447119</version> <type>swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>rpc</artifactId> <version>4.9.1.1447119</version> <type>swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>spark</artifactId> <version>4.9.1.1447119</version> <type>swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>sparkskins</artifactId> <version>4.9.1.1447119</version> <type>swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>spark_dmv</artifactId> <version>4.9.1.1447119</version> <type>swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>textLayout</artifactId> <version>4.9.1.1447119</version> <type>swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>flex-framework</artifactId> <version>4.9.1.1447119</version> <type>pom</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>advancedgrids</artifactId> <version>4.9.1.1447119</version> <type>rb.swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>apache</artifactId> <version>4.9.1.1447119</version> <type>rb.swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>charts</artifactId> <version>4.9.1.1447119</version> <type>rb.swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>experimental</artifactId> <version>4.9.1.1447119</version> <type>rb.swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>flash-integration</artifactId> <version>4.9.1.1447119</version> <type>rb.swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>framework</artifactId> <version>4.9.1.1447119</version> <type>rb.swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>framework</artifactId> <version>4.9.1.1447119</version> <type>rb.swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>mx</artifactId> <version>4.9.1.1447119</version> <type>rb.swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>rpc</artifactId> <version>4.9.1.1447119</version> <type>rb.swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>spark</artifactId> <version>4.9.1.1447119</version> <type>rb.swc</type> </dependency> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>textLayout</artifactId> <version>4.9.1.1447119</version> <type>rb.swc</type> </dependency> <!-- flexunit is published in 'flex-unit-repository':https://oss.sonatype.org/content/repositories/releases --> <dependency> <groupId>org.flexunit</groupId> <artifactId>flexunit</artifactId> <version>4.1.0</version> <classifier>flex4</classifier> <type>swc</type> <scope>test</scope> </dependency> </dependencies> <dependencyManagement> <dependencies> <dependency> <groupId>com.adobe.flex</groupId> <!--<groupId>org.apache.flex</groupId>--> <artifactId>framework</artifactId> <!--<version>4.6.0.23201</version>--> <version>${flex.version}</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement> <!-- Repository and PluginRepository section for Flex SDK and compiler dependencies. Note: instead of including this in every POM, you can append it to your user (~/.m2/settings.xml) or global (M2_HOME/conf/settings.xml) settings file. --> <repositories> <repository> <id>flex-mojos-repository</id> <url>http://repository.sonatype.org/content/groups/flexgroup</url> </repository> <repository> <id>flex-unit-repository</id> <url>https://oss.sonatype.org/content/repositories/releases</url> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>flex-mojos-plugin-repository</id> <url>http://repository.sonatype.org/content/groups/flexgroup</url> </pluginRepository> <pluginRepository> <id>flex-unit-repository</id> <url>https://oss.sonatype.org/content/repositories/releases</url> </pluginRepository> </pluginRepositories> </project> ******************************************************** Other suggestions? Has anyone been able to use FM 6 when FDK 4.6 is NOT available (and not cached in local repo)? Do I need to install FDK 4.6, (and if I do, will my prior FM plugin dep overrides really ensure I am using FDK 4.9.1 - and how could I prove that)? Thanks (still hoping I'm missing something simple). Dan
