Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Won't Fix
-
Affects Version/s: 1.0-alpha-4
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
When the site descriptor is an attached artifact, the GPG signature is not generated.
Steps to reproduce:
svn co https://svn.apache.org/repos/asf/maven/surefire/tags/surefire-2.5@898285 surefire-2.5
cd surefire-2.5
mvn site:attach-descriptor gpg:sign -Papache-release -N
ls target/*.asc
if there is a surefire-2.5-site.xml.asc then this bug is fixed.
I had a look at how the Site Plugin attaches the descriptor. It is attached as metadata to the artifact - not as an attached artifact. ArtifactMetadata has no accessors to any File object, but ProjectArtifactMetadata has a private variable that holds a File. That private variable is used to copy the file to the local repository during install, but again it is private.
Without a file we can't sign it AFAICT. If we install the site descriptor into the local repository before we try to sign it, we should be able to access it from the local repo. But I'm not sure how well that works with the life cycle. I think it's a chicken-and-egg problem.