Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a475515

Browse files
committed
8_7_mvn_plugins
1 parent b89d690 commit a475515

File tree

2 files changed

+42
-25
lines changed

2 files changed

+42
-25
lines changed

persist/pom.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,30 @@
3131
</execution>
3232
</executions>
3333
</plugin>
34+
35+
<!--http://www.liquibase.org/documentation/maven/ -->
36+
<plugin>
37+
<groupId>org.liquibase</groupId>
38+
<artifactId>liquibase-maven-plugin</artifactId>
39+
<version>3.5.3</version>
40+
<configuration>
41+
<changeLogFile>../sql/databaseChangeLog.sql</changeLogFile>
42+
<driver>org.postgresql.Driver</driver>
43+
<url>jdbc:postgresql://localhost:5432/masterjava</url>
44+
<username>user</username>
45+
<password>password</password>
46+
<!--<propertyFile>${masterjava.config}/liquibase.properties</propertyFile>-->
47+
<!--<propertyFileWillOverride>true</propertyFileWillOverride>-->
48+
</configuration>
49+
<executions>
50+
<execution>
51+
<phase>process-resources</phase>
52+
<goals>
53+
<goal>update</goal>
54+
</goals>
55+
</execution>
56+
</executions>
57+
</plugin>
3458
</plugins>
3559
</build>
3660

services/mail-service/pom.xml

Lines changed: 18 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -21,31 +21,24 @@
2121
<plugins>
2222
<plugin>
2323
<groupId>org.apache.maven.plugins</groupId>
24-
<artifactId>maven-war-plugin</artifactId>
25-
<version>3.2.0</version>
26-
<configuration>
27-
<failOnMissingWebXml>false</failOnMissingWebXml>
28-
<webResources>
29-
<resource>
30-
<directory>src/main/webapp</directory>
31-
</resource>
32-
<resource>
33-
<directory>${masterjava.config}</directory>
34-
<includes>
35-
<include>version.html</include>
36-
</includes>
37-
<filtering>true</filtering>
38-
</resource>
39-
<resource>
40-
<directory>${masterjava.config}</directory>
41-
<includes>
42-
<include>wsdl/mailService.wsdl</include>
43-
<include>wsdl/common.xsd</include>
44-
</includes>
45-
<targetPath>WEB-INF</targetPath>
46-
</resource>
47-
</webResources>
48-
</configuration>
24+
<artifactId>maven-antrun-plugin</artifactId>
25+
<version>1.8</version>
26+
<executions>
27+
<execution>
28+
<phase>prepare-package</phase>
29+
<goals>
30+
<goal>run</goal>
31+
</goals>
32+
<configuration>
33+
<target>
34+
<copy todir="target/mail/WEB-INF/wsdl">
35+
<!--https://ant.apache.org/manual/Types/selectors.html-->
36+
<fileset dir="${masterjava.config}/wsdl" includes="mailService.wsdl,common.xsd"/>
37+
</copy>
38+
</target>
39+
</configuration>
40+
</execution>
41+
</executions>
4942
</plugin>
5043
</plugins>
5144
</build>

0 commit comments

Comments
 (0)