Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
package-maven-plugin-1.0.4
-
None
Description
If I build a package which does neither have a generated nor a manually crafted filter and failOnEmptyFilter is set to false the following exception can be observed:
[WARNING] No workspace filter defined. Package import might have unexpected results. [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.858 s [INFO] Finished at: 2019-08-09T15:22:15+02:00 [INFO] ------------------------------------------------------------------------ [DEBUG] No threads registered for execution at the end of the build [ERROR] Failed to execute goal org.apache.jackrabbit:filevault-package-maven-plugin:1.0.5-SNAPSHOT:generate-metadata (default-generate-metadata) on project complete-package: java.io.IOException: File /Users/konradwindszus/<mypackage>/src/main/META-INF/vault/filter.xml does not exist -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.jackrabbit:filevault-package-maven-plugin:1.0.5-SNAPSHOT:generate-metadata (default-generate-metadata) on project <mypackage>: java.io.IOException: File /Users/konradwindszus/<mypackage>/src/main/META-INF/vault/filter.xml does not exist at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:215) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:956) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:192) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347) Caused by: org.apache.maven.plugin.MojoExecutionException: java.io.IOException: File /Users/konradwindszus/<mypackage>/src/main/META-INF/vault/filter.xml does not exist at org.apache.jackrabbit.filevault.maven.packaging.GenerateMetadataMojo.execute(GenerateMetadataMojo.java:479) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210) ... 20 more Caused by: java.io.IOException: File /Users/konradwindszus/<mypackage>/src/main/META-INF/vault/filter.xml does not exist at org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:1074) at org.apache.jackrabbit.filevault.maven.packaging.GenerateMetadataMojo.computePackageFilters(GenerateMetadataMojo.java:593) at org.apache.jackrabbit.filevault.maven.packaging.GenerateMetadataMojo.execute(GenerateMetadataMojo.java:442) ... 22 more