Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
jbi-maven-plugin-4.5
-
None
Description
when GenerateServiceAssemblyMojo package the SA, it will ignore the serviceUnitName specified for the SU and always use the default one, which can cause the below exception
[ERROR] Failed to execute goal org.apache.servicemix.tooling:jbi-maven-plugin:4.6-SNAPSHOT:jbi-service-assembly (default-jbi-service-assembly) on project my-cxf-sa: Failed to inject dependencies: java.io.IOException: File /Users/ffang/issues/SM-1957/tutorial-wsdl-cxf-service/my-cxf-se-su/target/my-cxf-se-su-1.0-SNAPSHOT.zip does not exist -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.servicemix.tooling:jbi-maven-plugin:4.6-SNAPSHOT:jbi-service-assembly (default-jbi-service-assembly) on project my-cxf-sa: Failed to inject dependencies
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: Failed to inject dependencies
at org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyMojo.execute(GenerateServiceAssemblyMojo.java:88)
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: org.apache.servicemix.maven.plugin.jbi.JbiPluginException: java.io.IOException: File /Users/ffang/issues/SM-1957/tutorial-wsdl-cxf-service/my-cxf-se-su/target/my-cxf-se-su-1.0-SNAPSHOT.zip does not exist
at org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyMojo.injectDependentServiceUnits(GenerateServiceAssemblyMojo.java:140)
at org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyMojo.execute(GenerateServiceAssemblyMojo.java:83)
... 21 more
Caused by: java.io.IOException: File /Users/ffang/issues/SM-1957/tutorial-wsdl-cxf-service/my-cxf-se-su/target/my-cxf-se-su-1.0-SNAPSHOT.zip does not exist
at org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:1003)
at org.codehaus.plexus.util.FileUtils.copyFileToDirectory(FileUtils.java:955)
at org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyMojo.injectDependentServiceUnits(GenerateServiceAssemblyMojo.java:138)