You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Wurzelbert <ja...@goerlitz.com> on 2011/06/30 16:46:40 UTC

smx bundle with buildnumber-maven-plugin

Hi,

I'm pretty new to SMX and have a problem with the buildnumber plugin in
combination with osgi bundling.

My pom contains:
---
<parent>
		<groupId>org.apache.servicemix.features</groupId>
		<artifactId>features</artifactId>
		<version>4.3.0</version>
	</parent>
...
<packaging>bundle</packaging>
<version>1.0.${buildNumber}</version>
...
<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>buildnumber-maven-plugin</artifactId>
				<version>1.0</version>
				<executions>
					<execution>
						<phase>install</phase>
						<goals>
						<goal>create</goal>
						</goals>
						<configuration>
							<doCheck>false</doCheck>
							<doUpdate>true</doUpdate>
							<useLastCommittedRevision>true</useLastCommittedRevision>
						</configuration>
					</execution>
				</executions>
			</plugin>


While building the bundle I see in the console:
 [INFO] Storing buildNumber: 54 at timestamp: 1309442078694
so the plugins is getting the version number correctly but my jar file has
still the "${buildNumber}" thing in its name ...
I've been playing around with goals and phases without success.

I've also changed the packaging to jar and then it's working !!! but it
isn't an installable bundle for smx...
The param -DbuildNumber=123 is working too.

What is the problem? Please help me !

P.S. this is my first post so be merciful. thx.


--
View this message in context: http://servicemix.396122.n5.nabble.com/smx-bundle-with-buildnumber-maven-plugin-tp4539082p4539082.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.