karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Krzysztof Sobkowiak <krzys.sobkow...@gmail.com>
Subject java.lang.IllegalArgumentException: Invalid syntax for version: 3.0.7-SNAPSHOT
Date Thu, 19 May 2016 21:42:11 GMT
Hi

While building (successfully) karaf-3.0.x I have observed following stacktraces in the maven
output

[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ org.apache.karaf.demos.command
---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/kso/work/projects/asf/karaf/karaf-3.0.x/demos/command/src/test/resources
[INFO] Copying 3 resources
[INFO] Copying 3 resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) @ org.apache.karaf.demos.command
---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ org.apache.karaf.demos.command
---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-site-plugin:3.4:attach-descriptor (attach-descriptor) @ org.apache.karaf.demos.command
---
[INFO]
[INFO] <<< maven-bundle-plugin:2.5.4:bundle (default-bundle) < package @ org.apache.karaf.demos.command
<<<
[INFO]
[INFO] --- maven-bundle-plugin:2.5.4:bundle (default-bundle) @ org.apache.karaf.demos.command
---
java.lang.IllegalArgumentException: Invalid syntax for version: 3.0.7-SNAPSHOT
    at aQute.bnd.version.Version.<init>(Version.java:46)
    at aQute.bnd.osgi.Analyzer.augmentExports(Analyzer.java:1711)
    at aQute.bnd.osgi.Analyzer.analyze(Analyzer.java:229)
    at aQute.bnd.osgi.Builder.analyze(Builder.java:352)
    at aQute.bnd.osgi.Analyzer.calcManifest(Analyzer.java:618)
    at aQute.bnd.osgi.Builder.build(Builder.java:81)
    at org.apache.felix.bundleplugin.BundlePlugin.buildOSGiBundle(BundlePlugin.java:632)
    at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:351)
    at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:268)
    at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:259)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.MojoExecutor.executeForkedExecutions(MojoExecutor.java:352)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:197)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)


It looks like this  happens when maven builds the test sources. Is it ok?


Regards
Krzysztof


-- 
Krzysztof Sobkowiak (@ksobkowiak)

JEE & OSS Architect, Integration Architect
Apache Software Foundation Member (http://apache.org/)
Apache ServiceMix Committer & PMC Member (http://servicemix.apache.org/)
Senior Solution Architect @ Capgemini SSC (http://www.capgeminisoftware.pl/)

Mime
View raw message