Announcement Announcement Module
Collapse
No announcement yet.
Configured maven-repo not used when installing plan Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment

    Working...
    X