add multi source plugin

This commit is contained in:
Alawn
2022-09-26 16:33:54 +08:00
parent fdb509eb4b
commit 05a7610b66

81
pom.xml
View File

@@ -10,18 +10,18 @@
<url>http://maven.apache.org</url>
<distributionManagement>
<repository>
<id>nexus</id>
<name>Releases</name>
<url>http://prm.hand-china.com:8087/nexus/repository/maven-releases</url>
</repository>
<snapshotRepository>
<id>nexus</id>
<name>Snapshot</name>
<url>http://prm.hand-china.com:8087/nexus/repository/maven-snapshots</url>
</snapshotRepository>
</distributionManagement>
<!-- <distributionManagement>-->
<!-- <repository>-->
<!-- <id>nexus</id>-->
<!-- <name>Releases</name>-->
<!-- <url>http://prm.hand-china.com:8087/nexus/repository/maven-releases</url>-->
<!-- </repository>-->
<!-- <snapshotRepository>-->
<!-- <id>nexus</id>-->
<!-- <name>Snapshot</name>-->
<!-- <url>http://prm.hand-china.com:8087/nexus/repository/maven-snapshots</url>-->
<!-- </snapshotRepository>-->
<!-- </distributionManagement>-->
<profiles>
<profile>
@@ -89,11 +89,10 @@
<dependency>
<groupId>com.hand.hdmp</groupId>
<artifactId>hdmp-framework</artifactId>
<!-- framework 2.4.0完成之后需要更新引用版本号-->
<version>2.3.1</version>
<classifier>release</classifier>
<scope>system</scope>
<systemPath>${project.basedir}/repository/com/hand/hdmp/hdmp-framework/2.3.1/hdmp-framework-2.3.1-release.jar</systemPath>
<systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/framework-core-2.3.1-release.jar</systemPath>
</dependency>
<!-- json_simple-1.1.jar -->
<dependency>
@@ -1099,7 +1098,54 @@
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
<plugins>
<!-- 指定多个源代码目录、多个资源文件目录 -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src/main/act</source>
<source>src/main/alm</source>
<source>src/main/brd</source>
<source>src/main/cux</source>
<source>src/main/db</source>
<source>src/main/dbm</source>
<source>src/main/tsp</source>
<source>src/main/dc</source>
<source>src/main/dd</source>
<source>src/main/dp</source>
<source>src/main/dr</source>
<source>src/main/dsm</source>
<source>src/main/hpm</source>
<source>src/main/hrp</source>
<source>src/main/if</source>
<source>src/main/java</source>
<source>src/main/mdm</source>
<source>src/main/odi</source>
<source>src/main/ppm</source>
<source>src/main/pth</source>
<source>src/main/ptm</source>
<source>src/main/rdo</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<configuration>
@@ -1117,9 +1163,14 @@
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.2.2</version>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.0</version>
<version>3.2.2</version>
<executions>
<!-- 打包模块的类和配置文件 -->
<execution>