pom打包报错的问题

[ERROR] The build could not read 1 project -> [Help 1]

[ERROR]   

[ERROR]   The project com.hupun.crm:crm-common:0.0.1-SNAPSHOT (/Users/fengbin/work_space/crm/crm_maven/crm-dubbo/crm-common/pom.xml) has 1 error

[ERROR]     Non-resolvable parent POM: Could not find artifact com.hupun.crm:crm-dubbo-parent:pom:0.0.1-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 4, column 10 -> [Help 2]

[ERROR] 

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

 

 

因为crm-common 的工程中pom.xml中没有配置私服的地址.

然后会找到apache-maven-3.0.3 中的settings-ecrm.xml 中的地址.

所以 在setting-ecrm.xml 中增加 问题解决.

 <mirrors>  

  <mirror>  

<id>nexus</id>  

<name>nexus</name>  

<url>http://test.maven.hupun.com:7481/nexus/content/groups/public</url>  

<mirrorOf>central</mirrorOf>  

  </mirror>  

</mirrors>

<activeProfiles>

<activeProfile>default</activeProfile>

</activeProfiles>

<proxies/>

    <profiles>

<profile>

<repositories>

 <repository>

  <id>snapshots</id>

  <name>Snapshots</name>

  <url>http://test.maven.hupun.com:7481/nexus/content/repositories/snapshots</url>

 </repository>

 <repository>

  <id>releases</id>

  <name>Releases</name>

  <url>http://test.maven.hupun.com:7481/nexus/content/repositories/releases</url>

 </repository>

</repositories>

</profile>

 

猜你喜欢

转载自fengbin2005.iteye.com/blog/2340104