1. Clemens Rabe
  2. scm-autologin-plugin
Issue #1 resolved

Create .scmp file

cjyar
created an issue

It would be really great if the maven build for this plugin could just build a .scmp file. Then the user could build the plugin locally and easily install it to SCM Manager.

Comments (8)

  1. Clemens Rabe repo owner

    Do you know any examples or documentation about the scmp build target? At the moment I'm using a script to manually merge the plugin into the scm-manager plugins directory.

  2. Clemens Rabe repo owner

    It's already there! :-) The scmp file can be generated by calling

    mvn scmp:package
    

    from the scm-autologin-plugin directory. The .scmp file is then found in the target directory. I have also created the scmp file for the latest version and put it into the Downloads section.

  3. cjyar reporter

    Thanks! I'm not able to install the plugin though: Neither when I build it myself, nor when I use the one you posted. I get this exception:

    09:25:42.286 [qtp746169063-21] INFO  sonia.scm.plugin.AetherPluginHandler - try
    to install plugin with gav: sonia.scm.plugins:scm-autologin-plugin:1.0-SNAPSHOT
    09:25:42.306 [qtp746169063-21] WARN  sonia.scm.api.rest.resources.PluginResource
     - plugin installation failed
    sonia.scm.plugin.PluginException: could not collect dependencies or store classp
    ath file
            at sonia.scm.plugin.AetherPluginHandler.collectDependencies(AetherPlugin
    Handler.java:221) ~[classes/:na]
            at sonia.scm.plugin.AetherPluginHandler.doInstall(AetherPluginHandler.ja
    va:273) ~[classes/:na]
            at sonia.scm.plugin.AetherPluginHandler.install(AetherPluginHandler.java
    :145) ~[classes/:na]
            at sonia.scm.plugin.DefaultPluginManager.installPackage(DefaultPluginMan
    ager.java:256) ~[classes/:na]
    ...
    Caused by: org.sonatype.aether.resolution.DependencyResolutionException: Could not find artifact sonia.scm.plugins:scm-autologin-plugin:jar:1.0-SNAPSHOT in package-repository (file:///tmp/1389288342278-0)
            at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:375) ~[aether-impl-1.13.1.jar:na]
            at sonia.scm.plugin.Aether.resolveDependencies(Aether.java:232) ~[classes/:na]
            at sonia.scm.plugin.AetherDependencyResolver.resolveDependency(AetherDependencyResolver.java:159) ~[classes/:na]
            at sonia.scm.plugin.AetherDependencyResolver.resolveRemoteDependency(AetherDependencyResolver.java:144) ~[classes/:na]
            at sonia.scm.plugin.AetherPluginHandler.collectDependencies(AetherPluginHandler.java:202) ~[classes/:na]
            ... 112 common frames omitted
    Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not find artifact sonia.scm.plugins:scm-autologin-plugin:jar:1.0-SNAPSHOT in package-repository (file:///tmp/1389288342278-0)
            at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538) ~[aether-impl-1.13.1.jar:na]
            at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216) ~[aether-impl-1.13.1.jar:na]
            at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:358) ~[aether-impl-1.13.1.jar:na]
            ... 116 common frames omitted
    Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact sonia.scm.plugins:scm-autologin-plugin:jar:1.0-SNAPSHOT in package-repository (file:///tmp/1389288342278-0)
            at org.sonatype.aether.connector.file.FileRepositoryWorker.run(FileRepositoryWorker.java:257) ~[aether-connector-file-1.13.1.jar:na]
            at org.sonatype.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:60) ~[aether-util-1.13.1.jar:na]
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) ~[na:1.6.0_27]
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) ~[na:1.6.0_27]
            ... 1 common frames omitted
    

    Perhaps it's because the jar file inside the .scmp archive is named scm-autologin-plugin-1.0-20140109.163316-1.jar and not scm-autologin-plugin-1.0-SNAPSHOT.jar?

  4. Clemens Rabe repo owner
    • changed status to open

    I have just modified the dependencies for the plugin from 1.35-SNAPSHOT to 1.35 (Sebastian released this version about two weeks ago). However, I have not been able to reproduce the Exception by using the latest development version of SCM-Manager nor the 1.35 (build from the sources). What version do you use? Have you build it yourself?

  5. Clemens Rabe repo owner

    Just tested with the official package scm-server-1.35-app.tar.gz and it worked too... Nevertheless, I've updated the scmp package on the download tab with the new dependency to 1.35.

  6. Log in to comment