[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [wtp-releng] Updating pom versions
|
On Thu, Oct 24, 2013 at 06:57:48PM -0400, Thanh Ha wrote:
While this is true, it would require someone with rights to all of the
repos to commit the changes or create patches and submit to the
repositories that have changes. In addition would cause the build to
fail more often and for someone who wants to try out the build but may
not no how to resolve this issues on their own.
Sure - just suggesting running that command to avoid having to guess/fight with
editing pom.xml if you have many you want to update ;)
I just remembered if you have Releng Tools installed in your Eclipse
it also has a feature that notifies the developer that their pom.xml
does not match too I think the bug was this one [1].
Thanh
[1] http://dev.eclipse.org/mhonarc/lists/eclipse-dev/msg09591.html
On 24/10/13 06:19 PM, Max Rydahl Andersen wrote:
If I understand this correct you can simply use this feature:
http://www.eclipse.org/tycho/sitedocs/tycho-release/tycho-versions-plugin/update-pom-mojo.html
Simply run:
mvn -Dtycho.mode=maven
org.eclipse.tycho:tycho-versions-plugin:update-pom
and it will sync your pom with the manifest.mf version. No need to
handedit - but do do a git diff in between before committing to
verify it was done right ;)
Note: -Dtycho.mode=maven is just there to skip all the p2 resolution
for this call to mvn and thus make it much faster to run.
/max
On Thu, Oct 24, 2013 at 01:30:29PM -0400, Thanh Ha wrote:
Hi Everyone,
Now that we're pretty close to being able to run builds from WTP.
I thought I'd write this email about keeping pom.xml versions up
to date. Unfortunately with Tycho the version for an artifact in a
pom.xml need to match the version that's listed in the
feature.xml, MANIFEST.MF or plugin.xml. This version number needs
to match exactly otherwise we will see build issues such as:
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-packaging-plugin:0.19.0-SNAPSHOT:validate-version
(default-validate-version) on project org.eclipse.jst.j2ee.core:
Unqualified OSGi version 1.3.100.qualifier must match unqualified
Maven version 1.3.0-SNAPSHOT for SNAPSHOT builds -> [Help 1]
What this error means is that the OSGI version for this bundle is
1.3.100.qualifer but the version in the pom.xml is 1.3.0-SNAPSHOT.
It is resolved simply by changing the version in the pom.xml to
1.3.100-SNAPSHOT so that it matches
When you look into a pom.xml you will see 2 version fields so it's
important you update the right one. For example:
<parent>
<groupId>org.eclipse.webtools.javaee</groupId>
<artifactId>org.eclipse.webtools.javaee</artifactId>
<version>3.6.0-SNAPSHOT</version>
<relativePath>../../</relativePath>
</parent>
<groupId>org.eclipse.webtools.javaee</groupId>
<artifactId>org.eclipse.jst.j2ee.core</artifactId>
*<version>1.3.0-SNAPSHOT</version>*
<packaging>eclipse-plugin</packaging>
The one you want to change is the 2nd version (bolded). This
version corresponds to the artifact the pom.xml represents. The
one between the <parent> tags corresponds to the parent pom.xml
and must match the version listed in the parent. For the most part
you don't have to worry about touch the parent one as it only
needs to be changed when releng wants to change the version.
Thanks,
Thanh
_______________________________________________
wtp-releng mailing list
wtp-releng@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/wtp-releng
_______________________________________________
wtp-releng mailing list
wtp-releng@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/wtp-releng
_______________________________________________
wtp-releng mailing list
wtp-releng@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/wtp-releng