Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I implement “maven.jar.override” of Maven 1 with Maven 2?

implement Maven
0
Posted

How do I implement “maven.jar.override” of Maven 1 with Maven 2?

0

Assume you have an open source project on Source Forge which uses some 3rd party libraries which are not available in any public Maven repository. Still, you want to build your project with Maven 2 – how to deal with those unavailable dependencies? Maven 1 allowed to override the path of files of dependencies, with a relative path, for example to a .jar file included in the projects’ CVS structure. Maven 2 does not support that, so one way to achieve the same thing is: • Create a multi-module project. The first module contains the local 3rd-party jar files, at any location, with any name. As a simple example, just one file, under the path “src/build/jars/acme-worker12.jar” • The purpose of the first sub-module is to install the 3rd party .jar file into your local Maven 2 repository through the maven “install” plugin.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123