2 Replies Latest reply on Sep 5, 2017 12:48 PM by hrvoje.mesec

    Build Failure - For custom plugin - Could not resolve dependencies to find com.jivesoftware:common-csv -1.0

    hendrik.tekayadi

      I try to build the custom plugin using command:

      mvn -U jive:create-plugin

      To build the plugin:

      cd plugin-name

      mvn clean package

      I got these following errors:

       

      Downloading: https://maven-secure.jivesoftware.com/archiva/repository/jive.internal/com/jivesoftware/commons-csv-1.0-SNAPSHOT/r609327-6.0.0.0/commons-csv-1.0-SNAPSHOT-r609327-6.0.0.0.pom

      Downloading: https://repo.maven.apache.org/maven2/com/jivesoftware/commons-csv-1.0-SNAPSHOT/r609327-6.0.0.0/commons-csv-1.0-SNAPSHOT-r609327-6.0.0.0.pom

      Downloading: https://build.shibboleth.net/nexus/content/groups/public/com/jivesoftware/commons-csv-1.0-SNAPSHOT/r609327-6.0.0.0/commons-csv-1.0-SNAPSHOT-r609327-6.0.0.0.pom

      [WARNING] The POM for com.jivesoftware:commons-csv-1.0-SNAPSHOT:jar:r609327-6.0.0.0 is missing, no dependency information available

      Downloading: https://maven-secure.jivesoftware.com/archiva/repository/jive.internal/com/jivesoftware/commons-csv-1.0-SNAPSHOT/r609327-6.0.0.0/commons-csv-1.0-SNAPSHOT-r609327-6.0.0.0.jar

      Downloading: https://repo.maven.apache.org/maven2/com/jivesoftware/commons-csv-1.0-SNAPSHOT/r609327-6.0.0.0/commons-csv-1.0-SNAPSHOT-r609327-6.0.0.0.jar

      Downloading: https://build.shibboleth.net/nexus/content/groups/public/com/jivesoftware/commons-csv-1.0-SNAPSHOT/r609327-6.0.0.0/commons-csv-1.0-SNAPSHOT-r609327-6.0.0.0.jar

      [INFO] ------------------------------------------------------------------------

      [INFO] Reactor Summary:

      [INFO]

      [INFO] psjive ............................................. SUCCESS [  6.030 s]

      [INFO] weboverlay ......................................... FAILURE [  9.922 s]

      [INFO] themes ............................................. SKIPPED

      [INFO] jsplugin ........................................... SKIPPED

      [INFO] ------------------------------------------------------------------------

      [INFO] BUILD FAILURE

      [INFO] ------------------------------------------------------------------------

      [INFO] Total time: 16.169 s

      [INFO] Finished at: 2017-07-29T02:15:22+08:00

      [INFO] Final Memory: 26M/301M

      [INFO] ------------------------------------------------------------------------

      [ERROR] Failed to execute goal on project web: Could not resolve dependencies for project com.jivesoftware.pet.jvfactory:web:war:8.0.1.0-0-SNAPSHOT: Could not find artifact com.jivesoftware:commons-csv-1.0-SNAPSHOT:jar:r609327-6.0.0.0 in jive.internal (https://maven-secure.jivesoftware.com/archiva/repository/jive.internal) -> [Help 1]

      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project web: Could not resolve dependencies for project com.jivesoftware.pet.jvfactory:web:war:8.0.1.0-0-SNAPSHOT: Could not find artifact com.jivesoftware:commons-csv-1.0-SNAPSHOT:jar:r609327-6.0.0.0 in jive.internal (https://maven-secure.jivesoftware.com/archiva/repository/jive.internal)

        at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:221)

        at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:127)

        at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:246)

        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:200)

        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)

        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)

        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:51)

        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)

        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)

        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)

        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)

        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)

        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)

        at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)

        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:498)

        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.project.DependencyResolutionException: Could not resolve dependencies for project com.jivesoftware.pet.jvfactory:web:war:8.0.1.0-0-SNAPSHOT: Could not find artifact com.jivesoftware:commons-csv-1.0-SNAPSHOT:jar:r609327-6.0.0.0 in jive.internal (https://maven-secure.jivesoftware.com/archiva/repository/jive.internal)

        at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:208)

        at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:195)

        ... 23 more

      Caused by: org.eclipse.aether.resolution.DependencyResolutionException: Could not find artifact com.jivesoftware:commons-csv-1.0-SNAPSHOT:jar:r609327-6.0.0.0 in jive.internal (https://maven-secure.jivesoftware.com/archiva/repository/jive.internal)

        at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:393)

        at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:202)

        ... 24 more

      Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not find artifact com.jivesoftware:commons-csv-1.0-SNAPSHOT:jar:r609327-6.0.0.0 in jive.internal (https://maven-secure.jivesoftware.com/archiva/repository/jive.internal)

        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:453)

        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:255)

        at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:376)

        ... 25 more

      Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact com.jivesoftware:commons-csv-1.0-SNAPSHOT:jar:r609327-6.0.0.0 in jive.internal (https://maven-secure.jivesoftware.com/archiva/repository/jive.internal)

        at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:48)

        at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:364)

        at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:76)

        at org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:590)

        at org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:258)

        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:529)

        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:430)

        ... 27 more

      [ERROR]

      [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/DependencyResolutionException

      [ERROR]

      [ERROR] After correcting the problems, you can resume the build with the command

      [ERROR]   mvn <goals> -rf :web


      I tried solution from Re: Build Failure - For custom plugin - Could not resolve dependencies to find com.jivesoftware:common-csv -1.0, but it didn't work for me.
      Please kindly advice me on this issue.