work in progress
Tools to publish
The nb-repository-plugin is needed to prepare and publish artefacts. Milos Kleint would like to donate the toolings artefact from mojohaus to Apache NetBeans (nb-repository-plugin would be part of the donation)
Discussion on mojohaus dev list.
https://groups.google.com/forum/#!topic/mojohaus-dev/uw6lhFBoiqU
Code Donation
Page for ip-clearance
http://incubator.apache.org/ip-clearance/netbeans-mojohaus-utilities.html
Verify distribution rights
Steps to follow (taken from link above)
- IP Clearance processing must be executed either by an Officer or a Member of the ASF. If you are not an Officer or a Member, please contact your project chair who will find an appropriate volunteer. Incubator karma is also required. Please request karma from the incubator pmc if you do not have it.
- (Optional) Commit an outline form, filling those parts which can be (at this stage).
- A software grant must be provided to the ASF. This grant can either be done by the ASF Corporate CLA (via Schedule B) or the Software Grant Agreement. The completed and signed grant must be emailed to secretary@apache.org
- Receipt of the software grant form must be acknowledged by an Officer of the ASF by recording in the correct file (grants.txt for a License Grant or cclas.txt for a Corporate CLA). In most normal circumstances, the officer should be the ASF Secretary, who must be provided a copy of the grant or CCLA in any case (if not originally sent or Emailed to him).
- Note: the grant form must be acknowledged before continuing. If the source is referenced by checksum in the grant, commit the canonical tarball for the donated code into the incubator drop area (/repos/asf/incubator/donations) together with a checksum and a detached signature. This will ensure that apache has a legal record of the grant.
- Complete and commit the completed form.
- Post a message to general@incubator prefixed [IP CLEARANCE] asking for clearance to be checked. Sign off is by lazy consensus so wait at least 72 hours for a -1.
- Post a [RESULT] to close the thread and let the project know that the code has been cleared for import.
Modify nb-repository-plugin to hande licence and minimal pom.xml section for central
At the time writing pom is missing licence section, sources version control.
nb-javac is missing
Releasing Apache NetBeans Maven utilities
Prerequisites
To do a release you need to be a PPMC member/ commiter.
You shall have a PGP Key
Verify your access to repository https://repository.apache.org/ (as commiter it should be automatic)
The release process is using Apache Maven. You need to have a settings.xml configured as follow https://www.apache.org/dev/publishing-maven-artifacts.html
Source code is on github https://github.com/apache/incubator-netbeans-mavenutils/
Code source contains several folder that can be released at will:
Select the artefact you want to release and go to the subfolder
This is intended to be the topmost artefact for Apache NetBeans maven artefacts. It contains JIRA,and mailing list information and depend on Apache parent artefact.
- nbshared
Common libraries
- nb...
In order to populate repository with Apache NetBeans we need tooling plugin to be set.
1)org.netbeans.maven:utilities-parent depends on org.apache:apache and has to be released first as it the topmost artefacts. (it's not mandatory to release this artefact each time the childs plugins/libraries need to be released)
2)org.netbeans.maven:nb-shared depends on org.netbeans.maven:utilities-parent an is an important libraries for the final plugins. (it's not mandatory to release this artefact each time the plugins using this artefacts need to be released)
3) org.netbeans.maven:parent should be release prior to populating central repository to allow inheritence. (it's not mandatory to release this artefact each time the childs plugins/libraries need to be released)
4)org.netbeans.maven:nb-repository-plugin is to be released to propose to Apache NetBeans Users to populate their own repository
5)org.netbeans.maven:nbm-maven-harness has to be released for each released version of artefacts in central repository
6)org.netbeans.maven:nbm-maven-plugin has to be released foreach harness version
Publishing
Release
need stage repository