Uploaded image for project: 'Maven Antrun Plugin'
  1. Maven Antrun Plugin
  2. MANTRUN-181

AttachArtifact task does not work in external Ant build file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5, 1.6, 1.7
    • 3.0.0
    • None

    Description

      AttachArtifact task fails with an error if used in external Ant build file:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (call-build) on project my-test-project: An Ant BuildException has occured: The following error occurred while executing this line:
      [ERROR] C:\...\MyProject\build.xml:5: Maven project reference not found: maven.project
      [ERROR] around Ant part ...<ant antfile="build.xml" target="mytarget"/>... @ 4:47 in C:\...\MyProject\target\antrun\build-main.xml
      

      Setting inheritRefs="true" eliminates the error, but even then the artifact is not attached.

      Attachments

        1. MyProject.zip
          1 kB
          Anton Khitrenovich

        Activity

          People

            gboue Guillaume Boué
            khitrenovich Anton Khitrenovich
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: