bitstrings.org
bitstrings.org

Maven Plugins

dependencypath-maven-plugin (avaliable from the Maven central repository)

Sets a property pointing to the artifact file for each selected project dependency. Each property name will have a base name in form of groupId:artifactId:type:[classifier][.relative][.suffix]. This is similar to the dependency:properties goal but with additional features, like setting a relative path and filtering.

Documentation: http://bitstrings.github.com/sites/dependencypath-maven-plugin
github: https://github.com/bitstrings/dependencypath-maven-plugin


Quick example

The set-all execution will set a property for each dependency (including transitive) of the project which value is the absolute path of the artifact as resolved by Maven. Suppose you depend on junit then you will have access to ${junit:junit:jar} which is the absolute path to the junit jar artifact.

The set-relative-builddir will set a property for each dependency (except transitive) of the project which value is the relative path (relative to ${project.build.directory}) to the artifact as resolved by Maven. Suppose you depend on junit then you will have access to ${junit:junit:jar.relative.builddir} which is the relative path to the junit jar artifact. Notice that we explicitly added the builddir suffix, while the relative suffix is implicit.

<plugin> <groupId>org.bitstrings.maven.plugins</groupId> <artifactId>dependencypath-maven-plugin</artifactId> <executions> <execution> <id>set-all</id> <goals> <goal>set</goal> </goals> </execution> <execution> <id>set-relative-builddir</id> <goals> <goal>set</goal> </goals> <configuration> <propertySets> <propertySet> <suffix>builddir</suffix> <relativeTo>${project.build.directory}</relativeTo> <transitive>false</transitive> </propertySet> </propertySets> </configuration> </execution> </executions> </plugin>

M2E Connectors

github: https://github.com/bitstrings/m2e-connectors

P2 Repositories

releases (available from catalog): http://bitstrings.github.com/m2e-connectors-p2/releases
milestones (supports m2e 1.1.0): http://bitstrings.github.com/m2e-connectors-p2/milestones

Plugin mapping

Plugin: org.bitstrings.maven.plugins:dependencypath-maven-plugin
Home
: http://bitstrings.github.com/sites/dependencypath-maven-plugin/index.html

Plugin: org.jvnet.jaxb2.maven2:maven-jaxb2-plugin (maven-jaxb20-plugin, maven-jaxb21-plugin, maven-jaxb22-plugin)
Home
: http://java.net/projects/maven-jaxb2-plugin/pages/Home

Plugin: org.codehaus.mojo:jaxb2-maven-plugin
Home: http://mojo.codehaus.org/jaxb2-maven-plugin

Plugin: org.codehaus.mojo:xmlbeans-maven-plugin
Home: http://mojo.codehaus.org/xmlbeans-maven-plugin



Copyright © 2011 bitstrings.org - Pino Silvaggio - Licensed under the Apache License, Version 2.0.