I am getting an error as below:
For dependency Dependency
{groupId=weblogic,
artifactId=webservices, version=9.2,
type=jar}: system- scoped dependency
must specify an absolute path system
Path
Not sure what is wrong. I have the environment variable configured which I am using in pom.xml
When using
systemscope you have to provide an absolute path to the dependency (as opposed to any other dependencies, which are searched in Maven repositories). See System Dependencies in Introduction to the Dependency Mechanism.Example:
Why don’t you just install your third-party artifact in your local/company repository?
EDIT: If you have
systemPathdefined but suspect that environment variable is not resolved, you will get the following error (note the presence of variable in the path):But if Maven discovers the variable and resolves it properly, the error message quoted above will contain already resolved directory (not a placeholder). Tested on Ubuntu/Maven 3.