I have to add an external swc library to my project but I can't get it
to work as mentioned here...
https://docs.sonatype.org/display/FLEXMOJOS/Adding+libraries+to+compilation
I tried Adding libraries to compilation as mentioned above. I have
also tried assigning different scopes to my dependency like external,
compile, runtime etc.
these are the compiler options i have to provide in my IDE to make it
work
-static-link-runtime-shared-libraries=true -include-libraries
granite-
essentials-swc-2.0.0.GA.swc
Please help!
<build>
<sourceDirectory>src/main/flex</sourceDirectory>
<plugins>
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>3.6.1</version>
<extensions>true</extensions>
<dependencies>
<dependency>
<groupId>org.graniteds</groupId>
<artifactId>granite-essentials-swc</
artifactId>
<version>2.0.0.GA</version>
<type>swc</type>
<scope>external</scope>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>flex-framework</artifactId>
<version>4.0.0.13875</version>
<type>pom</type>
<exclusions>
<!-- make sure to exclude the default
'playerglobal' transitive dependency -->
<exclusion>
<groupId>com.adobe.flex.framework</
groupId>
<artifactId>playerglobal</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>playerglobal</artifactId>
<version>4.0.0.13875</version>
<!-- this artifact version must match the flex
SDK version used in this project -->
<classifier>10.0</classifier>
<!-- the classifier specifies the target flash
player major version -->
<type>swc</type>
</dependency>
<dependency>
<groupId>com.adobe.flex</groupId>
<artifactId>compiler</artifactId>
<version>4.0.0.13875</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.adobe.flex.compiler</groupId>
<artifactId>asdoc</artifactId>
<version>4.0.0.13875</version>
<classifier>template</classifier>
<type>zip</type>
</dependency>
</dependencies>
<configuration>
<targetPlayer>10.0</targetPlayer>
<locales>
<locale>en_US</locale>
</locales>
<services>${basedir}/../webapp/src/main/webapp/WEB-
INF/flex/services-config.xml</services>
<contextRoot>remix</contextRoot>
<enableMavenResourcesResolver>true</
enableMavenResourcesResolver>
</configuration>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>loxvo-remix</id>
<url>http://192.168.1.104/svn/myproject/webapp/remix-mvn</
url>
</repository>
<repository>
<id>flexmojos-repository</id>
<url>http://repository.sonatype.org/content/groups/
flexgroup/</url>
</repository>
<repository>
<id>Java.net</id>
<url>http://download.java.net/maven/2/</url>
</repository>
<repository>
<id>Cairngorm</id>
<url>http://projects.yoolab.org/maven/content/repositories/
releases/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>flexmojos-repository</id>
<url>http://repository.sonatype.org/content/groups/
flexgroup/</url>
</pluginRepository>
</pluginRepositories>
<dependencies>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>flex-framework</artifactId>
<version>4.0.0.13875</version>
<type>pom</type>
<exclusions>
<!-- make sure to exclude the default 'playerglobal'
transitive dependency -->
<exclusion>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>playerglobal</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>playerglobal</artifactId>
<version>4.0.0.13875</version>
<!-- this artifact version must match the flex SDK version
used in this project -->
<classifier>10.0</classifier>
<!-- the classifier specifies the target flash player
major version -->
<type>swc</type>
</dependency>
<dependency>
<groupId>com.adobe.cairngorm</groupId>
<artifactId>cairngorm</artifactId>
<version>2.2.1</version>
<type>swc</type>
</dependency>
<dependency>
<groupId>org.graniteds</groupId>
<artifactId>granite-core-swc</artifactId>
<version>1.2.0</version>
<type>swc</type>
</dependency>
<dependency>
<groupId>org.graniteds</groupId>
<artifactId>granite-essentials-swc</artifactId>
<version>2.0.0.GA</version>
<type>swc</type>
<scope>external</scope>
</dependency>
<dependency>
<groupId>org.graniteds</groupId>
<artifactId>granite-core</artifactId>
<version>2.0.0.GA</version>
</dependency>
<dependency>
<groupId>org.graniteds</groupId>
<artifactId>granite-gas</artifactId>
<version>1.2.0</version>
</dependency>
<dependency>
<groupId>com.loxvo.lib.flex</groupId>
<artifactId>flexlib</artifactId>
<version>1.0</version>
<type>swc</type>
</dependency>
<dependency>
<groupId>com.loxvo.lib.flex</groupId>
<artifactId>greensock</artifactId>
<version>1.0</version>
<type>swc</type>
</dependency>
<dependency>
<groupId>com.loxvo.lib.flex</groupId>
<artifactId>alive-pdf</artifactId>
<version>1.0</version>
<type>swc</type>
</dependency>
</dependencies>
<profiles>
<profile><!--https://docs.sonatype.org/pages/viewpage.action?
pageId=2949459-->
<id>m2e</id>
<activation>
<property>
<name>m2e.version</name>
</property>
</activation>
</profile>
</profiles>
</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/