eclispe can not get maven jar package dependent on local projects

A wechat-standard works, engineering five modules, wherein the two modules are wechat-standard-common (packaged into jar), wechat-standard-admin (packaged into war) .wechat-satndard-admin dependent on wechat-standard -common. After the compiler package, with jetty plug-in eclispe run wechat-standard-admin project, with the following error:

WARNING: PWC6351: In TLD scanning, the supplied resource file:/C:/Users/Administrator/.m2/repository/com/sqq/wechat-standard-common/1.1-SNAPSHOT/wechat-standard-common-1.1-SNAPSHOT.jar does not exist 
java.io.FileNotFoundException: C:\Users\Administrator.m2\repository\com\sqq\wechat-standard-common\1.1-SNAPSHOT\wechat-standard-common-1.1-SNAPSHOT.jar (系统找不到指定的路径。)

builder path to view the eclipse project found wechat-standard-common-1.1-SNAPSHOT.jar state dependency is missing, the corresponding path is the path to the local maven repository

There are two ways to solve this problem: 
1. Run the maven install command wechat-standard-common, install it to the local maven repository (and maven deploy different, are not posted to the remote repository), so that you can find in the local warehouse the jar package

Item 2. Right -> properties-> Maven, check rosolve dependencies from workspace projects (Method 1 is obtained corresponding to uncheck)

Both of these methods is to run the project eclispe find different ways dependent jar package.

If the project through the package labeled as war package, deploy to tomcat running, this is not an issue, it should package automatically after wechat-standard-common package into the war in

Guess you like

Origin www.cnblogs.com/gaobing1252/p/11110559.html