Skip to content

Commit eca64f3

Browse files
committedJan 30, 2024
Prepare for WME 2.1.9
1 parent 96e71a7 commit eca64f3

File tree

10 files changed

+1109
-5
lines changed

10 files changed

+1109
-5
lines changed
 

‎build-helper-mojo/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<parent>
1010
<artifactId>wls-exporter-parent</artifactId>
1111
<groupId>com.oracle.wls.exporter</groupId>
12-
<version>2.1.9-SNAPSHOT</version>
12+
<version>2.1.9</version>
1313
</parent>
1414

1515
<artifactId>build-helper-mojo</artifactId>
+115
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
Copyright (c) 2019, 2024, Oracle and/or its affiliates.
4+
Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
5+
-->
6+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
7+
<modelVersion>4.0.0</modelVersion>
8+
9+
<parent>
10+
<artifactId>wls-exporter-parent</artifactId>
11+
<groupId>com.oracle.wls.exporter</groupId>
12+
<version>2.1.9-SNAPSHOT</version>
13+
</parent>
14+
15+
<artifactId>build-helper-mojo</artifactId>
16+
<packaging>maven-plugin</packaging>
17+
18+
<name>Exporter Build Helper Maven Mojo</name>
19+
20+
<dependencies>
21+
<dependency>
22+
<groupId>org.apache.maven</groupId>
23+
<artifactId>maven-plugin-api</artifactId>
24+
<version>3.9.6</version>
25+
<scope>provided</scope>
26+
</dependency>
27+
<dependency>
28+
<groupId>org.apache.maven</groupId>
29+
<artifactId>maven-model</artifactId>
30+
<version>3.9.6</version>
31+
<scope>provided</scope>
32+
</dependency>
33+
<dependency>
34+
<groupId>org.apache.maven.plugin-tools</groupId>
35+
<artifactId>maven-plugin-annotations</artifactId>
36+
<version>3.11.0</version>
37+
</dependency>
38+
<dependency>
39+
<groupId>org.junit.jupiter</groupId>
40+
<artifactId>junit-jupiter</artifactId>
41+
<scope>test</scope>
42+
</dependency>
43+
<dependency>
44+
<groupId>org.ow2.asm</groupId>
45+
<artifactId>asm</artifactId>
46+
<version>9.6</version>
47+
<scope>test</scope>
48+
</dependency>
49+
<dependency>
50+
<groupId>org.hamcrest</groupId>
51+
<artifactId>java-hamcrest</artifactId>
52+
<scope>test</scope>
53+
</dependency>
54+
<dependency>
55+
<groupId>com.meterware.simplestub</groupId>
56+
<artifactId>simplestub</artifactId>
57+
<scope>test</scope>
58+
</dependency>
59+
<dependency>
60+
<groupId>com.google.guava</groupId>
61+
<artifactId>guava</artifactId>
62+
</dependency>
63+
</dependencies>
64+
65+
<build>
66+
<plugins>
67+
<plugin>
68+
<groupId>org.jacoco</groupId>
69+
<artifactId>jacoco-maven-plugin</artifactId>
70+
</plugin>
71+
72+
<plugin>
73+
<groupId>org.apache.maven.plugins</groupId>
74+
<artifactId>maven-clean-plugin</artifactId>
75+
<version>${maven-clean-plugin-version}</version>
76+
</plugin>
77+
78+
<plugin>
79+
<groupId>org.apache.maven.plugins</groupId>
80+
<artifactId>maven-plugin-plugin</artifactId>
81+
<version>${maven-plugin-plugin-version}</version>
82+
</plugin>
83+
84+
<plugin>
85+
<groupId>org.apache.maven.plugins</groupId>
86+
<artifactId>maven-install-plugin</artifactId>
87+
<version>${maven-install-plugin-version}</version>
88+
</plugin>
89+
90+
<plugin>
91+
<groupId>org.apache.maven.plugins</groupId>
92+
<artifactId>maven-site-plugin</artifactId>
93+
<version>${maven-site-plugin-version}</version>
94+
</plugin>
95+
96+
<plugin>
97+
<groupId>org.apache.maven.plugins</groupId>
98+
<artifactId>maven-deploy-plugin</artifactId>
99+
<version>${maven-deploy-plugin-version}</version>
100+
</plugin>
101+
102+
<plugin>
103+
<groupId>org.apache.maven.plugins</groupId>
104+
<artifactId>maven-resources-plugin</artifactId>
105+
<version>${maven-resources-plugin-version}</version>
106+
</plugin>
107+
108+
<plugin>
109+
<groupId>org.apache.maven.plugins</groupId>
110+
<artifactId>maven-jar-plugin</artifactId>
111+
<version>${maven-jar-plugin-version}</version>
112+
</plugin>
113+
</plugins>
114+
</build>
115+
</project>

‎pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<groupId>com.oracle.wls.exporter</groupId>
99
<artifactId>wls-exporter-parent</artifactId>
10-
<version>2.1.9-SNAPSHOT</version>
10+
<version>2.1.9</version>
1111
<modules>
1212
<module>build-helper-mojo</module>
1313
<module>wls-exporter-core</module>

‎pom.xml.versionsBackup

+407
Large diffs are not rendered by default.

‎wls-exporter-core/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<parent>
99
<artifactId>wls-exporter-parent</artifactId>
1010
<groupId>com.oracle.wls.exporter</groupId>
11-
<version>2.1.9-SNAPSHOT</version>
11+
<version>2.1.9</version>
1212
</parent>
1313

1414
<artifactId>wls-exporter-core</artifactId>
+190
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,190 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
Copyright (c) 2020, 2024, Oracle and/or its affiliates.
4+
Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
5+
-->
6+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
7+
<modelVersion>4.0.0</modelVersion>
8+
<parent>
9+
<artifactId>wls-exporter-parent</artifactId>
10+
<groupId>com.oracle.wls.exporter</groupId>
11+
<version>2.1.9-SNAPSHOT</version>
12+
</parent>
13+
14+
<artifactId>wls-exporter-core</artifactId>
15+
<name>WebLogic Monitoring Exporter Core</name>
16+
17+
<dependencies>
18+
<dependency>
19+
<groupId>javax.servlet</groupId>
20+
<artifactId>javax.servlet-api</artifactId>
21+
</dependency>
22+
<dependency>
23+
<groupId>org.apache.httpcomponents</groupId>
24+
<artifactId>httpclient</artifactId>
25+
<scope>provided</scope>
26+
</dependency>
27+
<dependency>
28+
<groupId>commons-fileupload</groupId>
29+
<artifactId>commons-fileupload</artifactId>
30+
<scope>provided</scope>
31+
</dependency>
32+
<dependency>
33+
<groupId>org.yaml</groupId>
34+
<artifactId>snakeyaml</artifactId>
35+
</dependency>
36+
<dependency>
37+
<groupId>com.google.code.gson</groupId>
38+
<artifactId>gson</artifactId>
39+
</dependency>
40+
41+
<!-- unit test dependencies -->
42+
43+
<dependency>
44+
<groupId>com.google.guava</groupId>
45+
<artifactId>guava</artifactId>
46+
<scope>test</scope>
47+
</dependency>
48+
<dependency>
49+
<groupId>com.jayway.jsonpath</groupId>
50+
<artifactId>json-path</artifactId>
51+
<scope>test</scope>
52+
</dependency>
53+
<dependency>
54+
<groupId>com.jayway.jsonpath</groupId>
55+
<artifactId>json-path-assert</artifactId>
56+
<scope>test</scope>
57+
</dependency>
58+
<dependency>
59+
<groupId>org.slf4j</groupId>
60+
<artifactId>slf4j-nop</artifactId>
61+
<scope>test</scope>
62+
</dependency>
63+
<dependency>
64+
<groupId>org.apache.httpcomponents</groupId>
65+
<artifactId>httpmime</artifactId>
66+
<scope>test</scope>
67+
</dependency>
68+
<dependency>
69+
<groupId>com.meterware.simplestub</groupId>
70+
<artifactId>simplestub</artifactId>
71+
<scope>test</scope>
72+
</dependency>
73+
<dependency>
74+
<groupId>org.junit.jupiter</groupId>
75+
<artifactId>junit-jupiter</artifactId>
76+
<scope>test</scope>
77+
</dependency>
78+
<dependency>
79+
<groupId>org.hamcrest</groupId>
80+
<artifactId>java-hamcrest</artifactId>
81+
<scope>test</scope>
82+
</dependency>
83+
<dependency>
84+
<groupId>org.httpunit</groupId>
85+
<artifactId>httpunit</artifactId>
86+
<scope>test</scope>
87+
</dependency>
88+
</dependencies>
89+
90+
<build>
91+
<plugins>
92+
<plugin>
93+
<groupId>org.jacoco</groupId>
94+
<artifactId>jacoco-maven-plugin</artifactId>
95+
</plugin>
96+
97+
<plugin>
98+
<groupId>org.apache.maven.plugins</groupId>
99+
<artifactId>maven-clean-plugin</artifactId>
100+
<version>${maven-clean-plugin-version}</version>
101+
</plugin>
102+
103+
<plugin>
104+
<groupId>org.apache.maven.plugins</groupId>
105+
<artifactId>maven-install-plugin</artifactId>
106+
<version>${maven-install-plugin-version}</version>
107+
</plugin>
108+
109+
<plugin>
110+
<groupId>org.apache.maven.plugins</groupId>
111+
<artifactId>maven-site-plugin</artifactId>
112+
<version>${maven-site-plugin-version}</version>
113+
</plugin>
114+
115+
<plugin>
116+
<groupId>org.apache.maven.plugins</groupId>
117+
<artifactId>maven-deploy-plugin</artifactId>
118+
<version>${maven-deploy-plugin-version}</version>
119+
</plugin>
120+
121+
<plugin>
122+
<groupId>org.apache.maven.plugins</groupId>
123+
<artifactId>maven-resources-plugin</artifactId>
124+
<version>${maven-resources-plugin-version}</version>
125+
</plugin>
126+
127+
<plugin>
128+
<groupId>org.apache.maven.plugins</groupId>
129+
<artifactId>maven-jar-plugin</artifactId>
130+
<version>${maven-jar-plugin-version}</version>
131+
</plugin>
132+
133+
<plugin>
134+
<groupId>${project.groupId}</groupId>
135+
<artifactId>build-helper-mojo</artifactId>
136+
<version>${project.version}</version>
137+
<executions>
138+
<execution>
139+
<id>get-version</id>
140+
<phase>generate-resources</phase>
141+
<goals>
142+
<goal>gitVersion</goal>
143+
</goals>
144+
</execution>
145+
</executions>
146+
</plugin>
147+
</plugins>
148+
</build>
149+
150+
<profiles>
151+
<profile>
152+
<id>jdk11Client</id>
153+
<build>
154+
<plugins>
155+
<plugin>
156+
<groupId>org.codehaus.mojo</groupId>
157+
<artifactId>build-helper-maven-plugin</artifactId>
158+
<version>3.5.0</version>
159+
<executions>
160+
<execution>
161+
<id>add-source</id>
162+
<phase>generate-sources</phase>
163+
<goals>
164+
<goal>add-source</goal>
165+
</goals>
166+
<configuration>
167+
<sources>
168+
<source>${project.basedir}/src/main/java11</source>
169+
</sources>
170+
</configuration>
171+
</execution>
172+
<execution>
173+
<id>add-test-source</id>
174+
<phase>generate-test-sources</phase>
175+
<goals>
176+
<goal>add-test-source</goal>
177+
</goals>
178+
<configuration>
179+
<sources>
180+
<source>${project.basedir}/src/test/java11</source>
181+
</sources>
182+
</configuration>
183+
</execution>
184+
</executions>
185+
</plugin>
186+
</plugins>
187+
</build>
188+
</profile>
189+
</profiles>
190+
</project>

‎wls-exporter-sidecar/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<parent>
99
<groupId>com.oracle.wls.exporter</groupId>
1010
<artifactId>wls-exporter-parent</artifactId>
11-
<version>2.1.9-SNAPSHOT</version>
11+
<version>2.1.9</version>
1212
</parent>
1313
<artifactId>wls-exporter-sidecar</artifactId>
1414
<name>WebLogic Monitoring Exporter Sidecar</name>
+232
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,232 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
Copyright (c) 2021, 2024, Oracle and/or its affiliates.
4+
Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
5+
-->
6+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
7+
<modelVersion>4.0.0</modelVersion>
8+
<parent>
9+
<groupId>com.oracle.wls.exporter</groupId>
10+
<artifactId>wls-exporter-parent</artifactId>
11+
<version>2.1.9-SNAPSHOT</version>
12+
</parent>
13+
<artifactId>wls-exporter-sidecar</artifactId>
14+
<name>WebLogic Monitoring Exporter Sidecar</name>
15+
16+
<properties>
17+
<helidon.version>3.2.5</helidon.version>
18+
<mainClass>com.oracle.wls.exporter.sidecar.Main</mainClass>
19+
20+
<version.plugin.helidon>3.0.7</version.plugin.helidon>
21+
</properties>
22+
23+
<dependencyManagement>
24+
<dependencies>
25+
<dependency>
26+
<groupId>io.helidon</groupId>
27+
<artifactId>helidon-dependencies</artifactId>
28+
<version>${helidon.version}</version>
29+
<type>pom</type>
30+
<scope>import</scope>
31+
</dependency>
32+
</dependencies>
33+
</dependencyManagement>
34+
35+
<dependencies>
36+
<dependency>
37+
<groupId>io.netty</groupId>
38+
<artifactId>netty-codec-http</artifactId>
39+
<version>${netty-version}</version>
40+
</dependency>
41+
<dependency>
42+
<groupId>io.netty</groupId>
43+
<artifactId>netty-transport</artifactId>
44+
<version>${netty-version}</version>
45+
</dependency>
46+
<dependency>
47+
<groupId>io.netty</groupId>
48+
<artifactId>netty-transport-native-unix-common</artifactId>
49+
<version>${netty-version}</version>
50+
</dependency>
51+
<dependency>
52+
<groupId>io.netty</groupId>
53+
<artifactId>netty-common</artifactId>
54+
<version>${netty-version}</version>
55+
</dependency>
56+
<dependency>
57+
<groupId>io.netty</groupId>
58+
<artifactId>netty-buffer</artifactId>
59+
<version>${netty-version}</version>
60+
</dependency>
61+
<dependency>
62+
<groupId>io.netty</groupId>
63+
<artifactId>netty-codec</artifactId>
64+
<version>${netty-version}</version>
65+
</dependency>
66+
<dependency>
67+
<groupId>io.netty</groupId>
68+
<artifactId>netty-resolver</artifactId>
69+
<version>${netty-version}</version>
70+
</dependency>
71+
<dependency>
72+
<groupId>io.helidon.webserver</groupId>
73+
<artifactId>helidon-webserver</artifactId>
74+
</dependency>
75+
<dependency>
76+
<groupId>${project.groupId}</groupId>
77+
<artifactId>wls-exporter-core</artifactId>
78+
<version>${project.version}</version>
79+
</dependency>
80+
<dependency>
81+
<groupId>org.apache.httpcomponents</groupId>
82+
<artifactId>httpclient</artifactId>
83+
</dependency>
84+
<dependency>
85+
<groupId>org.junit.jupiter</groupId>
86+
<artifactId>junit-jupiter</artifactId>
87+
<scope>test</scope>
88+
</dependency>
89+
<dependency>
90+
<groupId>org.junit.jupiter</groupId>
91+
<artifactId>junit-jupiter-api</artifactId>
92+
<scope>test</scope>
93+
</dependency>
94+
<dependency>
95+
<groupId>com.meterware.simplestub</groupId>
96+
<artifactId>simplestub</artifactId>
97+
<scope>test</scope>
98+
</dependency>
99+
<dependency>
100+
<groupId>io.helidon.webserver</groupId>
101+
<artifactId>helidon-webserver-test-support</artifactId>
102+
<scope>test</scope>
103+
</dependency>
104+
<dependency>
105+
<groupId>com.google.guava</groupId>
106+
<artifactId>guava</artifactId>
107+
<scope>test</scope>
108+
</dependency>
109+
<dependency>
110+
<groupId>com.jayway.jsonpath</groupId>
111+
<artifactId>json-path</artifactId>
112+
<scope>test</scope>
113+
</dependency>
114+
</dependencies>
115+
116+
<build>
117+
<finalName>${project.artifactId}</finalName>
118+
<pluginManagement>
119+
<plugins>
120+
<plugin>
121+
<groupId>io.helidon.build-tools</groupId>
122+
<artifactId>helidon-maven-plugin</artifactId>
123+
<version>${version.plugin.helidon}</version>
124+
</plugin>
125+
126+
<plugin>
127+
<groupId>org.apache.maven.plugins</groupId>
128+
<artifactId>maven-compiler-plugin</artifactId>
129+
<version>${maven-compiler-plugin-version}</version>
130+
<configuration>
131+
<source>21</source>
132+
<target>21</target>
133+
<compilerArgs>
134+
<arg>-Xpkginfo:always</arg>
135+
<arg>-Xlint:all</arg>
136+
</compilerArgs>
137+
</configuration>
138+
</plugin>
139+
140+
<plugin>
141+
<groupId>org.apache.maven.plugins</groupId>
142+
<artifactId>maven-jar-plugin</artifactId>
143+
<configuration>
144+
<archive>
145+
<manifest>
146+
<addClasspath>true</addClasspath>
147+
<classpathPrefix>libs</classpathPrefix>
148+
<mainClass>${mainClass}</mainClass>
149+
<useUniqueVersions>false</useUniqueVersions>
150+
</manifest>
151+
</archive>
152+
</configuration>
153+
</plugin>
154+
</plugins>
155+
</pluginManagement>
156+
<plugins>
157+
<plugin>
158+
<groupId>org.apache.maven.plugins</groupId>
159+
<artifactId>maven-dependency-plugin</artifactId>
160+
<version>${maven-dependency-plugin-version}</version>
161+
<executions>
162+
<execution>
163+
<id>copy-libs</id>
164+
<phase>prepare-package</phase>
165+
<goals>
166+
<goal>copy-dependencies</goal>
167+
</goals>
168+
<configuration>
169+
<outputDirectory>${project.build.directory}/libs</outputDirectory>
170+
<overWriteReleases>false</overWriteReleases>
171+
<overWriteSnapshots>false</overWriteSnapshots>
172+
<overWriteIfNewer>true</overWriteIfNewer>
173+
<overWriteIfNewer>true</overWriteIfNewer>
174+
<includeScope>runtime</includeScope>
175+
</configuration>
176+
</execution>
177+
</executions>
178+
</plugin>
179+
180+
<plugin>
181+
<groupId>io.helidon.build-tools</groupId>
182+
<artifactId>helidon-maven-plugin</artifactId>
183+
<executions>
184+
<execution>
185+
<id>third-party-license-report</id>
186+
</execution>
187+
</executions>
188+
</plugin>
189+
190+
<plugin>
191+
<groupId>org.jacoco</groupId>
192+
<artifactId>jacoco-maven-plugin</artifactId>
193+
</plugin>
194+
195+
<plugin>
196+
<groupId>org.apache.maven.plugins</groupId>
197+
<artifactId>maven-clean-plugin</artifactId>
198+
<version>${maven-clean-plugin-version}</version>
199+
</plugin>
200+
201+
<plugin>
202+
<groupId>org.apache.maven.plugins</groupId>
203+
<artifactId>maven-install-plugin</artifactId>
204+
<version>${maven-install-plugin-version}</version>
205+
</plugin>
206+
207+
<plugin>
208+
<groupId>org.apache.maven.plugins</groupId>
209+
<artifactId>maven-site-plugin</artifactId>
210+
<version>${maven-site-plugin-version}</version>
211+
</plugin>
212+
213+
<plugin>
214+
<groupId>org.apache.maven.plugins</groupId>
215+
<artifactId>maven-deploy-plugin</artifactId>
216+
<version>${maven-deploy-plugin-version}</version>
217+
</plugin>
218+
219+
<plugin>
220+
<groupId>org.apache.maven.plugins</groupId>
221+
<artifactId>maven-resources-plugin</artifactId>
222+
<version>${maven-resources-plugin-version}</version>
223+
</plugin>
224+
225+
<plugin>
226+
<groupId>org.apache.maven.plugins</groupId>
227+
<artifactId>maven-jar-plugin</artifactId>
228+
<version>${maven-jar-plugin-version}</version>
229+
</plugin>
230+
</plugins>
231+
</build>
232+
</project>

‎wls-exporter-war/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<artifactId>wls-exporter-parent</artifactId>
99
<groupId>com.oracle.wls.exporter</groupId>
10-
<version>2.1.9-SNAPSHOT</version>
10+
<version>2.1.9</version>
1111
</parent>
1212
<modelVersion>4.0.0</modelVersion>
1313

+160
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
Copyright (c) 2020, 2022, Oracle and/or its affiliates.
4+
Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
5+
-->
6+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
7+
<parent>
8+
<artifactId>wls-exporter-parent</artifactId>
9+
<groupId>com.oracle.wls.exporter</groupId>
10+
<version>2.1.9-SNAPSHOT</version>
11+
</parent>
12+
<modelVersion>4.0.0</modelVersion>
13+
14+
<artifactId>wls-exporter-war</artifactId>
15+
<name>WebLogic Monitoring Exporter Web Application</name>
16+
<packaging>war</packaging>
17+
18+
<properties>
19+
<configuration.directory>${project.build.directory}/configuration</configuration.directory>
20+
</properties>
21+
22+
<dependencies>
23+
<dependency>
24+
<groupId>${project.groupId}</groupId>
25+
<artifactId>wls-exporter-core</artifactId>
26+
<version>${project.version}</version>
27+
</dependency>
28+
<dependency>
29+
<groupId>org.apache.httpcomponents</groupId>
30+
<artifactId>httpclient</artifactId>
31+
</dependency>
32+
<dependency>
33+
<groupId>commons-fileupload</groupId>
34+
<artifactId>commons-fileupload</artifactId>
35+
</dependency>
36+
</dependencies>
37+
38+
<build>
39+
<plugins>
40+
<plugin>
41+
<groupId>org.apache.maven.plugins</groupId>
42+
<artifactId>maven-clean-plugin</artifactId>
43+
<version>${maven-clean-plugin-version}</version>
44+
</plugin>
45+
46+
<plugin>
47+
<groupId>org.apache.maven.plugins</groupId>
48+
<artifactId>maven-install-plugin</artifactId>
49+
<version>${maven-install-plugin-version}</version>
50+
</plugin>
51+
52+
<plugin>
53+
<groupId>org.apache.maven.plugins</groupId>
54+
<artifactId>maven-site-plugin</artifactId>
55+
<version>${maven-site-plugin-version}</version>
56+
</plugin>
57+
58+
<plugin>
59+
<groupId>org.apache.maven.plugins</groupId>
60+
<artifactId>maven-deploy-plugin</artifactId>
61+
<version>${maven-deploy-plugin-version}</version>
62+
</plugin>
63+
64+
<plugin>
65+
<groupId>org.apache.maven.plugins</groupId>
66+
<artifactId>maven-resources-plugin</artifactId>
67+
<version>${maven-resources-plugin-version}</version>
68+
</plugin>
69+
70+
<plugin>
71+
<groupId>org.apache.maven.plugins</groupId>
72+
<artifactId>maven-jar-plugin</artifactId>
73+
<version>${maven-jar-plugin-version}</version>
74+
</plugin>
75+
</plugins>
76+
</build>
77+
<profiles>
78+
<profile>
79+
<id>initial-configuration</id>
80+
<activation>
81+
<property>
82+
<name>configuration</name>
83+
</property>
84+
</activation>
85+
<build>
86+
<plugins>
87+
<plugin>
88+
<groupId>${project.groupId}</groupId>
89+
<artifactId>build-helper-mojo</artifactId>
90+
<version>${project.version}</version>
91+
<executions>
92+
<execution>
93+
<id>copy-configuration</id>
94+
<phase>process-resources</phase>
95+
<goals>
96+
<goal>copy</goal>
97+
</goals>
98+
<configuration>
99+
<sourceFile>${configuration}</sourceFile>
100+
<targetFile>${configuration.directory}/config.yml</targetFile>
101+
<userDir>${project.parent.basedir}</userDir>
102+
</configuration>
103+
</execution>
104+
<execution>
105+
<id>copy-war-up</id>
106+
<phase>install</phase>
107+
<goals>
108+
<goal>copy</goal>
109+
</goals>
110+
<configuration>
111+
<sourceFile>${project.build.directory}/${project.build.finalName}.war</sourceFile>
112+
<targetFile>${project.parent.build.directory}/wls-exporter.war</targetFile>
113+
</configuration>
114+
</execution>
115+
</executions>
116+
</plugin>
117+
</plugins>
118+
</build>
119+
</profile>
120+
121+
<profile>
122+
<id>github-release</id>
123+
<activation>
124+
<property>
125+
<name>tag</name>
126+
</property>
127+
</activation>
128+
<build>
129+
<finalName>wls-exporter</finalName>
130+
<resources>
131+
<resource>
132+
<directory>src/main/resources</directory>
133+
<filtering>true</filtering>
134+
</resource>
135+
</resources>
136+
<plugins>
137+
<plugin>
138+
<groupId>com.coderplus.maven.plugins</groupId>
139+
<artifactId>copy-rename-maven-plugin</artifactId>
140+
<version>1.0.1</version>
141+
<executions>
142+
<execution>
143+
<id>rename-file</id>
144+
<phase>compile</phase>
145+
<goals>
146+
<goal>rename</goal>
147+
</goals>
148+
<configuration>
149+
<sourceFile>${project.build.outputDirectory}/get.sh</sourceFile>
150+
<destinationFile>${project.build.outputDirectory}/get_v${tag}.sh</destinationFile>
151+
</configuration>
152+
</execution>
153+
</executions>
154+
</plugin>
155+
</plugins>
156+
</build>
157+
</profile>
158+
</profiles>
159+
160+
</project>

0 commit comments

Comments
 (0)
Please sign in to comment.