Maven exec plugin- how to include “system” classpath?

Interesting to know that classpathScope=system drops runtime dependencies. I found that by including it as a plugin in the pom. Xml works as an alternative.

Could you please try and let me know if it works for you too?

Interesting to know that classpathScope=system drops runtime dependencies. I found that by including it as a plugin in the pom. Xml works as an alternative.

Could you please try and let me know if it works for you too? So I added a system level dependency to commons-collection as an example like you have for your artifact:- commons-collections commons-collections 3.0 system C:\\\\commons-collections-3.0. Jar Then in the tag I have the exec-maven-plugin plugin to be executed in the install phase:- org.codehaus.

Mojo exec-maven-plugin 1.1 install java com.stackoverflow.test. App Then I ran mvn install. I also made sure com.stackoverflow.test.

App class has some code that invokes a class from commons-collections-3.0. Hope this helps.

The right answer is to use the maven-install-plugin and Put The Jar Into Your Local Repo. Or, better yet, run nexus or artifactory and use the deploy plugin to put the jar into there. System classpath is just a world of hurt.

2 The problem with adding it to your local repo is that it's out of sight and out of mind- easy to forget that it's something custom you've added to your build, and easy to lose. Also other devs on your team must be instructed to do the same manual install. Nexus is a giant hammer of a solution for what ought to be a simple problem- adding a customized artifact to your build.

I do agree with you on the world of hurt however. :-) – Caffeine Coma Mar 13 at 14:11 I have written makefiles that script installing to the local repo to make it unforgettable. Also, free nexus is a tiny hammer that provides a wealth of useful features, in my view.

– bmargulies Mar 13 at 15:27.

See Maven 2 assembly with dependencies: jar under scope "system" not included.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions