[
https://jira.codehaus.org/browse/MAPPASM-82?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=292870#comment-292870
]
Karl Heinz Marbaise commented on MAPPASM-82:
--------------------------------------------
After diving a little bit into this issue i found the root cause (hope so ;-))
here (last line in execute method of GenerateDaemonsMojo):
{code}
installArtifact ( artifactRepository, projectArtifact );
{code}
whereas the projectArtifact is defined like the following:
{code}
/**
* @readonly
* @parameter expression="${project.artifact}"
*/
private Artifact projectArtifact;
{code}
I'm not sure what can cause the problem in this case. I don't see a problem
with this (Maven 2.2.1 vs. Maven 3.0.X) ?
> "Failed to Copy Aritfact" in Eclipse Ganymede with Workspace Resolution
> Enabled
> -------------------------------------------------------------------------------
>
> Key: MAPPASM-82
> URL: https://jira.codehaus.org/browse/MAPPASM-82
> Project: Mojo AppAssembler Plugin
> Issue Type: Bug
> Affects Versions: 1.0
> Environment: eclipse ganymede SR2, JDK 1.5
> Reporter: Joseph S. Butler
> Priority: Minor
> Attachments: appassembler_debug.txt, appassembler-test.zip,
> appassembler-without-workspace-resolution.txt,
> appassembler-with-workspace-resolution.txt
>
>
> With Workspace resolution enabled in Eclipse Ganymede RC2, and the
> appassembler mojo in a module of a multi-module project - the following error
> occured while installing jars into the appassembler target lib.
> The following mojo encountered an error while executing:
> Group-Id: org.codehaus.mojo
> Artifact-Id: appassembler-maven-plugin
> Version: 1.0
> Mojo: assemble
> brought in via: POM
> While building project:
> Group-Id: package.name.changed.rcu.fdmd
> Artifact-Id: package.name.changed.rcu.fdmd
> Version: 1.0-SNAPSHOT
> From file: C:\devel\workspaces\ganymede-sr2-workspace\fdio-rcu\fdmd\pom.xml
> Reason: Failed to copy artifact.
> org.apache.maven.artifact.installer.ArtifactInstallationException: Error
> installing artifact:
> C:\devel\workspaces\ganymede-sr2-workspace\fdio-rcu\common\target\classes
> (Access is denied)
> As a work around, I disabled workspace resolution and appassembler worked as
> expected, however I noticed that a difference on the Installing printout.
> With workspace resolution turned off, appassembler correctly attempts to copy
> the correct jar. With workspace resolution turned on, appassembler attempts
> to copy the classes associated to the module - which I believe to be
> incorrect, and the reason why the copy failed.
> I have included the full printout from the console.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email