Fix error “Could not find artifact com.sun:tools:jar:1.5.0” of Apache Maven in Anypoint Studio

When working with Mule ESB using Apache Maven in Anypoint Studio, I am sure that everyone must encounter the following error:

To resolve this error, please follow the instructions below:

– First, go to Window -> Preferences, open the Java item and select Installed JREs

Fix error "Could not find artifact com.sun:tools:jar:1.5.0" of Apache Maven in Anypoint Studio

– On the right side of the window, select the default JRE of Anypoint Studio and click the Edit… button.

Fix error "Could not find artifact com.sun:tools:jar:1.5.0" of Apache Maven in Anypoint Studio

– Currently, the default JRE of Anypoint Studio is pointing to the JRE directory, we will edit it pointing to the JDK directory, by pressing the Directory… button and going to the JDK installation directory.

Fix error "Could not find artifact com.sun:tools:jar:1.5.0" of Apache Maven in Anypoint Studio

– Click the OK button to select the JDK folder.

Fix error "Could not find artifact com.sun:tools:jar:1.5.0" of Apache Maven in Anypoint Studio

– Click Finish to complete the change.

– Build the Mule ESB application to see the results!

Đánh giá bài viết
Chia sẽ bài viết này ...Share on Facebook
Facebook
0Tweet about this on Twitter
Twitter
Share on LinkedIn
Linkedin

Add Comment