Results 1 to 2 of 2

Thread: Configured maven-repo not used when installing plan

  1. #1
    Join Date
    Jan 2009
    Posts
    4

    Default Configured maven-repo not used when installing plan

    Dear all,

    I'm trying to install a plan, using two bundles installed in my local maven repository.

    In the config file org.eclipse.virgo.repository.properties, I configured my local maven repo like this:

    PHP Code:
    ext.type=external
    ext
    .searchPattern=repository/ext/{artifact}

    usr.type=watched
    usr
    .watchDirectory=repository/usr

    mavenrepo
    .type=watched
    mavenrepo
    .searchPattern=h:/repository/**/{bundle}.jar 

    chain
    =mavenrepo,ext,usr 
    So I would expect Virgo looking in my repository... But it can't find my bundles

    This is the error:

    Cannot find bundle 'org.test.service.logging' version range '[0.0.1.SNAPSHOT, oo)' in repository 'stage-ext-usr'.

    It isn't even looking in my maven repo, right? Did I forgot to configure something?

    Thanks in advance,

    Bram

    ps: I'm running Virgo in Eclipse

  2. #2
    Join Date
    Feb 2009
    Location
    Hursley, near Winchester, UK
    Posts
    37

    Default

    Hi, this looks like a repository specification error.

    Watched repositories don't have searchPatterns. You could code:

    Code:
    mavenrepo.type=external
    mavenrepo.searchPattern=h:/repository/**/{bundle}.jar
    or else something like:

    Code:
    mavenrepo.type=watched
    mavenrepo.watchDirectory=h:/repository/explicit/dir/name/path
    but notice that the directory for a watched repository is not a pattern, and cannot be specified as one. Only a single directory can be watched (and not recursively). This may not be suitable for your Maven repository.

    I would expect a message in the log to warn you about the repository definition (mavenrepo) being malformed. If not, this is probably a usability bug.

    Steve Powell

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •