Maven 2 & 3

property in plugin dependency's systemPath is not resolved and causes "system-scoped dependency must specify an absolute path systemPath."

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 2.0.4, 2.0.5
  • Fix Version/s: None
  • Component/s: Bootstrap & Build
  • Labels:
    None
  • Complexity:
    Intermediate
  • Number of attachments :
    0

Description

In a plugin pom.xml,

<dependency>
<groupId>weblogic</groupId>
<artifactId>weblogic</artifactId>
<version>[9.0,)</version>
<scope>system</scope>
<systemPath>${wl.home}/server/lib/weblogic.jar</systemPath>
</dependency>

In ~/.m2/setting.xml,

<settings>
<profiles>
<profile>
<id>weblogicConfig</id>
<activation>
<activeByDefault/>
</activation>
<properties>
<wl.home>c:/java/bea-9.2/weblogic92</wl.home>
</properties>
</profile>
</profiles>
<activeProfiles>
<activeProfile>weblogicConfig</activeProfile>
</activeProfiles>
</settings>

When build the plugin, it works fine.

In a project that uses this plugin, when build, it causes the following error:

Project ID: org.codehaus.mojo:weblogic-maven-plugin
POM Location: Artifact [org.codehaus.mojo:weblogic-maven-plugin:pom:2.9.0-SNAPSHOT]
Validation Messages:

[0] For dependency Dependency {groupId=weblogic, artifactId=weblogic, version=[9.0,), type=jar}: system-scoped dependency must specify an absolute path systemPath.

Issue Links

Activity

Hide
Ian Springer added a comment -

The same problem exists for system dependencies defined in a non-plugin pom.xml.

Would someone please provide a fix for this? It's preventing me from doing what I need to do in my build, and I don't see any workarounds to the bug.

Show
Ian Springer added a comment - The same problem exists for system dependencies defined in a non-plugin pom.xml. Would someone please provide a fix for this? It's preventing me from doing what I need to do in my build, and I don't see any workarounds to the bug.
Hide
Brett Porter added a comment -

this doesn't appear a direct duplicate of the linked issue.

a) it may be related to when it's a plugin (I haven't confirmed if that's resolved)
b) I still get errors with a valid path due to the range

Show
Brett Porter added a comment - this doesn't appear a direct duplicate of the linked issue. a) it may be related to when it's a plugin (I haven't confirmed if that's resolved) b) I still get errors with a valid path due to the range
Hide
Ken Geis added a comment - - edited

I am having this problem with Maven 2.2.1, but it looks like it will be resolved by MNG-4148.

Show
Ken Geis added a comment - - edited I am having this problem with Maven 2.2.1, but it looks like it will be resolved by MNG-4148.
Hide
Jon Osborn added a comment -

What happens when you specify the properties in the same pom as the ${wl.home} usage?

Show
Jon Osborn added a comment - What happens when you specify the properties in the same pom as the ${wl.home} usage?

People

Vote (13)
Watch (11)

Dates

  • Created:
    Updated:
    Resolved: