Hi,
I'm using Ant to build a custom jar library, which then I'm using in Maven as dependency.
<dependency> <groupId>test-lib</groupId> <artifactId>test-lib</artifactId> <version>1.0.0system</scope> <systemPath>${basedir}/src/main/webapp/WEB-INF/lib/test-lib-1.0.0.jar</systemPath> </dependency>
So, basically what I do now is:
1) run ant to build custom library (test-lib-1.0.0.jar)
2) run: mvn compile, to compile my project using custom library among others.
Is there an option for me to do all this (packaing custom jar & compiling project) from Maven? I've found maven run plugin, and here are my settings:
<plugin> <artifactId>maven-antrun-plugin</artifactId> <version>1.4 <executions> <execution> <phase>?????what to put here?????/phase> <configuration> <tasks> <ant antfile="${basedir}/build.xml"> <target name="prepare-test-lib" /> </ant> </tasks> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin>
But, when running: 'mvn compile' it complains about missing artifact: test-lib-1.0.0.jar. I've used compile, generate-resouces,... in <phase/> tag, but nothing seems to work.
Is it possible to solve this somehow using this plugin?