Using the download Zip
From the download link on sourceforge you can download a zip of a maven2 repository containing the
artifacts for jade-plugins. So, you can unzip this in your local repository manager. Using profiles in settings.xmlIn your settings.xml you can configure a profile where the <repositories> and <pluginRepositories> contains something like:
<profile> <id>jfrog-plugin</id> <repositories> <repository> <id>jfrog-plugins</id> <name>jfrog-plugins-dist</name> <url>http://www.jfrog.org/artifactory/plugins-releases</url> <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>jfrog-plugins</id> <name>jfrog-plugins-dist</name> <url>http://www.jfrog.org/artifactory/plugins-releases</url> <snapshots> <enabled>false</enabled> </snapshots> </pluginRepository> </pluginRepositories> </profile> Then activate this profile each time your are compiling a maven plugin that is using Maven Anno Mojo. When running maven on a project that uses a mvn-anno-mojo plugin you need a profile like:
<profile> <id>jfrog-app</id> <pluginRepositories> <pluginRepository> <id>jfrog-plugins</id> <name>jfrog-plugins-dist</name> <url>http://www.jfrog.org/artifactory/plugins-releases</url> <snapshots> <enabled>false</enabled> </snapshots> </pluginRepository> </pluginRepositories> </profile> Using repositories declaration in pom.xml
It is also possible to directly add the repository configuration inside the pom.xml file of the
maven plugin using mvn-anno-mojo.
<repositories> <repository> <id>jfrog-plugins</id> <name>jfrog-plugins-dist</name> <url>http://www.jfrog.org/artifactory/plugins-releases</url> <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>jfrog-plugins</id> <name>jfrog-plugins-dist</name> <url>http://www.jfrog.org/artifactory/plugins-releases</url> <snapshots> <enabled>false</enabled> </snapshots> </pluginRepository> </pluginRepositories> to the pom.xml will enable you to work with Maven Anno Mojo without installing or deploying locally the Maven Anno Mojo modules. Changing pluginGroupsFor executing jade plugins directly in command line like "mvn jade-idea:idea" you need to add to your settings.xml the following lines:
<pluginGroups> <pluginGroup>org.jfrog.jade.plugins.development</pluginGroup> <pluginGroup>org.jfrog.jade.plugins.build</pluginGroup> </pluginGroups> |
|||