felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Heiko Seeberger <heiko.seeber...@googlemail.com>
Subject Re: Maven Bundle Plugin and -versionpolicy
Date Tue, 03 Feb 2009 09:44:13 GMT
Mea culpa! I just copied something I found at Google :-(

> "-versionpolicy" (or <_versionpolicy> if you're using XML) as I  
> understand
> it is a
> Bnd Tool command, not a package attribute - you probably want  
> something
> like:
>
>  <_versionpolicy>[${version;==;${@}},${version;=+;${@}})</ 
> _versionpolicy>
>

But that results in

java.lang.NumberFormatException: For input string: "[null},null})"
	at  
java 
.lang.NumberFormatException.forInputString(NumberFormatException.java: 
48)
	at java.lang.Integer.parseInt(Integer.java:447)
	at java.lang.Integer.parseInt(Integer.java:497)
	at org.osgi.framework.Version.<init>(Version.java:127)
	at  
org 
.osgi.impl.bundle.obr.resource.VersionRange.<init>(VersionRange.java:49)
	at  
org 
.osgi 
.impl 
.bundle.obr.resource.ManifestEntry.addParameter(ManifestEntry.java:92)
	at  
org.osgi.impl.bundle.obr.resource.Manifest.getEntries(Manifest.java:210)
	at org.osgi.impl.bundle.obr.resource.Manifest.entry(Manifest.java:123)
	at org.osgi.impl.bundle.obr.resource.Manifest.parse(Manifest.java:73)
	at org.osgi.impl.bundle.obr.resource.Manifest.<init>(Manifest.java:42)
	at  
org.osgi.impl.bundle.obr.resource.BundleInfo.<init>(BundleInfo.java:63)
	at  
org 
.apache 
.felix.obrplugin.ExtractBindexInfo.<init>(ExtractBindexInfo.java:76)
	at  
org.apache.felix.obrplugin.ObrUpdate.updateRepository(ObrUpdate.java: 
223)
	at  
org 
.apache 
.felix.obrplugin.ObrInstall.updateLocalBundleMetadata(ObrInstall.java: 
183)
	at org.apache.felix.obrplugin.ObrInstall.execute(ObrInstall.java:142)
	at  
org 
.apache 
.maven 
.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
	at  
org 
.apache 
.maven 
.lifecycle 
.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java: 
558)
	at  
org 
.apache 
.maven 
.lifecycle 
.DefaultLifecycleExecutor 
.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
	at  
org 
.apache 
.maven 
.lifecycle 
.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
	at  
org 
.apache 
.maven 
.lifecycle 
.DefaultLifecycleExecutor 
.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
	at  
org 
.apache 
.maven 
.lifecycle 
.DefaultLifecycleExecutor 
.executeTaskSegments(DefaultLifecycleExecutor.java:291)
	at  
org 
.apache 
.maven 
.lifecycle 
.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at  
sun 
.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 
39)
	at  
sun 
.reflect 
.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 
25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java: 
430)
	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[ERROR] unable to build Bindex informations
org.apache.maven.plugin.MojoExecutionException: Exception
	at  
org 
.apache 
.felix.obrplugin.ExtractBindexInfo.<init>(ExtractBindexInfo.java:81)
	at  
org.apache.felix.obrplugin.ObrUpdate.updateRepository(ObrUpdate.java: 
223)
	at  
org 
.apache 
.felix.obrplugin.ObrInstall.updateLocalBundleMetadata(ObrInstall.java: 
183)
	at org.apache.felix.obrplugin.ObrInstall.execute(ObrInstall.java:142)
	at  
org 
.apache 
.maven 
.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
	at  
org 
.apache 
.maven 
.lifecycle 
.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java: 
558)
	at  
org 
.apache 
.maven 
.lifecycle 
.DefaultLifecycleExecutor 
.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
	at  
org 
.apache 
.maven 
.lifecycle 
.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
	at  
org 
.apache 
.maven 
.lifecycle 
.DefaultLifecycleExecutor 
.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
	at  
org 
.apache 
.maven 
.lifecycle 
.DefaultLifecycleExecutor 
.executeTaskSegments(DefaultLifecycleExecutor.java:291)
	at  
org 
.apache 
.maven 
.lifecycle 
.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at  
sun 
.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 
39)
	at  
sun 
.reflect 
.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 
25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java: 
430)
	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[WARNING] Exception while updating local OBR: BindexException
org.apache.maven.plugin.MojoExecutionException: BindexException
	at  
org.apache.felix.obrplugin.ObrUpdate.updateRepository(ObrUpdate.java: 
230)
	at  
org 
.apache 
.felix.obrplugin.ObrInstall.updateLocalBundleMetadata(ObrInstall.java: 
183)
	at org.apache.felix.obrplugin.ObrInstall.execute(ObrInstall.java:142)
	at  
org 
.apache 
.maven 
.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
	at  
org 
.apache 
.maven 
.lifecycle 
.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java: 
558)
	at  
org 
.apache 
.maven 
.lifecycle 
.DefaultLifecycleExecutor 
.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
	at  
org 
.apache 
.maven 
.lifecycle 
.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
	at  
org 
.apache 
.maven 
.lifecycle 
.DefaultLifecycleExecutor 
.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
	at  
org 
.apache 
.maven 
.lifecycle 
.DefaultLifecycleExecutor 
.executeTaskSegments(DefaultLifecycleExecutor.java:291)
	at  
org 
.apache 
.maven 
.lifecycle 
.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at  
sun 
.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 
39)
	at  
sun 
.reflect 
.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 
25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java: 
430)
	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Mime
View raw message