Re: Best way to create daily SNAPSHOT updates in autoupdate center?

arsi <[email protected]> Tue, 22 Aug 2017 18:19:05 +0200
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <[email protected]>
Hi,

For my project I made a maven plugin for zip and autoupdate upload over 
sftp:

https://sourceforge.net/p/cscm/code/ci/default/tree/


I personally would go by way of changing the module version in the pom 
from mojo or bycustomized  version generation in nbm-maven-plugin..

Arsi


------------------------------------------------------------------------

*From:* William Winder
*Sent:* Tuesday, August 22, 2017 5:47PM
*To:* Dev
*Subject:* [platform-dev] Re: Best way to create daily SNAPSHOT updates in
autoupdate center?


> It is a maven project. I found a roundabout workaround for now but am 
> hopeful there is a less invasive way to go about it. For example the 
> proposal described here is exactly what I'm looking for: 
> http://wiki.netbeans.org/MavenNBM4#Versioning
>
>
> I updated my manifest.mf files to include the following line:
>
>     OpenIDE-Module-Specification-Version: 
> ${ugs.modules.specification.version}
>
>
> Used the "maven-resources-plugin" resources plugin I copy that file to 
> the target directory with "<filtering>true</filtering>" to fill make 
> the substitution.
>
> Making sure the "nbm-maven-plugin" is configured to look there with 
> "<sourceManifestFile>${project.build.directory}/manifest.mf</sourceManifestFile>"
>
>
> Now things get a little hacky, I need to parse 1.2.3 out of 
> 1.2.3-SNAPSHOT. I used the "build-helper-maven-plugin" gives you maven 
> variables like "${parsedVersion.majorVersion}" and allowed me to 
> define my version like:
>
> <maven.build.timestamp.format>yyyy.MM.dd.HH.mm 
> <http://yyyy.MM.dd.HH.mm></maven.build.timestamp.format>
>
> <ugs.modules.specification.version>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}.${maven.build.timestamp}</ugs.modules.specification.version>
>
>
> Now everytime I rebuild my snapshot there will be a unique version.
>
> ​