Jacob Beard wrote:

With maven, however, the libraries are now kept in the location of the
maven repository, several directories deep, based on information kept in
the pom.xml file. I'd like to know, is there a maven solution for
extracting a particular classpath from a maven file, such that the
classpath can be used from a shell script? If not, is there at least a
reliable way of determining the location of the maven repository on
Windows and Unix platforms?

The structure of the local repository should be considered an implementation detail and hard-coding paths to its contents should be avoided.

[0] and related goals from the maven-dependency-plugin can be used to create a lib directory of user-specified structure.

Maybe usage of the exec-maven-plugin [1] might be able to replace your shell script completely.


Benjamin


[0] http://maven.apache.org/plugins/maven-dependency-plugin/examples/copying-project-dependencies.html
[1] http://mojo.codehaus.org/exec-maven-plugin/

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to