Hello,

I've developed a simple maven plugin and would like to share it among other maven users.
The plugin addresses the following issue.

Suppose you have plenty of third party jars (stored in version control) to be included into your project's classpath. The "right" way to handle this situation is to install each of the jars into a repository (local or corporate) and add them as dependencies. Unfortunately, such a solution is either not portable or not easy to implement. Another possible ("wrong") way is to use the system scope dependencies, but it is imperfect as well.

This issue is also discussed in the following posts:
http://stackoverflow.com/questions/2229757/maven-add-a-dependency-to-a-jar-by-relative-path http://stackoverflow.com/questions/364114/can-i-add-jars-to-maven-2-build-classpath-without-installing-them http://stackoverflow.com/questions/3410548/maven-add-a-folder-or-jar-file-into-currrent-classpath http://brettporter.wordpress.com/2009/06/10/a-maven-friendly-pattern-for-storing-dependencies-in-version-control/

What I suggest for addressing this issue is a plugin which does the following:
1. Automatically installs all the 3rd party jars to the local repository.
2. Automatically adds the installed jars to the current project as dependencies of "compile" scope. So the plugin implements "the right" solution mentioned above, but does it automatically (transparently for users).

Using the plugin is simple as follows:

<plugin>
<groupId>my.group.id</groupId>
<artifactId>addjars-maven-plugin</artifactId>
<version>1.0</version>
<executions>
<execution>
<goals>
<goal>add-jars</goal>
</goals>
<configuration>
<resources>
<resource>
<directory>${basedir}/lib-dir1</directory>
</resource>
<resource>
<directory>${basedir}/lib-dir2</directory>
<includes>
<include>**/*.jar</include>
</includes>
<excludes>
<exclude>jar-to-be-excluded.jar</exclude>
</excludes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>

I hope the plugin will make developers' lives easier.
So, according to "Submitting a Plugin" guideline, I ask whether "there is an interest" in that plugin


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to