1新建父级项目

maven多工程搭建.docx

 

maven多工程搭建.docx

maven多工程搭建.docx

2,新建子模块

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

maven多工程搭建.docx

maven多工程搭建.docx

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>

相关文章:

  • 2022-01-03
  • 2021-12-03
  • 2021-11-19
  • 2021-06-01
  • 2021-12-23
  • 2021-10-02
  • 2021-04-03
猜你喜欢
  • 2021-11-14
  • 2021-10-12
  • 2021-09-04
  • 2021-04-20
  • 2021-10-25
相关资源
相似解决方案