geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Struberg (JIRA)" <j...@apache.org>
Subject [jira] Created: (GERONIMO-5427) using a maven snapshot in a plugin causes the osgi-plugin to throw a NFE
Date Mon, 05 Jul 2010 16:41:51 GMT
using a maven snapshot in a plugin causes the osgi-plugin to throw a NFE
------------------------------------------------------------------------

                 Key: GERONIMO-5427
                 URL: https://issues.apache.org/jira/browse/GERONIMO-5427
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: buildsystem
    Affects Versions: 3.0-M1
            Reporter: Mark Struberg


This is somehow related to GERONIMO-5392:

It seems that a very similar thing also happens while building plugins which reference to
SNAPSHOT versions.

While upgrading the plugins/myfaces to myfaces-2.0.1-SNAPSHOT locally and trying to compile
the plugin, I get the following Exception:

java.lang.NumberFormatException: For input string: "1-SNAPSHOT"
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
	at java.lang.Integer.parseInt(Integer.java:458)
	at java.lang.Integer.parseInt(Integer.java:499)
	at org.osgi.framework.Version.<init>(Version.java:133)
	at org.osgi.framework.Version.parseVersion(Version.java:218)
	at org.eclipse.osgi.service.resolver.VersionRange.<init>(VersionRange.java:92)
	at org.eclipse.osgi.internal.resolver.StateBuilder.getVersionRange(StateBuilder.java:532)
	at org.eclipse.osgi.internal.resolver.StateBuilder.createRequiredBundle(StateBuilder.java:217)
	at org.eclipse.osgi.internal.resolver.StateBuilder.createRequiredBundles(StateBuilder.java:210)
	at org.eclipse.osgi.internal.resolver.StateBuilder.createBundleDescription(StateBuilder.java:101)
	at org.eclipse.osgi.internal.resolver.StateObjectFactoryImpl.createBundleDescription(StateObjectFactoryImpl.java:32)
	at org.apache.geronimo.mavenplugins.osgi.utils.BundleResolver.addBundle(BundleResolver.java:173)
	at org.apache.geronimo.mavenplugins.osgi.utils.BundleResolver.addBundle(BundleResolver.java:129)
	at org.apache.geronimo.mavenplugins.osgi.utils.BundleResolver.addBundle(BundleResolver.java:119)
	at org.apache.geronimo.mavenplugins.osgi.VerifyManifestMojo.execute(VerifyManifestMojo.java:101)
	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message