|
7 | 7 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
8 | 8 | <modelVersion>4.0.0</modelVersion>
|
9 | 9 |
|
10 |
| - <groupId>io.prometheus.wls</groupId> |
11 |
| - <artifactId>wls-exporter</artifactId> |
12 |
| - <version>1.0-SNAPSHOT</version> |
| 10 | + <groupId>com.oracle.wls.exporter</groupId> |
| 11 | + <artifactId>monitoring-exporter</artifactId> |
| 12 | + <version>1.2.0-SNAPSHOT</version> |
| 13 | + <packaging>war</packaging> |
13 | 14 |
|
14 | 15 | <name>WebLogic Monitoring Exporter</name>
|
15 | 16 | <description>A Prometheus exporter that takes advantage of WebLogic Server-specific features.</description>
|
|
30 | 31 | </developer>
|
31 | 32 | </developers>
|
32 | 33 |
|
| 34 | + <properties> |
| 35 | + <configuration.directory>${project.build.directory}/configuration</configuration.directory> |
| 36 | + </properties> |
| 37 | + |
33 | 38 | <build>
|
34 |
| - <plugins> |
35 |
| - <plugin> |
36 |
| - <groupId>org.apache.maven.plugins</groupId> |
37 |
| - <artifactId>maven-compiler-plugin</artifactId> |
38 |
| - <version>3.6.1</version> |
39 |
| - <configuration> |
40 |
| - <source>1.8</source> |
41 |
| - <target>1.8</target> |
42 |
| - </configuration> |
43 |
| - </plugin> |
44 |
| - </plugins> |
| 39 | + <pluginManagement> |
| 40 | + <plugins> |
| 41 | + <plugin> |
| 42 | + <artifactId>maven-war-plugin</artifactId> |
| 43 | + <version>2.6</version> |
| 44 | + <configuration> |
| 45 | + <failOnMissingWebXml>false</failOnMissingWebXml> |
| 46 | + <warSourceDirectory>${configuration.directory}</warSourceDirectory> |
| 47 | + <webResources> |
| 48 | + <resource> |
| 49 | + <directory>${project.basedir}/src/main/notices</directory> |
| 50 | + </resource> |
| 51 | + </webResources> |
| 52 | + </configuration> |
| 53 | + </plugin> |
| 54 | + <plugin> |
| 55 | + <groupId>org.apache.maven.plugins</groupId> |
| 56 | + <artifactId>maven-compiler-plugin</artifactId> |
| 57 | + <version>3.6.1</version> |
| 58 | + <configuration> |
| 59 | + <source>1.8</source> |
| 60 | + <target>1.8</target> |
| 61 | + </configuration> |
| 62 | + </plugin> |
| 63 | + </plugins> |
| 64 | + </pluginManagement> |
45 | 65 | </build>
|
46 | 66 |
|
47 | 67 | <dependencies>
|
|
137 | 157 | </dependency>
|
138 | 158 | </dependencies>
|
139 | 159 |
|
| 160 | + <profiles> |
| 161 | + <profile> |
| 162 | + <id>initial-configuration</id> |
| 163 | + <activation> |
| 164 | + <property> |
| 165 | + <name>configuration</name> |
| 166 | + </property> |
| 167 | + </activation> |
| 168 | + <build> |
| 169 | + <plugins> |
| 170 | + <plugin> |
| 171 | + <groupId>com.coderplus.maven.plugins</groupId> |
| 172 | + <artifactId>copy-rename-maven-plugin</artifactId> |
| 173 | + <version>1.0</version> |
| 174 | + <executions> |
| 175 | + <execution> |
| 176 | + <id>copy-configuration</id> |
| 177 | + <phase>generate-resources</phase> |
| 178 | + <goals> |
| 179 | + <goal>copy</goal> |
| 180 | + </goals> |
| 181 | + <configuration> |
| 182 | + <sourceFile>${configuration}</sourceFile> |
| 183 | + <destinationFile>${configuration.directory}/config.yml</destinationFile> |
| 184 | + </configuration> |
| 185 | + </execution> |
| 186 | + </executions> |
| 187 | + </plugin> |
| 188 | + </plugins> |
| 189 | + </build> |
| 190 | + </profile> |
| 191 | + </profiles> |
140 | 192 | </project>
|
0 commit comments