[ 
https://issues.apache.org/jira/browse/WICKET-3294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12980890#action_12980890
 ] 

Michael O'Cleirigh commented on WICKET-3294:
--------------------------------------------

You are right about still needing the second sed to fixup the scm urls.  I 
missed this detail when adjusting the documentation.

You shouldn't have to use the maven-release-plugin.  For wicketstuff-core I 
just run the mvn deploy manually and it works fine.  I think the release.sh 
script should still work (it invokes the -Prelease profile which should cause 
the artifacts to be staged).

For testing you can mvn deploy artifacts into the staging location, login and 
close the repository and at this point if the artifacts are available it should 
work.   

The first time we did a wicketstuff-core release there was an administrative 
setting required to be enabled to activate central sync up.  Once you *release* 
the staged artifacts if they don't appear in central then you may need to get 
this switch toggled.   I'm not sure if it applies to the Apache Nexus server or 
not. Here is the into about it in the oss.sonatype.org context: 
https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide#SonatypeOSSMavenRepositoryUsageGuide-9.ActivateCentralSync

Can you update the ticket if you have problems with the release steps?








> Use Apache Nexus to stage releases for voting and for release into maven 
> central
> --------------------------------------------------------------------------------
>
>                 Key: WICKET-3294
>                 URL: https://issues.apache.org/jira/browse/WICKET-3294
>             Project: Wicket
>          Issue Type: Improvement
>          Components: site, wicket
>            Reporter: Michael O'Cleirigh
>         Attachments: release.md-2.diff, release.md.diff, 
> wicket-1.4.x-pom.xml.diff, wicket-1.5.x-pom.xml.diff
>
>
> This issue from June 2010 was about deploying the 1.4.x-SNAPSHOT and 
> 1.5-SNAPSHOT releases into the Apache Nexus Maven Repository: 
> https://issues.apache.org/jira/browse/WICKET-2918
> This issue is about switching from the current release method to use the 
> staging facilities provided through https://repository.apache.org
> There is an issue with the metadata contained in the maven central repository 
> being out of date that this issue will hopefully resolve as a side effect: 
> https://issues.sonatype.org/browse/MVNCENTRAL-28
> This is the apache documentation for publishing maven artifacts through 
> repository.apache.org:
> http://www.apache.org/dev/publishing-maven-artifacts.html
> According to it that page the distribution management section in the parent 
> org.apache:apache:8 pom contains the details for staging.  So what needs to 
> happen is that the parent pom.xml is upgraded from version 7 to version 8 and 
> that the release profiles are adjusted so that only the <site> entry is 
> contained in the distribution management sections.
> There are some settings mentioned that need to go into the deployers local 
> ~/.m2/settings.xml but I am assuming that it is going to be close to what is 
> used for the current release process.
> Then when the deploy part the release is run the jar, javadoc and source 
> artifacts will be signed and uploaded into a staging repository.  You login 
> to the repository.apache.org page and on the left hand side you should be 
> able to see a 'Staging Repository' link and clicking it will show a table 
> listing the staged repositories.  
> The url associated with each staged repository doesn't work for reading until 
> it has been closed.  So if you encounter a bug in the deployment part you can 
> fix it and continue with any old artifacts just overwriting what was 
> previously uploaded.  Then within the nexus interface you right click on the 
> row (not on the url part) and select 'close' from the options.  
> Once closed the url can be used for the release vote.  If the vote fails the 
> staged repository can be dropped.  If the vote succeeds then the staged 
> repository can be promoted into a real release.  At least in oss.sonatype.org 
> within 1 hour of the promotion the artifact will be synced into the central 
> maven repository.
> It should be possible to test out this improvement ahead of the next release 
> by just deploying into a staged repository and then dropping it if everything 
> is added properly.
> I will attach the modified /trunk/pom.xml and /branches/wicket-1.4.x/pom.xml 
> versions that should let this work.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to