Issue #1 resolved
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
     - plugin installation failed
    sonia.scm.plugin.PluginException: could not collect dependencies or store classp
    ath file
            at sonia.scm.plugin.AetherPluginHandler.collectDependencies(AetherPlugin ~[classes/:na]
            at sonia.scm.plugin.AetherPluginHandler.doInstall(AetherPluginHandler.ja
    va:273) ~[classes/:na]
            at sonia.scm.plugin.AetherPluginHandler.install(
    :145) ~[classes/:na]
            at sonia.scm.plugin.DefaultPluginManager.installPackage(DefaultPluginMan ~[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( ~[aether-impl-1.13.1.jar:na]
            at sonia.scm.plugin.Aether.resolveDependencies( ~[classes/:na]
            at sonia.scm.plugin.AetherDependencyResolver.resolveDependency( ~[classes/:na]
            at sonia.scm.plugin.AetherDependencyResolver.resolveRemoteDependency( ~[classes/:na]
            at sonia.scm.plugin.AetherPluginHandler.collectDependencies( ~[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( ~[aether-impl-1.13.1.jar:na]
            at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts( ~[aether-impl-1.13.1.jar:na]
            at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies( ~[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 ~[aether-connector-file-1.13.1.jar:na]
            at org.sonatype.aether.util.concurrency.RunnableErrorForwarder$ ~[aether-util-1.13.1.jar:na]
            at java.util.concurrent.ThreadPoolExecutor.runWorker( ~[na:1.6.0_27]
            at java.util.concurrent.ThreadPoolExecutor$ ~[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