Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solved Airline Sample pom.xml error thown by com.sun.tools systemPath #14

Open
brewagebear opened this issue Jan 16, 2022 · 0 comments
Open

Comments

@brewagebear
Copy link

brewagebear commented Jan 16, 2022

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>
@brewagebear brewagebear changed the title Airline Sample Compile error Solved Airline Sample pom.xml error thown by com.sun.tools systemPath Jan 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant