Anton Khitrenovich created MANTRUN-181:
------------------------------------------

             Summary: AttachArtifact task does not work in external Ant build 
file
                 Key: MANTRUN-181
                 URL: https://jira.codehaus.org/browse/MANTRUN-181
             Project: Maven Antrun Plugin
          Issue Type: Bug
            Reporter: Anton Khitrenovich


AttachArtifact task fails with an error if used in external Ant build file:
{code}
[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
{code}

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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to