Add 3. part jars to maven project

Posted on by Kim

Nice way to add 3. part jars to your maven project is to install them to the local repository.

Put jars i ./lib and add a ant-build file to the project.

Content of setup.xml


<project name="MMS_provisioning" basedir="." default="maven">
<property name="lib.dir" location="${basedir}/lib" />

<target name="maven" description="Install jars to local repository">
<exec command="mvn" vmlauncher="false" failonerror="true">
<arg line="install:install-file -Dfile=${lib.dir}/ojdbc14.jar
-DgroupId=com.oracle -DartifactId=ojdbc14
-Dversion=9.0.2.0.0 -Dpackaging=jar" />
</exec>
<exec command="mvn" vmlauncher="false" failonerror="true">
<arg line="install:install-file -Dfile=${lib.dir}/profiler.jar
-DgroupId=com.nokia -DartifactId=profiler
-Dversion=1.0.0 -Dpackaging=jar" />
</exec>
</target>
</project>

0 Responses to "Add 3. part jars to maven project":