Details
-
Bug
-
Resolution: Fixed
-
Major
-
5.2
-
N/A
-
N/A
-
Description
How I got the problem:
- Cleaned local maven repo (rm -Rf ~/.m2/repository/org/xwiki)
- Rebuit xwiki-commons, rendering and platform
When building platform's acitveinstalls-test-tests, I got:
[ERROR] Failed to execute goal org.xwiki.platform:xwiki-platform-tool-packager-plugin:8.4.2-SNAPSHOT:package (default) on project xwiki-platform-activeinstalls-test-tests: Failed to write descriptor for artifact [com.atlassian.clover:clover:jar:4.1.2:compile]: Failed to build project for [com.atlassian.clover:clover:jar:4.1.2:compile]: Error resolving project artifact: Cannot access xwiki-releases (http://nexus.xwiki.org/nexus/content/groups/public) in offline mode and the artifact com.atlassian.clover:clover:pom:4.1.2 has not been downloaded from it before. for project com.atlassian.clover:clover:jar:4.1.2 -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.xwiki.platform:xwiki-platform-tool-packager-plugin:8.4.2-SNAPSHOT:package (default) on project xwiki-platform-activeinstalls-test-tests: Failed to write descriptor for artifact [com.atlassian.clover:clover:jar:4.1.2:compile] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212) 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:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) 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: org.apache.maven.plugin.MojoExecutionException: Failed to write descriptor for artifact [com.atlassian.clover:clover:jar:4.1.2:compile] at org.xwiki.tool.extension.util.AbstractExtensionMojo.saveExtension(AbstractExtensionMojo.java:193) at org.xwiki.tool.packager.PackageMojo.installJAR(PackageMojo.java:253) at org.xwiki.tool.packager.PackageMojo.execute(PackageMojo.java:210) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) ... 20 more Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to build project for [com.atlassian.clover:clover:jar:4.1.2:compile] at org.xwiki.tool.extension.util.AbstractExtensionMojo.getMavenProject(AbstractExtensionMojo.java:115) at org.xwiki.tool.extension.util.AbstractExtensionMojo.saveExtension(AbstractExtensionMojo.java:135) at org.xwiki.tool.extension.util.AbstractExtensionMojo.saveExtension(AbstractExtensionMojo.java:191) ... 24 more Caused by: org.apache.maven.project.ProjectBuildingException: Error resolving project artifact: Cannot access xwiki-releases (http://nexus.xwiki.org/nexus/content/groups/public) in offline mode and the artifact com.atlassian.clover:clover:pom:4.1.2 has not been downloaded from it before. for project com.atlassian.clover:clover:jar:4.1.2 at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:355) at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:287) at org.xwiki.tool.extension.util.AbstractExtensionMojo.getMavenProject(AbstractExtensionMojo.java:112) ... 26 more Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Cannot access xwiki-releases (http://nexus.xwiki.org/nexus/content/groups/public) in offline mode and the artifact com.atlassian.clover:clover:pom:4.1.2 has not been downloaded from it before. at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:223) at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:294) at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:344) ... 28 more Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Cannot access xwiki-releases (http://nexus.xwiki.org/nexus/content/groups/public) in offline mode and the artifact com.atlassian.clover:clover:pom:4.1.2 has not been downloaded from it before. at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:391) ... 32 more Caused by: org.eclipse.aether.transfer.RepositoryOfflineException: Cannot access xwiki-releases (http://nexus.xwiki.org/nexus/content/groups/public) in offline mode at org.eclipse.aether.internal.impl.DefaultOfflineController.checkOffline(DefaultOfflineController.java:72) at org.eclipse.aether.internal.impl.Utils.checkOffline(Utils.java:115) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:387) ... 32 more [ERROR]
What's strange is that I do have the clover 4.1.2 pom in my local repo:
vmassol@vmassol ~/dev/xwiki/git/xwiki-platform (stable-8.4.x *) $ ls -l /Users/vmassol/.m2/repository/com/atlassian/clover/clover/4.1.2/ total 35224 -rw-r--r-- 1 vmassol staff 248 Dec 3 15:04 _remote.repositories -rw-r--r-- 1 vmassol staff 18014381 Dec 3 15:04 clover-4.1.2.jar -rw-r--r-- 1 vmassol staff 40 Dec 3 15:04 clover-4.1.2.jar.sha1 -rw-r--r-- 1 vmassol staff 2815 Dec 3 15:04 clover-4.1.2.pom -rw-r--r-- 1 vmassol staff 40 Dec 3 15:04 clover-4.1.2.pom.sha1