컴파일 할 수없는 다중 모듈 maven 프로젝트가 있습니다. Nexus 저장소가 로컬 네트워크에 연결되어 있고 작동 중입니다 (IntelliJ Idea는 해당 저장소에만있는 내 종속성을 해결할 수 있음). Jetbrains TeamCity를 통해 구축하고 있습니다. 나는 TeamCity가 설정 한 여러 가지 다른 빌드 구성 (같은 settings.xml 사용) 이후로 작업하고 있음을 확신합니다. 나는이 문제를 일으킬 수있는 것에 대해 약간의 상실감이있다. 여기 내 치어 파일은 다음과 같습니다Maven 다중 모듈 프로젝트, 종속성 해결되지 않음
부모 POM :
<?xml version="1.0" encoding="UTF-8"?>
<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>com.company.product.plugins</groupId>
<artifactId>plugin-parent</artifactId>
<version>1.2-SNAPSHOT</version>
<packaging>pom</packaging>
<modules>
<module>product-wireless-plugin</module>
<module>product-paging-plugin</module>
</modules>
<distributionManagement>
<repository>
<id>releases</id>
<url>http://192.168.2.192:8081/nexus/content/repositories/releases/</url>
</repository>
<snapshotRepository>
<id>snapshots</id>
<url>http://192.168.2.192:8081/nexus/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
<pluginRepositories>
<pluginRepository>
<id>autoincrement-versions-maven-plugin</id>
<name>autoincrement-versions-maven-plugin</name>
<url>http://autoincrement-versions-maven-plugin.googlecode.com/svn/repo</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>autoincrement-versions-maven-plugin</artifactId>
<version>2.0-SNAPSHOT</version>
<executions>
<execution>
<id>update-pom-versions</id>
<goals>
<goal>increment</goal>
<goal>commit</goal>
</goals>
<phase>compile</phase>
<configuration>
<autoIncrementVersion>true</autoIncrementVersion>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<testFailureIgnore>true</testFailureIgnore>
</configuration>
</plugin>
</plugins>
</build>
</project>
제품 무선 치어 :
<?xml version="1.0" encoding="UTF-8"?>
<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">
<parent>
<artifactId>plugin-parent</artifactId>
<groupId>com.company.product.plugins</groupId>
<version>1.2-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>com.company.product.plugins</groupId>
<artifactId>product-wireless-plugin</artifactId>
<version>0.1.2</version>
<distributionManagement>
<repository>
<id>releases</id>
<url>http://192.168.2.192:8081/nexus/content/repositories/releases/</url>
</repository>
<snapshotRepository>
<id>snapshots</id>
<url>http://192.168.2.192:8081/nexus/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
<dependencies>
<dependency>
<groupId>com.company.product</groupId>
<artifactId>product-common</artifactId>
<version>0.9.1</version>
</dependency>
</dependencies>
</project>
제품 - 페이징 치어 :
<?xml version="1.0" encoding="UTF-8"?>
<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">
<parent>
<artifactId>plugin-parent</artifactId>
<groupId>com.company.product.plugins</groupId>
<version>1.2-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>com.company.product.plugins</groupId>
<artifactId>product-paging-plugin</artifactId>
<version>0.1.2</version>
<distributionManagement>
<repository>
<id>releases</id>
<url>http://192.168.2.192:8081/nexus/content/repositories/releases/</url>
</repository>
<snapshotRepository>
<id>snapshots</id>
<url>http://192.168.2.192:8081/nexus/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
<dependencies>
<dependency>
<groupId>com.company.product</groupId>
<artifactId>product-common</artifactId>
<version>0.9.1</version>
</dependency>
</dependencies>
</project>
내가 점점 오전 오류 is :
com.company.product.plugins : product-wireless-plugin [13:54:16] [com.company.product.plugins : product-wireless-plugin] 'C :/TeamCity/buildAgent/work에서 데이터 가져 오기/확실한 '프로세서가있는 /40ac813105cf8bd7/product-wireless-plugin/target/surefire-reports/TEST-*.xml [13:54:16] [com.company.product.plugins : product-wireless-plugin] 확실한 report watcher [com.company.product.plugins : product-wireless-plugin] 다운로드 위치 :/location/nexus/content/groups/public/com/company/product/product-parent/0.9.0 /product-parent-0.9.0.pom [13:54:16] [com.company.product.plugins : product-wireless-plugin] 프로젝트 제품 - 무선 - 플러그인에서 목표를 실행하지 못했습니다. 종속성을 해결할 수 없습니다. project com.company.product.plugins : product-wireless-plugin : jar : 0.1.2 : [com.company.prod]에 대한 종속성을 수집하는 데 실패했습니다. uct : product-common : jar : 0.9.1 (compile)]
이 문제를 디버깅하는 동안 나는 상당한 손실을보고 있습니다 ... 누군가에게 제안 사항이 있습니까?
1)이며, 거의 항상있다 더 자세한 오류 메시지 및/또는 스택 로그의 앞부분에있는 스택 추적. 2) 빌드를'-X' 플래그로 다시 실행하십시오. – noahlz
@noahlz 답변으로 의견을 게시 할 수 있다면 받아 들일 것입니다. 디버깅 방법을 사용하여 문제를 찾을 수있었습니다. –