Restructure the project into a maven architecture

How to restructure a business core system into a maven architecture
convert to maven project
set the path, the old project obviously will not revert to src/main/java. webapp these directories

<sourceDirectory>${basedir}/java</sourceDirectory> 
<testSourceDirectory>${basedir}/java_test</testSourceDirectory>
<webappDirectory>${basedir}/ui</webappDirectory>
<warSourceDirectory>${basedir}/ui</warSourceDirectory>

Set the source code path
Insert picture description here
Configure the resource file in the code directory
Insert picture description here
Configure the file name of the war package

<finalName>ui</finalName> <!-- war包 文件名 -->

Set the local lib used during compilation
Insert picture description here

Over is
really simple, for Lao Tzu, wherever you go is called dimensionality reduction

Guess you like

Origin blog.csdn.net/wangduqiang747/article/details/103820928