AnsweredAssumed Answered

OSGI Exception from Maven when building distro

Question asked by bernd.ruecker on Jan 17, 2011
Latest reply on Jan 25, 2011 by bernd.ruecker
Hey guys.

With the current trunk I am getting an exception when I build the distro in Cycle, but I have no idea what the OSGI Plugin is trying to do here. Anybody?


[INFO] ————————————————————————
[INFO] Building Activiti - Cycle
[INFO]    task-segment: [clean, install]
[INFO] ————————————————————————
[INFO] [clean:clean {execution: default-clean}]
[INFO] [bundle:cleanVersions {execution: default}]
[INFO] [resources:resources {execution: default-resources}]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 23 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 197 source files to C:\Activiti\activiti\modules\activiti-cycle\target\classes
[WARNING] C:\Activiti\activiti\modules\activiti-cycle\src\main\java\org\activiti\cycle\impl\connector\signavio\provider\ActivitiCompliantBpmn20Provider.java:[28,54] [deprecation] org.activiti.cycle.impl.connector.signavio.util.SignavioTransformationHelper in org.activiti.cycle.impl.connector.signavio.util has been deprecated

[WARNING] C:\Activiti\activiti\modules\activiti-cycle\src\main\java\org\activiti\cycle\impl\connector\signavio\provider\ActivitiCompliantBpmn20Provider.java:[77,29] [deprecation] org.activiti.cycle.impl.connector.signavio.util.SignavioTransformationHelper in org.activiti.cycle.impl.connector.signavio.util has been deprecated

[INFO] [bundle:manifest {execution: bundle-manifest}]
java.lang.reflect.InvocationTargetException
        at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at aQute.lib.osgi.Macro.doCommand(Macro.java:183)
        at aQute.lib.osgi.Macro.doCommands(Macro.java:171)
        at aQute.lib.osgi.Macro.replace(Macro.java:118)
        at aQute.lib.osgi.Macro.process(Macro.java:62)
        at aQute.lib.osgi.Macro.process(Macro.java:78)
        at aQute.lib.osgi.Macro.process(Macro.java:48)
        at aQute.lib.osgi.Macro.process(Macro.java:43)
        at aQute.lib.osgi.Processor.getProperty(Processor.java:609)
        at aQute.lib.osgi.Processor.getProperty(Processor.java:387)
        at aQute.lib.osgi.Analyzer.getImportPackages(Analyzer.java:248)
        at aQute.lib.osgi.Builder.getImportPackages(Builder.java:149)
        at aQute.lib.osgi.Analyzer.analyze(Analyzer.java:146)
        at aQute.lib.osgi.Builder.analyze(Builder.java:198)
        at aQute.lib.osgi.Analyzer.calcManifest(Analyzer.java:283)
        at org.apache.felix.bundleplugin.ManifestPlugin.getAnalyzer(ManifestPlugin.java:197)
        at org.apache.felix.bundleplugin.ManifestPlugin.getManifest(ManifestPlugin.java:112)
        at org.apache.felix.bundleplugin.ManifestPlugin.execute(ManifestPlugin.java:66)
        at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:238)
        at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:229)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
        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)
Caused by: java.lang.IllegalArgumentException: Invalid syntax for version: null
        at aQute.libg.version.Version.<init>(Version.java:45)
        at aQute.lib.osgi.Macro._version(Macro.java:627)
        … 41 more

Thanks
Bernd

Outcomes