maven多工程搭建.docx

xiaoxiao2025-04-12  16

1新建父级项目

 

2,新建子模块

选择父级项目右键,新建maven 模块

3,新建子模块会报错,需要新增webapp/WEB-INF/web.xml

 

4,parent pm.xml 添加:

 

     <build>

     <plugins>

        <plugin> 

               <groupId>org.apache.maven.plugins</groupId> 

               <artifactId>maven-compiler-plugin</artifactId> 

               <version>2.0.2</version> 

               <configuration> 

                   <source>1.8</source> 

                   <target>1.8</target> 

               </configuration> 

           </plugin> 

       </plugins>

   </build>

转载请注明原文地址: https://www.6miu.com/read-5028082.html

最新回复(0)