Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-6526

The "manifest" goal does not work anymore in modules which are using aspectj-maven-plugin "compile" goal

    XMLWordPrintableJSON

Details

    Description

      I just upgraded from the maven-bundle-plugin from 5.1.4 to 5.1.5 and I'm getting the following error:

      [ERROR] Failed to execute goal org.apache.felix:maven-bundle-plugin:5.1.5:manifest (bundle-manifest) on project xwiki-commons-legacy-classloader-api: Error checking manifest uptodate status: /media/DATA/xwiki/sources/xwiki-commons/xwiki-commons-core/xwiki-commons-legacy/xwiki-commons-legacy-classloader/xwiki-commons-legacy-classloader-api/target/maven-bundle-plugin/org.apache.felix_maven-bundle-plugin_manifest_xx -> [Help 1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.felix:maven-bundle-plugin:5.1.5:manifest (bundle-manifest) on project xwiki-commons-legacy-classloader-api: Error checking manifest uptodate status
          at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:306)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:211)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:165)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:157)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:121)
          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:127)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:294)
          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:960)
          at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
          at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
          at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
          at 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: Error checking manifest uptodate status
          at org.apache.felix.bundleplugin.ManifestPlugin.getManifestUptodateCheckException (ManifestPlugin.java:449)
          at org.apache.felix.bundleplugin.ManifestPlugin.isMetadataUpToDate (ManifestPlugin.java:442)
          at org.apache.felix.bundleplugin.ManifestPlugin.execute (ManifestPlugin.java:108)
          at org.apache.felix.bundleplugin.BundlePlugin.execute (BundlePlugin.java:380)
          at com.gradle.maven.a.a.e.c.a (SourceFile:26)
          at com.gradle.maven.a.a.e.n.a (SourceFile:23)
          at com.gradle.maven.a.a.e.h.a (SourceFile:28)
          at com.gradle.maven.a.a.e.m.a (SourceFile:27)
          at com.gradle.maven.a.a.e.a.c (SourceFile:115)
          at com.gradle.maven.a.a.e.a.a (SourceFile:61)
          at com.gradle.maven.a.a.e.e.a (SourceFile:27)
          at com.gradle.maven.a.a.e.l.a (SourceFile:17)
          at com.gradle.maven.a.a.e.d.a (SourceFile:42)
          at com.gradle.maven.a.a.e.b.a (SourceFile:26)
          at com.gradle.maven.a.a.e.f$1.run (SourceFile:34)
          at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute (SourceFile:29)
          at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute (SourceFile:26)
          at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute (SourceFile:66)
          at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute (SourceFile:59)
          at org.gradle.internal.operations.DefaultBuildOperationRunner.execute (SourceFile:157)
          at org.gradle.internal.operations.DefaultBuildOperationRunner.execute (SourceFile:59)
          at org.gradle.internal.operations.DefaultBuildOperationRunner.run (SourceFile:47)
          at com.gradle.maven.a.a.e.f.a (SourceFile:30)
          at com.gradle.maven.a.a.e.k.a (SourceFile:61)
          at com.gradle.maven.a.a.i.b.a (SourceFile:70)
          at com.sun.proxy.$Proxy70.execute (Unknown Source)
          at com.gradle.maven.scan.extension.internal.e.a.executeMojo (SourceFile:135)
          at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:301)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:211)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:165)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:157)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:121)
          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:127)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:294)
          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:960)
          at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
          at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
          at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
          at 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: java.nio.file.NoSuchFileException: /media/DATA/xwiki/sources/xwiki-commons/xwiki-commons-core/xwiki-commons-legacy/xwiki-commons-legacy-classloader/xwiki-commons-legacy-classloader-api/target/maven-bundle-plugin/org.apache.felix_maven-bundle-plugin_manifest_xx
          at sun.nio.fs.UnixException.translateToIOException (UnixException.java:92)
          at sun.nio.fs.UnixException.rethrowAsIOException (UnixException.java:111)
          at sun.nio.fs.UnixException.rethrowAsIOException (UnixException.java:116)
          at sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes (UnixFileAttributeViews.java:55)
          at sun.nio.fs.UnixFileSystemProvider.readAttributes (UnixFileSystemProvider.java:149)
          at sun.nio.fs.LinuxFileSystemProvider.readAttributes (LinuxFileSystemProvider.java:99)
          at java.nio.file.Files.readAttributes (Files.java:1764)
          at java.nio.file.Files.getLastModifiedTime (Files.java:2315)
          at org.apache.felix.bundleplugin.ManifestPlugin.lastModified (ManifestPlugin.java:472)
          at org.apache.felix.bundleplugin.ManifestPlugin.isMetadataUpToDate (ManifestPlugin.java:429)
          at org.apache.felix.bundleplugin.ManifestPlugin.execute (ManifestPlugin.java:108)
          at org.apache.felix.bundleplugin.BundlePlugin.execute (BundlePlugin.java:380)
          at com.gradle.maven.a.a.e.c.a (SourceFile:26)
          at com.gradle.maven.a.a.e.n.a (SourceFile:23)
          at com.gradle.maven.a.a.e.h.a (SourceFile:28)
          at com.gradle.maven.a.a.e.m.a (SourceFile:27)
          at com.gradle.maven.a.a.e.a.c (SourceFile:115)
          at com.gradle.maven.a.a.e.a.a (SourceFile:61)
          at com.gradle.maven.a.a.e.e.a (SourceFile:27)
          at com.gradle.maven.a.a.e.l.a (SourceFile:17)
          at com.gradle.maven.a.a.e.d.a (SourceFile:42)
          at com.gradle.maven.a.a.e.b.a (SourceFile:26)
          at com.gradle.maven.a.a.e.f$1.run (SourceFile:34)
          at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute (SourceFile:29)
          at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute (SourceFile:26)
          at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute (SourceFile:66)
          at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute (SourceFile:59)
          at org.gradle.internal.operations.DefaultBuildOperationRunner.execute (SourceFile:157)
          at org.gradle.internal.operations.DefaultBuildOperationRunner.execute (SourceFile:59)
          at org.gradle.internal.operations.DefaultBuildOperationRunner.run (SourceFile:47)
          at com.gradle.maven.a.a.e.f.a (SourceFile:30)
          at com.gradle.maven.a.a.e.k.a (SourceFile:61)
          at com.gradle.maven.a.a.i.b.a (SourceFile:70)
          at com.sun.proxy.$Proxy70.execute (Unknown Source)
          at com.gradle.maven.scan.extension.internal.e.a.executeMojo (SourceFile:135)
          at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:301)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:211)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:165)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:157)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:121)
          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:127)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:294)
          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:960)
          at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
          at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
          at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
          at 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)
      

      Here is the complete build log:

      $ mvn clean install -e
      [INFO] Error stacktraces are turned on.
      [INFO] Scanning for projects...
      [INFO] 
      [INFO] -------< org.xwiki.commons:xwiki-commons-legacy-classloader-api >-------
      [INFO] Building XWiki Commons - Legacy - Classloader - API 14.4-SNAPSHOT
      [INFO] --------------------------------[ jar ]---------------------------------
      [INFO] 
      [INFO] --- maven-clean-plugin:3.2.0:clean (default-clean) @ xwiki-commons-legacy-classloader-api ---
      [INFO] Deleting /media/DATA/xwiki/sources/xwiki-commons/xwiki-commons-core/xwiki-commons-legacy/xwiki-commons-legacy-classloader/xwiki-commons-legacy-classloader-api/target
      [INFO] 
      [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-plugins) @ xwiki-commons-legacy-classloader-api ---
      [INFO] 
      [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-jcl-log4j-isolation) @ xwiki-commons-legacy-classloader-api ---
      [INFO] 
      [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-jakarta.xml.bind-api) @ xwiki-commons-legacy-classloader-api ---
      [INFO] 
      [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-glasshfish-jaxb) @ xwiki-commons-legacy-classloader-api ---
      [INFO] 
      [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-jaxrs1) @ xwiki-commons-legacy-classloader-api ---
      [INFO] 
      [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-open-json) @ xwiki-commons-legacy-classloader-api ---
      [INFO] 
      [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-glassfish-el) @ xwiki-commons-legacy-classloader-api ---
      [INFO] 
      [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-commons-lang3) @ xwiki-commons-legacy-classloader-api ---
      [INFO] 
      [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-commons-configuration2) @ xwiki-commons-legacy-classloader-api ---
      [INFO] 
      [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-jakarta.activation-api) @ xwiki-commons-legacy-classloader-api ---
      [INFO] 
      [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-jakarta.activation) @ xwiki-commons-legacy-classloader-api ---
      [INFO] 
      [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-jakarta.mail-api) @ xwiki-commons-legacy-classloader-api ---
      [INFO] 
      [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-jakarta.mail) @ xwiki-commons-legacy-classloader-api ---
      [INFO] 
      [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-jakarta.annotation-api) @ xwiki-commons-legacy-classloader-api ---
      [INFO] 
      [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-bouncycastle-ids) @ xwiki-commons-legacy-classloader-api ---
      [INFO] 
      [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-velocity-engine-core) @ xwiki-commons-legacy-classloader-api ---
      [INFO] 
      [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-asm) @ xwiki-commons-legacy-classloader-api ---
      [INFO] 
      [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-cglib) @ xwiki-commons-legacy-classloader-api ---
      [INFO] 
      [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-javase-dependencies) @ xwiki-commons-legacy-classloader-api ---
      [INFO] 
      [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-jsr305) @ xwiki-commons-legacy-classloader-api ---
      [INFO] 
      [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-jta) @ xwiki-commons-legacy-classloader-api ---
      [INFO] 
      [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-jakarta.validation-api) @ xwiki-commons-legacy-classloader-api ---
      [INFO] 
      [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-hibernate-validator) @ xwiki-commons-legacy-classloader-api ---
      [INFO] 
      [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-upper-bounds) @ xwiki-commons-legacy-classloader-api ---
      [INFO] 
      [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-no-legacy-dependencies) @ xwiki-commons-legacy-classloader-api ---
      [INFO] Skipping Rule Enforcement.
      [INFO] 
      [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-valid-poms) @ xwiki-commons-legacy-classloader-api ---
      [INFO] 
      [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-platform-rendering-isolation) @ xwiki-commons-legacy-classloader-api ---
      [INFO] 
      [INFO] --- maven-enforcer-plugin:1.4.1:enforce (check-dependency-version) @ xwiki-commons-legacy-classloader-api ---
      [INFO] 
      [INFO] --- xwiki-commons-tool-remote-resource-plugin:14.4-SNAPSHOT:process (xwiki-license-resources) @ xwiki-commons-legacy-classloader-api ---
      [INFO] Preparing remote bundle org.xwiki.commons:xwiki-commons-tool-license-resources:14.4-SNAPSHOT
      [INFO] Copying 2 resources from 1 bundle.
      [INFO] 
      [INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ xwiki-commons-legacy-classloader-api ---
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] Using 'UTF-8' encoding to copy filtered properties files.
      [INFO] skip non existing resourceDirectory /media/DATA/xwiki/sources/xwiki-commons/xwiki-commons-core/xwiki-commons-legacy/xwiki-commons-legacy-classloader/xwiki-commons-legacy-classloader-api/src/main/resources
      [INFO] Copying 2 resources
      [INFO] 
      [INFO] --- maven-compiler-plugin:3.10.1:compile (default-compile) @ xwiki-commons-legacy-classloader-api ---
      [INFO] Loaded from the build cache, saving 474ms
      [INFO] 
      [INFO] --- aspectj-maven-plugin:1.14.0:compile (backward-compatibility-aspects) @ xwiki-commons-legacy-classloader-api ---
      [INFO] Showing AJC message detail for messages of types: [error, warning, fail]
      [INFO] 
      [INFO] --- maven-bundle-plugin:5.1.5:manifest (bundle-manifest) @ xwiki-commons-legacy-classloader-api ---
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time:  3.526 s
      [INFO] Finished at: 2022-05-02T09:45:46+02:00
      [INFO] ------------------------------------------------------------------------
      [INFO] 34 goals, 33 executed, 1 from cache
      [INFO] 
      [INFO] A build scan was not published as you have not authenticated with server 'ge.xwiki.org'.
      [ERROR] Failed to execute goal org.apache.felix:maven-bundle-plugin:5.1.5:manifest (bundle-manifest) on project xwiki-commons-legacy-classloader-api: Error checking manifest uptodate status: /media/DATA/xwiki/sources/xwiki-commons/xwiki-commons-core/xwiki-commons-legacy/xwiki-commons-legacy-classloader/xwiki-commons-legacy-classloader-api/target/maven-bundle-plugin/org.apache.felix_maven-bundle-plugin_manifest_xx -> [Help 1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.felix:maven-bundle-plugin:5.1.5:manifest (bundle-manifest) on project xwiki-commons-legacy-classloader-api: Error checking manifest uptodate status
          at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:306)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:211)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:165)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:157)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:121)
          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:127)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:294)
          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:960)
          at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
          at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
          at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
          at 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: Error checking manifest uptodate status
          at org.apache.felix.bundleplugin.ManifestPlugin.getManifestUptodateCheckException (ManifestPlugin.java:449)
          at org.apache.felix.bundleplugin.ManifestPlugin.isMetadataUpToDate (ManifestPlugin.java:442)
          at org.apache.felix.bundleplugin.ManifestPlugin.execute (ManifestPlugin.java:108)
          at org.apache.felix.bundleplugin.BundlePlugin.execute (BundlePlugin.java:380)
          at com.gradle.maven.a.a.e.c.a (SourceFile:26)
          at com.gradle.maven.a.a.e.n.a (SourceFile:23)
          at com.gradle.maven.a.a.e.h.a (SourceFile:28)
          at com.gradle.maven.a.a.e.m.a (SourceFile:27)
          at com.gradle.maven.a.a.e.a.c (SourceFile:115)
          at com.gradle.maven.a.a.e.a.a (SourceFile:61)
          at com.gradle.maven.a.a.e.e.a (SourceFile:27)
          at com.gradle.maven.a.a.e.l.a (SourceFile:17)
          at com.gradle.maven.a.a.e.d.a (SourceFile:42)
          at com.gradle.maven.a.a.e.b.a (SourceFile:26)
          at com.gradle.maven.a.a.e.f$1.run (SourceFile:34)
          at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute (SourceFile:29)
          at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute (SourceFile:26)
          at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute (SourceFile:66)
          at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute (SourceFile:59)
          at org.gradle.internal.operations.DefaultBuildOperationRunner.execute (SourceFile:157)
          at org.gradle.internal.operations.DefaultBuildOperationRunner.execute (SourceFile:59)
          at org.gradle.internal.operations.DefaultBuildOperationRunner.run (SourceFile:47)
          at com.gradle.maven.a.a.e.f.a (SourceFile:30)
          at com.gradle.maven.a.a.e.k.a (SourceFile:61)
          at com.gradle.maven.a.a.i.b.a (SourceFile:70)
          at com.sun.proxy.$Proxy70.execute (Unknown Source)
          at com.gradle.maven.scan.extension.internal.e.a.executeMojo (SourceFile:135)
          at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:301)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:211)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:165)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:157)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:121)
          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:127)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:294)
          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:960)
          at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
          at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
          at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
          at 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: java.nio.file.NoSuchFileException: /media/DATA/xwiki/sources/xwiki-commons/xwiki-commons-core/xwiki-commons-legacy/xwiki-commons-legacy-classloader/xwiki-commons-legacy-classloader-api/target/maven-bundle-plugin/org.apache.felix_maven-bundle-plugin_manifest_xx
          at sun.nio.fs.UnixException.translateToIOException (UnixException.java:92)
          at sun.nio.fs.UnixException.rethrowAsIOException (UnixException.java:111)
          at sun.nio.fs.UnixException.rethrowAsIOException (UnixException.java:116)
          at sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes (UnixFileAttributeViews.java:55)
          at sun.nio.fs.UnixFileSystemProvider.readAttributes (UnixFileSystemProvider.java:149)
          at sun.nio.fs.LinuxFileSystemProvider.readAttributes (LinuxFileSystemProvider.java:99)
          at java.nio.file.Files.readAttributes (Files.java:1764)
          at java.nio.file.Files.getLastModifiedTime (Files.java:2315)
          at org.apache.felix.bundleplugin.ManifestPlugin.lastModified (ManifestPlugin.java:472)
          at org.apache.felix.bundleplugin.ManifestPlugin.isMetadataUpToDate (ManifestPlugin.java:429)
          at org.apache.felix.bundleplugin.ManifestPlugin.execute (ManifestPlugin.java:108)
          at org.apache.felix.bundleplugin.BundlePlugin.execute (BundlePlugin.java:380)
          at com.gradle.maven.a.a.e.c.a (SourceFile:26)
          at com.gradle.maven.a.a.e.n.a (SourceFile:23)
          at com.gradle.maven.a.a.e.h.a (SourceFile:28)
          at com.gradle.maven.a.a.e.m.a (SourceFile:27)
          at com.gradle.maven.a.a.e.a.c (SourceFile:115)
          at com.gradle.maven.a.a.e.a.a (SourceFile:61)
          at com.gradle.maven.a.a.e.e.a (SourceFile:27)
          at com.gradle.maven.a.a.e.l.a (SourceFile:17)
          at com.gradle.maven.a.a.e.d.a (SourceFile:42)
          at com.gradle.maven.a.a.e.b.a (SourceFile:26)
          at com.gradle.maven.a.a.e.f$1.run (SourceFile:34)
          at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute (SourceFile:29)
          at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute (SourceFile:26)
          at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute (SourceFile:66)
          at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute (SourceFile:59)
          at org.gradle.internal.operations.DefaultBuildOperationRunner.execute (SourceFile:157)
          at org.gradle.internal.operations.DefaultBuildOperationRunner.execute (SourceFile:59)
          at org.gradle.internal.operations.DefaultBuildOperationRunner.run (SourceFile:47)
          at com.gradle.maven.a.a.e.f.a (SourceFile:30)
          at com.gradle.maven.a.a.e.k.a (SourceFile:61)
          at com.gradle.maven.a.a.i.b.a (SourceFile:70)
          at com.sun.proxy.$Proxy70.execute (Unknown Source)
          at com.gradle.maven.scan.extension.internal.e.a.executeMojo (SourceFile:135)
          at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:301)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:211)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:165)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:157)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:121)
          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:127)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:294)
          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:960)
          at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
          at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
          at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
          at 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)
      [ERROR] 
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR] 
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
      

      The only thing special about this module compared to various siblings which are building fine is the fact that we are using the aspectj-maven-plugin to inject deprecated APIs in the classes.

      I guess it's related to FELIX-6493 but I'm not really sure what this error exactly imply so not sure if I can workaround it some way.

      The module which reproduce this error can be found on https://github.com/xwiki/xwiki-commons/tree/d4c5e433fbd70fdc5547e4adff0a6fc8f4933bed/xwiki-commons-core/xwiki-commons-legacy/xwiki-commons-legacy-classloader/xwiki-commons-legacy-classloader-api. I reverted the plugin upgrade but it's easy to reproduce by checkouting commit d4c5e433fbd70fdc5547e4adff0a6fc8f4933bed or changing the version of the maven-bundle-plugin in the root pom of the repository (https://github.com/xwiki/xwiki-commons/blob/master/pom.xml#L2303).

      The bundle plugin is not really configured in any way currently but here is the goal declaration: https://github.com/xwiki/xwiki-commons/blob/d4c5e433fbd70fdc5547e4adff0a6fc8f4933bed/xwiki-commons-core/pom.xml#L111.

      Attachments

        Issue Links

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              tmortagne Thomas Mortagne
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: