java - error in pom.xml -
i getting error below:
for dependency dependency {groupid=weblogic, artifactid=webservices, version=9.2, type=jar}: system- scoped dependency must specify absolute path system path
not sure wrong. have environment variable configured using in pom.xml
when using system
scope have provide absolute path dependency (as opposed other dependencies, searched in maven repositories). see system dependencies in introduction dependency mechanism.
example:
<dependency> <groupid>javax.sql</groupid> <artifactid>jdbc-stdext</artifactid> <version>2.0</version> <scope>system</scope> <systempath>${java.home}/lib/rt.jar</systempath> </dependency>
why don't install third-party artifact in local/company repository?
edit: if have systempath
defined suspect environment variable not resolved, following error (note presence of variable in path):
the project ... has 1 error 'dependencies.dependency.systempath' weblogic:webservices:jar must specify absolute path ${env.bea_home}/lib/xyz.jar @ line ...
but if maven discovers variable , resolves properly, error message quoted above contain resolved directory (not placeholder). tested on ubuntu/maven 3.
Comments
Post a Comment