Eclipse 4.5(Mars)のhttps://github.com/ihsanhaikalz/testMavenにあるMavenプロジェクトを実行したいのですが、次のようにpom.xmlにエラーが表示されます:依存関係エラーAspectJ Mavenプラグインのインストールcom:sun:tools:jar
1 problem was encountered while building the effective model for
org.codehaus.mojo:aspectj-maven-plugin:1.8 [ERROR]
'dependencies.dependency.systemPath' for com.sun:tools:jar must specify an
absolute path but is ${toolsjarSystemPath} @
私はすでにhttp://download.eclipse.org/tools/ajdt/45/dev/update経由のEclipse 4.5のAJDTをインストールし、私はgithubのから引っ張ったときにEclipseがAJDTのためのMavenプラグインコネクタとMavenの統合をダウンロードするために始めたが、エラーがまだそこにあります。私はすでにthisとthisに従っていますが、運がまだありません。
は、ここですべてのヘルプは高く評価され、私のpom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>testMaven</groupId>
<artifactId>testMaven</artifactId>
<version>0.0.1-SNAPSHOT</version>
<properties>
<java.version>1.8</java.version>
<aspectj.version>1.8.9</aspectj.version>
<!-- Maven Plugin Versions -->
<maven.compiler.plugin.version>3.2</maven.compiler.plugin.version>
</properties>
<repositories>
<repository>
<id>anon.inf.tu-dresden.de-snapshots</id>
<url>http://anon.inf.tu-dresden.de/artifactory/repo/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjrt</artifactId>
<version>${aspectj.version}</version>
</dependency>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjtools</artifactId>
<version>${aspectj.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
<version>1.8</version>
<configuration>
<complianceLevel>${java.version}</complianceLevel>
<source>${java.version}</source>
<target>${java.version}</target>
<showWeaveInfo>true</showWeaveInfo>
</configuration>
<executions>
<execution>
<id>AspectJ-Classes</id>
<phase>process-classes</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
<execution>
<id>AspectJ-Test-Classes</id>
<phase>process-test-classes</phase>
<goals>
<goal>test-compile</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjrt</artifactId>
<version>${aspectj.version}</version>
</dependency>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjtools</artifactId>
<version>${aspectj.version}</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.6</version>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
です。ありがとう
あなたのJavaホームは正しく設定されていますか? – uniknow
@uniknowはい私はすでに私の環境変数で使用されているjdkに私のJavaの家を設定しましたが、それでもエラー –
あなたはこれを過去にしたことがありますか?私は同じ問題があります... – HDave