repohelper and libraryDirectory: help!

Help
2010-10-27
2013-05-02
  • Kim Marivoet

    Kim Marivoet - 2010-10-27

    I'm trying to use the repohelper plugin, but for some reason the plugin seems to mixup the paths.

    'mvn -version' gives:
    Apache Maven 2.2.1 (rdebian-1)
    Java version: 1.6.0_20
    Java home: /usr/lib/jvm/java-6-sun-1.6.0.20/jre
    Default locale: en_US, platform encoding: UTF-8
    OS name: "linux" version: "2.6.32-25-generic" arch: "amd64" Family: "unix"

    I created a direcory /tmp/jars that contains a jar I would like to add to my repository.

    When I use following command in '/tmp':
    mvn -X repohelper:install-libraries -DlibraryDirectory="jars" -DjustCheckDirectories=true

    I get following output:
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    Configuring mojo 'ch.elca.el4j.maven.plugins:maven-repohelper-plugin:3.0:install-libraries' ->
       (f) basedir = /tmp
       (f) jarExtension = .jar
       (f) jarLookupPattern = **/*.jar
       (f) justCheckDirectories = true
       (f) libraryDirectory = /tmp/jars
       (f) pomExtension = -pom.xml
       (f) pomLookupPattern = **/*-pom.xml
       (f) sourceExtension = -src.zip
       (f) sourceLookupPattern = **/*-src.zip
       (f) stopOnProblem = true
    - end configuration -

    Library directory is set to '/tmp/jars'.
    Looking for matching resources in directory tree
    Skipping  because it does not exist
    Resolved location pattern  to resources
    Found following 0 file(s) for pattern '**/*.jar'.
    Looking for matching resources in directory tree
    Skipping  because it does not exist
    Resolved location pattern  to resources
    Found following 0 file(s) for pattern '**/*-src.zip'.
    Looking for matching resources in directory tree
    Skipping  because it does not exist
    Resolved location pattern  to resources
    Found following 0 file(s) for pattern '**/*-pom.xml'.
    0 dependencies are ready to be uploaded.
    0 dependencies are ready to be uploaded.
    0 dependencies are ready to be uploaded.
    Directory check successfully terminated.
    Property 'justCheckDirectories' set to true, so no library will be installed.
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

    For some reason the plugin seems to look in '/tmp/tmp/jars', and doesn't find anything….
    Whatever I try, wherever I put my jars, I can't get it to work.

    Any idea what I'm doing wrong ? I use version 3.0 of the repohelper plugin.

     
  • Martin Zeltner

    Martin Zeltner - 2010-10-28

    Hi

    Thank you for the bug report. It seams that we never used the repohelper plugin on unix systems.
    The error is that the Spring class "org.springframework.core.io.FileSystemResourceLoader" has a special behavior, that every path that starts with a / will be assumed as relative too. See http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/core/io/FileSystemResourceLoader.html

    I have now fixed the bug on the trunk and the next days I will finalize the branch version EL4J 1.7.1. So the plugin will be available as version 1.9.1 the next week.

    Cheers
    Martin

     
  • Kim Marivoet

    Kim Marivoet - 2010-10-28

    Thanks !

    Kim

     
  • Martin Zeltner

    Martin Zeltner - 2010-11-02

    Hi Kim

    Version 1.9.1 of the plugin is out now.

    Cheers
    Martin

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks