[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [tycho-user] how make jars in .m2 in local maven repository as <finalName> ?
|
yes. with dot it works ...
<newVersion>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}.${buildNumber}</newVersion>
but the deployed name is still named by version in pom.xml. So I have made a Pre-step build , where I changed the version in all modules...
> ------------ Původní zpráva ------------
> Od: Oberlies, Tobias <tobias.oberlies@xxxxxxx>
> Předmět: Re: [tycho-user] how make jars in .m2 in local maven repository as
> <finalName> ?
> Datum: 11.9.2012 17:17:22
> ----------------------------------------
> Hm, the versions-plugin documentation is not very helpful [1], but did you try
>
> <newVersion>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}.${buildNumber}</newVersion>
>
> with a dot?
>
> The automatic ".qualifier" in Tycho means the same as "-SNAPSHOT" in Maven - why
> do you need an expanded qualifier in the local Maven repository?
>
> Regards
> Tobias
>
>
> [1]
> http://www.eclipse.org/tycho/sitedocs/tycho-release/tycho-versions-plugin/set-version-mojo.html
>
> > -----Original Message-----
> > From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-
> > bounces@xxxxxxxxxxx] On Behalf Of e92-330cd@xxxxxxxxx
> > Sent: Donnerstag, 6. September 2012 13:27
> > To: Tycho user list
> > Subject: [tycho-user] how make jars in .m2 in local maven repository as
> > <finalName> ?
> >
> > I have this configuration in parrent pom.xml:
> >
> > <plugin>
> > <groupId>org.codehaus.mojo</groupId>
> > <artifactId>buildnumber-maven-plugin</artifactId>
> > <version>1.1</version>
> > <executions>
> > <execution>
> > <phase>validate</phase>
> > <goals>
> > <goal>create</goal>
> > </goals>
> > </execution>
> > </executions>
> > <configuration>
> > <doCheck>false</doCheck>
> > <doUpdate>false</doUpdate>
> > <providerImplementations>
> > <svn>javasvn</svn>
> > </providerImplementations>
> > </configuration>
> > </plugin>
> >
> >
> > <plugin>
> > <groupId>org.codehaus.mojo</groupId>
> > <artifactId>build-helper-maven-plugin</artifactId>
> > <version>1.7</version>
> > <executions>
> > <execution>
> > <id>parse-version</id>
> > <goals>
> > <goal>parse-version</goal>
> > </goals>
> > </execution>
> > </executions>
> > </plugin>
> >
> >
> > <plugin>
> > <groupId>org.eclipse.tycho</groupId>
> > <artifactId>tycho-packaging-plugin</artifactId>
> > <version>${tycho-version}</version>
> > <executions>
> > <execution>
> > <phase>validate</phase>
> > <goals>
> > <goal>build-qualifier</goal>
> > </goals>
> > <configuration>
> >
> > <forceContextQualifier>${buildNumber}</forceContextQualifier>
> > </configuration>
> > </execution>
> > </executions>
> > </plugin>
> > </plugins>
> > <finalName>${project.artifactId}-
> > ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersio
> > n.incrementalVersion}-${buildNumber}</finalName>
> > </build>
> >
> > with this. I can get eg this in target folder of one module>
> > com.example.mine-1.0.0-2507.jar
> > but in local maven repository I still get com.example.mine-1.0.0-
> > SNAPSHOT.jar (thats the version in pom.xml)
> > if use :
> >
> > <plugin>
> > <groupId>org.eclipse.tycho</groupId>
> > <artifactId>tycho-versions-plugin</artifactId>
> > <version>${tycho-version}</version>
> > <executions>
> > <execution>
> > <phase>validate</phase>
> > <goals>
> > <goal>set-version</goal>
> > </goals>
> > <configuration>
> >
> > <newVersion>${parsedVersion.majorVersion}.${parsedVersion.minorVersi
> > on}.${parsedVersion.incrementalVersion}-${buildNumber}</newVersion>
> > </configuration>
> > </execution>
> > </executions>
> > </plugin>
> >
> > build error will appear, that 0-2570 isnt number. I thougt that the the
> > plugin can recoginze that the version is x.y.z-qualifier
> >
> > So how to achieve to have the naming in .m2 repo as is defined in
> > <finalName>?
> > ${project.artifactId}-
> > ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersio
> > n.incrementalVersion}-${buildNumber}
> >
> > D.
> > _______________________________________________
> > tycho-user mailing list
> > tycho-user@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/tycho-user
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/tycho-user
>
>
>