Konnte keine Abhängigkeiten für Aspektej-Maven-Plugin finden

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Konnte keine Abhängigkeiten für Aspektej-Maven-Plugin finden

by Anonymous » 27 Feb 2025, 10:05

Ich habe ein Problem mit CTW-Aspekten unter Verwendung von Aspektj-Maven-Plugin. Ich erhalte den folgenden Fehler (Ausführungseintrag wird hervorgehoben): < /p>

Multiple annotations found at this line:
- Execution default of goal org.codehaus.mojo:aspectj-maven-plugin:1.5:compile failed: Plugin
org.codehaus.mojo:aspectj-maven-plugin:1.5 or one of its dependencies could not be resolved: Could not find artifact
com.sun:tools:jar:1.7.0_21 at specified path C:\Program Files\Java\jre7/../lib/tools.jar (org.codehaus.mojo:aspectj-maven-
plugin:1.5:compile:default:compile)
- Execution default of goal org.codehaus.mojo:aspectj-maven-plugin:1.5:test-compile failed: Plugin
org.codehaus.mojo:aspectj-maven-plugin:1.5 or one of its dependencies could not be resolved: Could not find artifact
com.sun:tools:jar:1.7.0_21 at specified path C:\Program Files\Java\jre7/../lib/tools.jar (org.codehaus.mojo:aspectj-maven-
plugin:1.5:test-compile:default:test-compile)
< /code>

Auf der Konfiguration: < /p>





org.codehaus.mojo
aspectj-maven-plugin
1.5

true
true
1.7
1.7


src/main/java

**/*Aspect.java







compile
test-compile






< /code>

Was mache ich falsch? Es sieht so aus, als ob dieses Plugin JDK nicht finden könnte? Aber warum?

Top