Hi Chris,
Yes, I have added the flex-framework 4.9.1 dep everywhere I could think
of (as a FM plugin dep, and even as a project wide dep). My entire pom
is below.
Does anyone know for certain if you can actually use FM 6.0.0 with FDK
4.9.1 when you do not have FDK 4.6.0 published anywhere? I'm thinking I
will have to also publish FDK 4.6.0 in my repo in order to allow FM
6.0.0 to resolve (but I'm still hoping I'm doing some dumb user trick,
and a simple config fix will make everything resolve without having to
supply FDK 4.6.0 in order to use FDK 4.9.1).
Thanks,
Dan
Resolution error (not attempt to pull in FDK 4.6.0 parts):
[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
pom.xml:
<?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</groupId>
<artifactId>framework</artifactId>
<version>${flex.version}</version>
<type>pom</type>
</dependency>
<!-- only need adt dep for AIR project -->
<!--
<dependency>
<groupId>com.adobe.air.compiler</groupId>
<artifactId>adt</artifactId>
<version>3.4</version>
<type>jar</type>
</dependency>
-->
</dependencies>
<configuration>
<storepass/>
<debug>true</debug>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<!--<groupId>org.apache.flex.framework</groupId>-->
<artifactId>flex-framework</artifactId>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.adobe.flex</groupId>
<artifactId>framework</artifactId>
<version>${flex.version}</version>
<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>
<!-- 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>
----------------------------------------------
From "[email protected]" <[email protected]>
Subject AW: AW: how to setup and use maven-flex-plugin
Date Wed, 01 May 2013 11:41:05 GMT
Hi Dan,
do you have a reference to the framework pom?
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>flex-framework</artifactId>
<version>${flex.version}</version>
<type>pom</type>
</dependency>
Because the compiler and flex-frameworks have to be in the same version.
Chris