Maven Antrun Plugin
  1. Maven Antrun Plugin
  2. MANTRUN-161

antrun does not resolve build.xml from classpath

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.6
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      maven-3.0.3
    • Number of attachments :
      0

      Description

      I am referencing an ant-file in the configuration of antrun-plugin.

       
      <configuration>
        <target>
          <ant antfile="subscripts/build.xml">
            <target name="mytarget"/>
          </ant>
        </target>
      </configuration>
      

      The file "subscripts/build.xml" is included in the "src/main/resources" folder of a dependency of the antrun-plugin.

       
      <dependency>
        <groupId>my.ant</groupId>
        <artifactId>subscripts</artifactId>
        <version>0.0.1-SNAPSHOT</version>
      </dependency>
      

      Layout of "my.ant.subscripts" is

       
      src
       \main
         \resources
           \subscripts
             \build.xml
      

      which is correctly packaged.

      Given the basedir name "basedir", the antrun tells me on execution that the file "basedir/subscripts/build.xml" is not found.

      My use-case includes about 30 projects, which execute the same ant target in their build lifecycle. I could solve the problem by putting a copy of "subscripts/build.xml" in every project's directory, but that is a very bad way.

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Frank Jakop
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: