Hi,
I was trying to run the "add-features-to-repo" goal with the
features-maven-plugin and I keep receiving this error. I've been able to
run this same goal on Linux, but I receive this error running the same goal
on Mac OSX. It's complaining about a "No such file or directory", but the
features.xml definitely exists in the path.
Any help would be greatly appreciated.
Thanks!
Justin
POM:
org.apache.felix.karaf.tooling
features-maven-plugin
add-features-to-repo
generate-resources
add-features-to-repo
file:${basedir}/target/classes/features.xml
smx-hibernate-bundles
target/smx.repo
ERROR:
[ERROR] Failed to execute goal
org.apache.felix.karaf.tooling:features-maven-plugin:1.4.0-fuse-03-00:add-features-to-repo
(add-features-to-repo) on project smx-hibernate: Error populating
repository: /Users/justin/Programming/workspace/smx-hibernate/target/classes
(No such file or directory) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal
org.apache.felix.karaf.tooling:features-maven-plugin:1.4.0-fuse-03-00:add-features-to-repo
(add-features-to-repo) on project smx-hibernate: Error populating repository
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
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:84)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
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.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error populating
repository
at
org.apache.felix.karaf.tooling.features.AddFeaturesToRepoMojo.execute(AddFeaturesToRepoMojo.java:168)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: java.io.FileNotFoundException:
/Users/justin/Programming/workspace/smx-hibernate/target/classes (No such
file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:106)
at
org.apache.felix.karaf.tooling.features.AddFeaturesToRepoMojo.execute(AddFeaturesToRepoMojo.java:150)
... 21 more
--
View this message in context:
http://karaf.922171.n3.nabble.com/FileNotFindException-using-features-maven-plugin-on-Mac-OSX-tp2741979p2741979.html
Sent from the Karaf - User mailing list archive at Nabble.com.