You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Николай Бондаренко <in...@yandex.ru> on 2008/02/21 13:14:18 UTC
fixed absolute references on referenced projects (Maven Ant Plugin)
Hi User Group
I have found and fix one problem with Maven Ant plugin. I had worked with multi-module maven projects and found that Maven Ant plugin generate absolute path for referenced projects (another modules). Ant doesn't find them during compilation. So I have fix plugin - it calculates relative path to referenced projects.
I am working on Windows XP, Java 1.5.0_11.
maven-build.xml before fix:
<!-- ====================================================================== -->
<!-- Defining classpaths -->
<!-- ====================================================================== -->
<path id="build.classpath">
<fileset dir="${maven.repo.local}">
<include name="javax/transaction/jta/1.0.1B/jta-1.0.1B.jar"/>
<include name="javax/servlet/servlet-api/2.4/servlet-api-2.4.jar"/>
<!-- other libs -->
<include name="D:/dev/projects/trunk/src/Security/target/Security-1.0.0.21-SNAPSHOT.jar"/>
<include name="D:/dev/projects/trunk/src/BusinessLogic/target/BusinessLogic-1.0.0.21-SNAPSHOT.jar"/>
<!-- other module references -->
</fileset>
</path>
maven-build.xml after fix:
<!-- ====================================================================== -->
<!-- Defining classpaths -->
<!-- ====================================================================== -->
<path id="build.classpath">
<fileset dir="${maven.repo.local}">
<include name="javax/transaction/jta/1.0.1B/jta-1.0.1B.jar"/>
<include name="javax/servlet/servlet-api/2.4/servlet-api-2.4.jar"/>
<include name="commons-lang/commons-lang/2.1/commons-lang-2.1.jar"/>
<!-- other libs -->
</fileset>
<pathelement location="../Security/target/Security-1.0.0.21-SNAPSHOT.jar"/>
<pathelement location="../BusinessLogic/target/BusinessLogic-1.0.0.21-SNAPSHOT.jar"/>
<!-- other module references -->
</path>
SVN diff in attachments.