[ https://issues.apache.org/jira/browse/KARAF-1767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14588087#comment-14588087
]
Kristof Meixner commented on KARAF-1767:
----------------------------------------
I'm getting something like that too in Karaf 3.0.4:
{code}
[WARNING] Error copying artifact model.serialize:jar:4.0.0.M3
java.lang.RuntimeException: /home/k/x-project/components/model/serialize/target/classes (Is
a directory)
at org.apache.karaf.tooling.utils.MojoSupport.copy(MojoSupport.java:385)
at org.apache.karaf.tooling.features.AddToRepositoryMojo.copy(AddToRepositoryMojo.java:88)
at org.apache.karaf.tooling.features.AddToRepositoryMojo.copyArtifactsToDestRepository(AddToRepositoryMojo.java:79)
at org.apache.karaf.tooling.features.AddToRepositoryMojo.execute(AddToRepositoryMojo.java:67)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
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:120)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
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:497)
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)
Caused by: java.io.FileNotFoundException: /home/k/x-project/components/model/serialize/target/classes
(Is a directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at org.apache.karaf.tooling.utils.MojoSupport.copy(MojoSupport.java:376)
... 24 more
{code}
> The features-maven-plugin fails in multi module builds when using "mvn test" instead
of "mvn package"
> -----------------------------------------------------------------------------------------------------
>
> Key: KARAF-1767
> URL: https://issues.apache.org/jira/browse/KARAF-1767
> Project: Karaf
> Issue Type: Bug
> Components: karaf-tooling
> Affects Versions: 2.2.9
> Environment: unix, mac os x (potentially windows, but not tested)
> Reporter: Mirko Jahn
>
> This error only appears when running "mvn test" in a multi module build, all later build
cycles (like package, install, ...) seem to work.
> The error output looks like this:
> {code}
> [ERROR] Failed to execute goal org.apache.karaf.tooling:features-maven-plugin:2.2.9:add-features-to-repo
(add-features-to-repo) on project karaf.assembly: Error populating repository: /home/user_name/project_base_name/main/core/target/classes
(No such file or directory) -> [Help 1]
> {code}
> Basically the plug-in seems to look into a non existing folder ({{main/core/target/classes}}).
No idea, why it is looking into the folder of a different project (it is actually in the following
(sub-) project: distribution/karaf.assembly/
> For a simple test, you could clone the following OSS repo and just do "mvn install" followed
by "mvn test":
> [https://github.com/cibuddy/cibuddy.git]
> The console output could be viewed online here:
> [http://travis-ci.org/#!/cibuddy/cibuddy/builds/2236373]
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
|