Hi,
I'm trying to set up flexmojos + maven using profiles & classifiers so
I can build my project against either BlazeDS or GraniteDS (to
evaluate them vs each other). I have it working with a couple minor
issues. I have several modules that use flexmojos. I have two SWF
modules and I set dependencies based on the profile and also set a
property for a classifier:
<profiles>
<profile>
<id>BlazeDS</id>
<!-- BlazeDS specific depends here -->
<properties>
<ds-classifier>blazeds</ds-classifier>
</properties>
</profile>
</profiles>
Then I pass the ds-classifier property to flexmojos in the build
configuration:
<build>
<plugins>
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<configuration>
<classifier>${ds-classifier}</classifier>
</configuration>
</plugin>
</plugins>
</build>
Depending on the profile I select, I will get an artifact similar to
the following deployed to my repo:
flex-ui-1.0-SNAPSHOT-blazeds.sfw
flex-ui-1.0-SNAPSHOT-graniteds.sfw
It works exactly as I'd expect. The maven-war-plugin and the maven-
ear-plugin also work exactly the same. However, I can't get the same
results for an AIR module:
<packaging>air</packaging>
It ignores the classifier portion of the artifact naming.
The second problem I have is with the wrapper goal I have in my WAR
module. I declare a dependency based on the profile in use:
<dependency>
<groupId>ca.jptech.itma</groupId>
<artifactId>itma-flex-ui</artifactId>
<classifier>${ds-classifier}</classifier>
<type>swf</type>
</dependency>
However, I get the following error when I try to compile:
[INFO] Could not find wrapper source pom artifactca.jptech.itma:itma-
flex-ui:pom:blazeds:0.4-SNAPSHOT
It looks like the classifier based dependency is causing problems for
the wrapper goal. It's worth noting the copy-flex-resources goal
works as I'd expect. If I omit the wrapper goal and only use the copy-
flex-resources goal I get a .swf in my war package and it uses the
correct classifier suffix.
Thanks in advance for any help,
Ryan
--
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/