[jbosstools-issues] [JBoss JIRA] (JBIDE-19056) A Mojo to validate a version (compared to baseline)

Mickael Istria (JIRA) issues at jboss.org
Fri Jan 23 07:09:49 EST 2015


    [ https://issues.jboss.org/browse/JBIDE-19056?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13034585#comment-13034585 ] 

Mickael Istria commented on JBIDE-19056:
----------------------------------------

I gave a first shot to such mojo, which is accessible in https://github.com/mickaelistria/jbosstools-maven-plugins/tree/JBIDE-19056
Then it can be set on any module producing p2 installable unit to compare versions with baseline.
{code:xml}
<plugin>
  <groupId>org.jboss.tools.tycho-plugins</groupId>
  <artifactId>repository-utils</artifactId>
  <version>0.22.1-SNAPSHOT</version>
  <executions>
    <execution>
      <goals>
        <goal>compare-version-with-baselines</goal>
      </goals>
      <phase>verify</phase>
      <configuration>
        <baselines>
          <repo>http://download.jboss.org/jbosstools/updates/stable/luna</repo>
        </baselines>
      </configuration>
    </execution>
  </executions>
</plugin>
{code}

For example, when this is set and we're trying to build org.jboss.tools.usage bundle from master, build fails with
{code}
[ERROR] Failed to execute goal org.jboss.tools.tycho-plugins:repository-utils:0.22.1-SNAPSHOT:compare-version-with-baselines (default) on project org.jboss.tools.usage: Version of 'org.jboss.tools.usage/2.0.0.Alpha1-v20150123-1146) must be bigger than baseline one (2.0.1.Final-v20141209-0333-B84) -> [Help 1]
{code}

I believe this should definitely make us less error-prone with version management.
CC [~nickboldt] [~jpeterka] [~mmalina] [~maxandersen] [~fbricon]

> A Mojo to validate a version (compared to baseline)
> ---------------------------------------------------
>
>                 Key: JBIDE-19056
>                 URL: https://issues.jboss.org/browse/JBIDE-19056
>             Project: Tools (JBoss Tools)
>          Issue Type: Enhancement
>          Components: build
>            Reporter: Mickael Istria
>
> We need a mojo that compares a newly-built artifact with other versions of this IU that we have already released.
> Such a mojo would fail is version isn't correct (lower than same one on that stream, equal to another one already released but with different content...)



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the jbosstools-issues mailing list