spring-ws-samples
spring-ws-samples copied to clipboard
Solved Airline Sample pom.xml error thown by com.sun.tools systemPath
Thank you for providing such a good sample while studying web services.
While checking the code operation or internal operation by cloning the project, I am writing this issue to the level of sharing in case an error occurred and could help those who experienced the error like me.
The environment of my development machine is as follows.
- Development Environment
| title | detail |
|---|---|
| OS Version | Mac BigSur 11.4 |
| IDE Version | Intelij ultimate 2021.3.1 |
| Java Version | Adopt-OpenJdk-1.8 |
- Error Message
[ERROR] 'build.plugins.plugin[org.apache.maven.plugins:maven-antrun-plugin].dependencies.dependency.systemPath' for com.sun:tools:jar must specify an absolute path but is ${env.JAVA_HOME}/lib/tools.jar @ line 56, column 19
When I checked based on the above error message, I suspected that an error occurred in the pom.xml section below.
- airline/client/jax-ws/pom.xml
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.5.0</version>
<scope>system</scope>
<systemPath>${env.JAVA_HOME}/lib/tools.jar</systemPath>
</dependency>
I solved this pom.xml by modifying it as follows.
<dependency>
... same above pom.xml ...
<systemPath>${java.home}/../lib/tools.jar</systemPath>
</dependency>