forked from oracle/weblogic-monitoring-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
83 lines (78 loc) · 3.4 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2020, 2021, Oracle and/or its affiliates.
Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
-->
<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">
<parent>
<artifactId>wls-exporter-parent</artifactId>
<groupId>com.oracle.wls.exporter</groupId>
<version>2.0.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>wls-exporter-war</artifactId>
<name>WebLogic Monitoring Exporter Web Application</name>
<packaging>war</packaging>
<properties>
<configuration.directory>${project.build.directory}/configuration</configuration.directory>
</properties>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>wls-exporter-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
</dependency>
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
</dependency>
</dependencies>
<profiles>
<profile>
<id>initial-configuration</id>
<activation>
<property>
<name>configuration</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>${project.groupId}</groupId>
<artifactId>build-helper-mojo</artifactId>
<version>${project.version}</version>
<executions>
<execution>
<id>copy-configuration</id>
<phase>process-resources</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<sourceFile>${configuration}</sourceFile>
<targetFile>${configuration.directory}/config.yml</targetFile>
<userDir>${project.parent.basedir}</userDir>
</configuration>
</execution>
<execution>
<id>copy-war-up</id>
<phase>install</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<sourceFile>${project.build.directory}/${project.build.finalName}.war</sourceFile>
<targetFile>${project.parent.build.directory}/wls-exporter.war</targetFile>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>