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

William Winder <[email protected]> Tue, 22 Aug 2017 12:30:13 -0400
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <CAJYutcig3x-aEE92JALBKAoEy0xChJSxdSCMeVGb2+Lo+A2zqg@mail.gmail.com>
Thanks Arsi, I'll study your project and see what I can learn. It looks
like you forked the nbm-maven-plugin, is that correct?

I was looking at it's implementation the other day and wanting to make a
small change in there instead of jumping through all these hoops:
https://github.com/mojohaus/nbm-maven-plugin/blob/master/src/main/java/org/codehaus/mojo/nbm/AdaptNbVersion.java

On Tue, Aug 22, 2017 at 12:19 PM, arsi <[email protected]> wrote:

> 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 by customized  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</
> 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.
> ​
>
>
>
>
>
>
>
>
>