maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guillaume Boué (JIRA) <j...@apache.org>
Subject [jira] [Commented] (MANTRUN-181) AttachArtifact task does not work in external Ant build file
Date Mon, 29 May 2017 23:10:04 GMT

    [ https://issues.apache.org/jira/browse/MANTRUN-181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16028656#comment-16028656
] 

Guillaume Boué commented on MANTRUN-181:
----------------------------------------

Follow-up in [r1796719|http://svn.apache.org/viewvc?rev=1796719&view=rev], with an improved
solution. Note that {{inheritRefs="true"}} has to be set in the {{ant}} call for this to work.

> AttachArtifact task does not work in external Ant build file
> ------------------------------------------------------------
>
>                 Key: MANTRUN-181
>                 URL: https://issues.apache.org/jira/browse/MANTRUN-181
>             Project: Maven Antrun Plugin
>          Issue Type: Bug
>    Affects Versions: 1.5, 1.6, 1.7
>            Reporter: Anton Khitrenovich
>         Attachments: MyProject.zip
>
>
> 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 was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message