打包maven web 項(xiàng)目成war包報(bào)錯(cuò)
我在構(gòu)建多模塊maven? web項(xiàng)目的時(shí)候,打war包時(shí),報(bào)錯(cuò)如下:
[INFO] Scanning for projects...
[INFO]????????????????????????????????????????????????????????????????????????
[INFO] ------------------------------------------------------------------------
[INFO] Building easyframework-web Maven Webapp 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for com.easyframework:easyframework-model:jar:0.0.1-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for com.easyframework:easyframework-core:jar:0.0.1-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for com.easyframework:easyframework-utils:jar:0.0.1-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.303 s
[INFO] Finished at: 2016-02-19T19:36:54+08:00
[INFO] Final Memory: 7M/108M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project easyframework-web: Could not resolve dependencies for project com.easyframework:easyframework-web:war:0.0.1-SNAPSHOT: The following artifacts could not be resolved: com.easyframework:easyframework-model:jar:0.0.1-SNAPSHOT, com.easyframework:easyframework-core:jar:0.0.1-SNAPSHOT, com.easyframework:easyframework-utils:jar:0.0.1-SNAPSHOT: Could not find artifact com.easyframework:easyframework-model: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
easyframework-web 模塊pom.xml配置如下:
<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
??? xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
? <modelVersion>4.0.0</modelVersion>
?
? <artifactId>easyframework-web</artifactId>
? <packaging>war</packaging>
? <name>easyframework-web Maven Webapp</name>
? <url>http://maven.apache.org</url>
?
? <parent>
??? <groupId>com.easyframework</groupId>
??? <artifactId>easyframework-root</artifactId>
??? <version>0.0.1-SNAPSHOT</version>
? </parent>
?
? <dependencies>
? ?<dependency>
??<groupId>javax.servlet</groupId>
??<artifactId>javax.servlet-api</artifactId>
?</dependency>
??? <dependency>
????? <groupId>junit</groupId>
????? <artifactId>junit</artifactId>
??? </dependency>
??? <dependency>
??? ?<groupId>com.easyframework</groupId>
??? ?<artifactId>easyframework-model</artifactId>
??? ?<version>${project.version}</version>
??? </dependency>
??? <dependency>
??? ?<groupId>com.easyframework</groupId>
??? ?<artifactId>easyframework-core</artifactId>
??? ?<version>${project.version}</version>
??? </dependency>
??? <dependency>
??? ?<groupId>com.easyframework</groupId>
??? ?<artifactId>easyframework-utils</artifactId>
??? ?<version>${project.version}</version>
??? </dependency>
? </dependencies>
? <build>
??? <finalName>easyframework-web</finalName>
??? <plugins>
???? <plugin>??
?????? <groupId>org.apache.maven.plugins</groupId>??
?????? <artifactId>maven-war-plugin</artifactId>??
?????? <version>2.0.2</version>
?????? <configuration>
?????? ?<warName>easyframework-web</warName>
?????? </configuration>??
??? </plugin>
?? </plugins>
? </build>
</project>
依賴的其他模塊沒(méi)有手動(dòng)打成jar包,打war包的時(shí)候,會(huì)首相把依賴的模塊打成jar包,依賴進(jìn)來(lái)嗎?