我在pom.xml中添加了依赖项和插件here。
但错误是。
Execution default of goal com.mysema.maven:apt-maven-plugin:1.1.3:process failed:
Plugin com.mysema.maven:apt-maven-plugin:1.1.3 or one of its dependencies could not be resolved:
Failed to collect dependencies for com.mysema.maven:apt-maven-plugin:jar:1.1.3 ()
(com.mysema.maven:apt-maven-plugin:1.1.3:process:default:generate-sources)
我该如何解决这个问题?
答案 0 :(得分:0)
我自己找到了原因。
首先,我应该添加querydsl版本的prorerty,因为防火墙我手动添加了库。
<plugin>
<groupId>com.mysema.maven</groupId>
<artifactId>apt-maven-plugin</artifactId>
<version>1.1.3</version>
<systemPath>${system.score.path}/apt-maven-plugin-1.1.3.jar</systemPath>
<executions>
<execution>
<goals>
<goal>process</goal>
</goals>
<configuration>
<outputDirectory>target/generated-sources/java</outputDirectory>
<processor>com.querydsl.apt.jpa.JPAAnnotationProcessor</processor>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>com.querydsl</groupId>
<artifactId>querydsl-apt</artifactId>
<version>${querydsl.version}</version>
<systemPath>${system.score.path}/querydsl-apt-3.4.3.jar</systemPath>
</dependency>
</dependencies>
</plugin>
其次,我在eclipse.ini文件中添加了vm选项。
You need to run build with JDK or have tools.jar on the classpath
它有效!!