builder 时报下面的错误 ,说找不到CommonProject 这个包
[ERROR] Failed to execute goal on project SSOServer: Could not resolve dependencies for project com.ssc:SSOServer:war:0.0.1-SNAPSHOT: Could not find artifact com.ssc:CommonProject:jar:0.0.1-SNAPSHOT -> [Help 1]
[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.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
SSOServer 项目中引入了这个包
<!– 引入公共类 CommonProject –>
<dependency>
<groupId>com.ssc</groupId>
<artifactId>CommonProject</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
CommonProject 项目中 pom
<modelVersion>4.0.0</modelVersion>
<groupId>com.ssc</groupId>
<artifactId>CommonProject</artifactId>
<packaging>war</packaging>
<version>0.0.1-SNAPSHOT</version>
<name>CommonProject Maven Webapp</name>
<url>http://maven.apache.org</url>
什么原因了 包名都是复制过来的 文件少的时候 测试过 没问题
[ERROR] Failed to execute goal on project SSOServer: Could not resolve dependencies for project com.ssc:SSOServer:war:0.0.1-SNAPSHOT: Could not find artifact com.ssc:CommonProject:jar:0.0.1-SNAPSHOT -> [Help 1]
[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.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
SSOServer 项目中引入了这个包
<!– 引入公共类 CommonProject –>
<dependency>
<groupId>com.ssc</groupId>
<artifactId>CommonProject</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
CommonProject 项目中 pom
<modelVersion>4.0.0</modelVersion>
<groupId>com.ssc</groupId>
<artifactId>CommonProject</artifactId>
<packaging>war</packaging>
<version>0.0.1-SNAPSHOT</version>
<name>CommonProject Maven Webapp</name>
<url>http://maven.apache.org</url>
什么原因了 包名都是复制过来的 文件少的时候 测试过 没问题
解决方案
10
被依赖的maven项目需要发布到私服(deploy)或安装(install)到本地m2,才能依赖
10
需要先install CommonProject