打包maven web 项目成war包报错
我在构建多模块maven web项目的时候,打war包时,报错如下:
[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>
依赖的其他模块没有手动打成jar包,打war包的时候,会首相把依赖的模块打成jar包,依赖进来吗?