[jira] (MANTRUN-181) AttachArtifact task does not work in external Ant build file

2013-12-16 Thread Anton Khitrenovich (JIRA)
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 .. @ 
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


[jira] (MANTRUN-181) AttachArtifact task does not work in external Ant build file

2013-12-16 Thread Anton Khitrenovich (JIRA)

 [ 
https://jira.codehaus.org/browse/MANTRUN-181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Anton Khitrenovich updated MANTRUN-181:
---

Attachment: MyProject.zip

Sample project that reproduces this behavior is attached. The project uses 
{{attachartifact}} task to attach two artifacts - one inline (from pom.xml) and 
another from external Ant build file. It clearly shows that only one artifact 
is actually attached.

{code}
C:\...\MyProject>mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO] 
[INFO] Building My Test Project 1.0.0-SNAPSHOT
[INFO] 
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ my-test-project ---
[INFO] Deleting C:\...\MyProject\target
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (call-build) @ my-test-project ---
[INFO] Executing tasks

main:

mytarget:
[INFO] Executed tasks
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ 
my-test-project ---
[INFO] Installing C:\...\MyProject\pom.xml to 
C:\M2Repository\com\example\test\my-test-project\1.0.0-SNAPSHOT\my-test-p
roject-1.0.0-SNAPSHOT.pom
[INFO] Installing C:\...\MyProject\test.zip to 
C:\M2Repository\com\example\test\my-test-project\1.0.0-SNAPSHOT\my-test-
project-1.0.0-SNAPSHOT-from-pom.zip
[INFO] 
[INFO] BUILD SUCCESS
[INFO] 
{code}

> 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
> 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 .. @ 
> 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


[jira] (MANTRUN-181) AttachArtifact task does not work in external Ant build file

2013-12-16 Thread Anton Khitrenovich (JIRA)

 [ 
https://jira.codehaus.org/browse/MANTRUN-181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Anton Khitrenovich updated MANTRUN-181:
---

Affects Version/s: 1.5
   1.6
   1.7

> 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
>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 .. @ 
> 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


[jira] (MANTRUN-181) AttachArtifact task does not work in external Ant build file

2013-12-18 Thread Anton Khitrenovich (JIRA)

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

Anton Khitrenovich edited comment on MANTRUN-181 at 12/18/13 3:47 AM:
--

Sample project that reproduces this behavior is attached. The project uses 
{{attachartifact}} task to attach two artifacts - one inline (from pom.xml) and 
another from external Ant build file. It clearly shows that only one artifact 
is actually attached.

{code}
C:\...\MyProject>mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO] 
[INFO] Building My Test Project 1.0.0-SNAPSHOT
[INFO] 
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ my-test-project ---
[INFO] Deleting C:\...\MyProject\target
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (call-build) @ my-test-project ---
[INFO] Executing tasks

main:

mytarget:
[INFO] Executed tasks
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ 
my-test-project ---
[INFO] Installing C:\...\MyProject\pom.xml to 
C:\M2Repository\com\example\test\my-test-project\1.0.0-SNAPSHOT\my-test-project-1.0.0-SNAPSHOT.pom
[INFO] Installing C:\...\MyProject\test.zip to 
C:\M2Repository\com\example\test\my-test-project\1.0.0-SNAPSHOT\my-test-project-1.0.0-SNAPSHOT-from-pom.zip
[INFO] 
[INFO] BUILD SUCCESS
[INFO] 
{code}

  was (Author: khitrenovich):
Sample project that reproduces this behavior is attached. The project uses 
{{attachartifact}} task to attach two artifacts - one inline (from pom.xml) and 
another from external Ant build file. It clearly shows that only one artifact 
is actually attached.

{code}
C:\...\MyProject>mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO] 
[INFO] Building My Test Project 1.0.0-SNAPSHOT
[INFO] 
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ my-test-project ---
[INFO] Deleting C:\...\MyProject\target
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (call-build) @ my-test-project ---
[INFO] Executing tasks

main:

mytarget:
[INFO] Executed tasks
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ 
my-test-project ---
[INFO] Installing C:\...\MyProject\pom.xml to 
C:\M2Repository\com\example\test\my-test-project\1.0.0-SNAPSHOT\my-test-p
roject-1.0.0-SNAPSHOT.pom
[INFO] Installing C:\...\MyProject\test.zip to 
C:\M2Repository\com\example\test\my-test-project\1.0.0-SNAPSHOT\my-test-
project-1.0.0-SNAPSHOT-from-pom.zip
[INFO] 
[INFO] BUILD SUCCESS
[INFO] 
{code}
  
> 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
>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 .. @ 
> 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