Adding the FlexMojos Maven repositories
About Maven configuration
Flex is not very popular in Maven community and there are not so many repositories for Flex libraries and plugins as well.
For those who haven't work with Maven at all, it is strongly recommended to read Maven: The Definitive Guide book, at least first two chapters to understand the philosophy of Maven. For those who think that he or she is a God of Maven then it is recommended to read the chapter 13 "Developpig with FlexMojos".
The Maven guide doesn't specify any repository URL, instead it uses a generic token ${flexmojos.repository}
, so you have to indicate the following repository URL (in each POM referencing the FlexMojos plugin or just once in your settings.xml
depending of the configuration way you choosed):
<flexmojos.repository
>http://repository.sonatype.org/content/groups/flexgroup/</flexmojos.repository
>
Once you're ready, you can follow to the Getting started page.
FlexMojos Releases
Releases can be found in maven Central Repository maven.org and ibiblio.org.
Also the releases available on the Flexmojos maven 2 repository http://repository.sonatype.org/content/groups/flexgroup/.
FlexMojos Snapshots
The latest snapshot builds can be downloaded directly from the Flexmojos maven 2 repository http://repository.sonatype.org/content/groups/flexgroup/.
3rd party flex artifacts
To run, flexmojos need some 3rd party artifacts, which aren't available on maven Central Repository or at any known public repository. 3rd party artifacts can be downloaded directly from the Flexmojos maven 2 repository at http://repository.sonatype.org/content/groups/flexgroup/.
Sample settings
Just add a settings.xml at USER_HOME/.m2 with the following content:
<settings> <profiles> <profile> <id>flex-mojos</id> <repositories> <repository> <id>flex-mojos-repository</id> <url>http://repository.sonatype.org/content/groups/flexgroup/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>local</id> <url>http://repository.sonatype.org/content/groups/flexgroup/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </pluginRepository> </pluginRepositories> </profile> </profiles> <activeProfiles> <activeProfile>flex-mojos</activeProfile> </activeProfiles> </settings>
Â
Â