I have a maven multi-module project working. I also have a code (abc.jar-non maven) with some feature's to be integrated into one of the module(say module1) of existing maven project. How would i import abc.jar into my maven project?
I tried the following: Created /src/main/lib
and copied jar into lib
. Configured pom.xml
with:
<dependency>
<groupId>abc</groupId>
<artifactId>abc</artifactId>
<version>1.0</version>
<systemPath>${base.dir}/lib/abc.jar</systemPath>
<scope>system</scope>
</dependency>
Also tried using <systemPath>${project.basedir}/lib/abc.jar</systemPath>
But, it warns 'dependencies.dependency.systemPath' for abc:abc:jar should not point at files within the project directory, unresolvable
.
I was told, it could be achieved using assembly. But i could not achieve.
Please help. I'm using maven 2.4v
Use ${basedir} or ${project.basedir} expression instead of ${base.dir} variable. All expression is case-sensitive.
You can try it by maven-help-plugin's evaluate goal.
mvn help:evaluate