[jbosstools-issues] [JBoss JIRA] (JBIDE-13671) Replace build timestamp in qualifier by last-mod-timestamp from git
Mickael Istria (JIRA)
issues at jboss.org
Mon May 9 04:04:00 EDT 2016
[ https://issues.jboss.org/browse/JBIDE-13671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13202457#comment-13202457 ]
Mickael Istria commented on JBIDE-13671:
----------------------------------------
{quote}That only describes the timestamp - it does not change the semantic part of the version and thus it exactly reveals the issue I mentioned. That if you installed v1.2.3-<sometimestamp> a month ago installing vs updating v1.2.3-<othertimestamp> today could/will behave in different installation.{quote}
The compare-with-baseline Maven plugin prevents from creating a different v1.2.3-xxx if there is already one present in baseline. So if one installed v1.2.3-timestamp1 one day from a release, the mojo should prevent US from creating a new v1.2.3-timestamp2. See https://wiki.eclipse.org/Tycho/Release_Notes/0.24#compare-version-with-baselines_mojo
A good usage of this plugin will prevent us from publishing multiple v1.2.3 xxx, making all you concerns at install-time impossible to occur.
> Replace build timestamp in qualifier by last-mod-timestamp from git
> -------------------------------------------------------------------
>
> Key: JBIDE-13671
> URL: https://issues.jboss.org/browse/JBIDE-13671
> Project: Tools (JBoss Tools)
> Issue Type: Enhancement
> Components: build
> Affects Versions: 4.1.0.Alpha1
> Reporter: Nick Boldt
> Assignee: Nick Boldt
> Priority: Optional
> Fix For: 4.4.0.Alpha2
>
> Attachments: jbide13671-before-and-after.png
>
>
> This needs to be added to master parent pom:
> {code}
> <plugin>
> <groupId>org.eclipse.tycho</groupId>
> <artifactId>tycho-packaging-plugin</artifactId>
> <version>${tycho.version}</version>
> <dependencies>
> <dependency>
> <groupId>org.eclipse.tycho.extras</groupId>
> <artifactId>tycho-buildtimestamp-jgit</artifactId>
> <version>${tycho-extras.version}</version>
> </dependency>
> </dependencies>
> <configuration>
> <strictBinIncludes>false</strictBinIncludes>
> <format>'v'yyyyMMdd-HHmm</format>
> <timestampProvider>jgit</timestampProvider>
> <jgit.ignore>
> </jgit.ignore>
> </configuration>
> </plugin>
> {code}
> Ref: http://pweclipse.blogspot.ch/2012_09_01_archive.html
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jbosstools-issues
mailing list