我已經爲項目配置了SVN-Jenkins-Maven-Tomcat。每件事情都可以在小項目中正常工作。但是,當我試圖建立我的實際項目,其中包含大量的罐子和包..它顯示錯誤.. xxx包未找到。我已經手動添加了依賴jar到本地maven倉庫。Jenkin無法使用maven構建項目
的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>optaplanner</groupId>
<artifactId>optaplanner</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>annotation.code</groupId>
<artifactId>annotations</artifactId>
<version>2.0.1</version>
</dependency>
<dependency>
<groupId>antlr-runtime.code</groupId>
<artifactId>antlr-runtime</artifactId>
<version>3.5</version>
</dependency>
.....
.....
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
錯誤:
/C:/Users/ANIRBAND/.jenkins/jobs/Test/workspace/src/main/java/org/optaplanner/examples/common/swingui/SolutionPanel.java:[25,48] package org.optaplanner.core.api.domain.solution does not exist /C:/Users/ANIRBAND/.jenkins/jobs/Test/workspace/src/main/java/org/optaplanner/examples/common/swingui/SolutionPanel.java:[72,29] cannot find symbol /C:/Users/ANIRBAND/.jenkins/jobs/Test/workspace/src/main/java/org/optaplanner/examples/common/swingui/ConstraintMatchesDialog.java:[45,17] package org.slf4j does not exist
你能幫我解決一樣嗎?