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 -DartifactId=ojdbc14
-Dversion= -Dpackaging=jar" />
<exec command="mvn" vmlauncher="false" failonerror="true">
<arg line="install:install-file -Dfile=${lib.dir}/profiler.jar -DartifactId=profiler
-Dversion=1.0.0 -Dpackaging=jar" />

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