diff --git a/build-helper-mojo/pom.xml b/build-helper-mojo/pom.xml index 0e2234b2..dc8da7a5 100644 --- a/build-helper-mojo/pom.xml +++ b/build-helper-mojo/pom.xml @@ -9,7 +9,7 @@ <parent> <artifactId>wls-exporter-parent</artifactId> <groupId>com.oracle.wls.exporter</groupId> - <version>2.1.9-SNAPSHOT</version> + <version>2.1.9</version> </parent> <artifactId>build-helper-mojo</artifactId> diff --git a/build-helper-mojo/pom.xml.versionsBackup b/build-helper-mojo/pom.xml.versionsBackup new file mode 100644 index 00000000..0e2234b2 --- /dev/null +++ b/build-helper-mojo/pom.xml.versionsBackup @@ -0,0 +1,115 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright (c) 2019, 2024, 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/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <parent> + <artifactId>wls-exporter-parent</artifactId> + <groupId>com.oracle.wls.exporter</groupId> + <version>2.1.9-SNAPSHOT</version> + </parent> + + <artifactId>build-helper-mojo</artifactId> + <packaging>maven-plugin</packaging> + + <name>Exporter Build Helper Maven Mojo</name> + + <dependencies> + <dependency> + <groupId>org.apache.maven</groupId> + <artifactId>maven-plugin-api</artifactId> + <version>3.9.6</version> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.apache.maven</groupId> + <artifactId>maven-model</artifactId> + <version>3.9.6</version> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.apache.maven.plugin-tools</groupId> + <artifactId>maven-plugin-annotations</artifactId> + <version>3.11.0</version> + </dependency> + <dependency> + <groupId>org.junit.jupiter</groupId> + <artifactId>junit-jupiter</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.ow2.asm</groupId> + <artifactId>asm</artifactId> + <version>9.6</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.hamcrest</groupId> + <artifactId>java-hamcrest</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>com.meterware.simplestub</groupId> + <artifactId>simplestub</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>com.google.guava</groupId> + <artifactId>guava</artifactId> + </dependency> + </dependencies> + + <build> + <plugins> + <plugin> + <groupId>org.jacoco</groupId> + <artifactId>jacoco-maven-plugin</artifactId> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-clean-plugin</artifactId> + <version>${maven-clean-plugin-version}</version> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-plugin-plugin</artifactId> + <version>${maven-plugin-plugin-version}</version> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-install-plugin</artifactId> + <version>${maven-install-plugin-version}</version> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-site-plugin</artifactId> + <version>${maven-site-plugin-version}</version> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-deploy-plugin</artifactId> + <version>${maven-deploy-plugin-version}</version> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-resources-plugin</artifactId> + <version>${maven-resources-plugin-version}</version> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <version>${maven-jar-plugin-version}</version> + </plugin> + </plugins> + </build> +</project> diff --git a/pom.xml b/pom.xml index 310f6faf..adfd1976 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ <groupId>com.oracle.wls.exporter</groupId> <artifactId>wls-exporter-parent</artifactId> - <version>2.1.9-SNAPSHOT</version> + <version>2.1.9</version> <modules> <module>build-helper-mojo</module> <module>wls-exporter-core</module> diff --git a/pom.xml.versionsBackup b/pom.xml.versionsBackup new file mode 100644 index 00000000..310f6faf --- /dev/null +++ b/pom.xml.versionsBackup @@ -0,0 +1,407 @@ +<!-- + Copyright (c) 2019, 2024, 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"> + <modelVersion>4.0.0</modelVersion> + + <groupId>com.oracle.wls.exporter</groupId> + <artifactId>wls-exporter-parent</artifactId> + <version>2.1.9-SNAPSHOT</version> + <modules> + <module>build-helper-mojo</module> + <module>wls-exporter-core</module> + </modules> + <packaging>pom</packaging> + + <name>WebLogic Monitoring Exporter</name> + <description>A Prometheus exporter that takes advantage of WebLogic Server-specific features.</description> + + <url>https://github.com/oracle/weblogic-monitoring-exporter</url> + + <licenses> + <license> + <name>Oracle Universal Permissive License, Version 1.0</name> + <url>https://oss.oracle.com/licenses/upl</url> + </license> + </licenses> + + <scm> + <url>https://github.com/oracle/weblogic-monitoring-exporter.git</url> + <developerConnection>scm:git:https://github.com/oracle/weblogic-monitoring-exporter.git</developerConnection> + <connection>scm:git:https://github.com/oracle/weblogic-monitoring-exporter.git</connection> + <tag>wls-exporter-parent-2.1.5</tag> + </scm> + + <developers> + <developer> + <id>russgold</id> + <name>Russell Gold</name> + <url>http://russgold.net/</url> + <organization>Oracle</organization> + </developer> + </developers> + + <properties> + <sonar.organization>oracle</sonar.organization> + <sonar.host.url>https://sonarcloud.io</sonar.host.url> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + <apache.http.version>4.5.3</apache.http.version> + <version.plugin.surefire>3.2.5</version.plugin.surefire> + <maven-enforcer-plugin-version>3.4.1</maven-enforcer-plugin-version> + <maven-clean-plugin-version>3.3.2</maven-clean-plugin-version> + <maven-compiler-plugin-version>3.11.0</maven-compiler-plugin-version> + <maven-install-plugin-version>3.1.1</maven-install-plugin-version> + <maven-deploy-plugin-version>3.1.1</maven-deploy-plugin-version> + <maven-deploy-plugin-version>3.0.0</maven-deploy-plugin-version> + <maven-plugin-plugin-version>3.10.2</maven-plugin-plugin-version> + <maven-site-plugin-version>3.12.1</maven-site-plugin-version> + <maven-jar-plugin-version>3.3.0</maven-jar-plugin-version> + <maven-war-plugin-version>3.4.0</maven-war-plugin-version> + <maven-resources-plugin-version>3.3.1</maven-resources-plugin-version> + <maven-dependency-plugin-version>3.6.1</maven-dependency-plugin-version> + <dependency-check-version>9.0.9</dependency-check-version> + <netty-version>4.1.106.Final</netty-version> + + <skip.dependency-check>false</skip.dependency-check> + + <java.version.range>21</java.version.range> + <maven.version.range>[3.8.1,)</maven.version.range> + </properties> + + <build> + <pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-enforcer-plugin</artifactId> + <version>${maven-enforcer-plugin-version}</version> + <executions> + <execution> + <id>enforce-maven</id> + <goals> + <goal>enforce</goal> + </goals> + <configuration> + <rules> + <requireMavenVersion> + <version>${maven.version.range}</version> + </requireMavenVersion> + <requireJavaVersion> + <version>${java.version.range}</version> + </requireJavaVersion> + <requirePluginVersions> + <unCheckedPluginList>com.oracle.wls.exporter:build-helper-mojo</unCheckedPluginList> + </requirePluginVersions> + </rules> + </configuration> + </execution> + </executions> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <version>${maven-compiler-plugin-version}</version> + <configuration> + <source>1.8</source> + <target>1.8</target> + <compilerArgs> + <arg>-Xpkginfo:always</arg> + <arg>-Xlint:all</arg> + </compilerArgs> + </configuration> + </plugin> + + <plugin> + <artifactId>maven-war-plugin</artifactId> + <version>${maven-war-plugin-version}</version> + <executions> + <execution> + <id>notices</id> + <phase>package</phase> + <goals> + <goal>war</goal> + </goals> + <configuration> + <failOnMissingWebXml>false</failOnMissingWebXml> + <warSourceDirectory>${configuration.directory}</warSourceDirectory> + <webResources> + <resource> + <directory>${project.basedir}/../src/main/notices</directory> + </resource> + </webResources> + </configuration> + </execution> + </executions> + <configuration> + <failOnMissingWebXml>false</failOnMissingWebXml> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <version>${version.plugin.surefire}</version> + <configuration> + <useModulePath>false</useModulePath> + </configuration> + </plugin> + <plugin> + <groupId>org.owasp</groupId> + <artifactId>dependency-check-maven</artifactId> + <version>${dependency-check-version}</version> + </plugin> + <plugin> + <groupId>org.jacoco</groupId> + <artifactId>jacoco-maven-plugin</artifactId> + <version>0.8.11</version> + <executions> + <execution> + <id>prepare-agent</id> + <goals> + <goal>prepare-agent</goal> + </goals> + </execution> + <execution> + <id>report</id> + <phase>test</phase> + <goals> + <goal>report</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </pluginManagement> + + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-enforcer-plugin</artifactId> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-clean-plugin</artifactId> + <version>${maven-clean-plugin-version}</version> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-resources-plugin</artifactId> + <version>${maven-resources-plugin-version}</version> + <executions> + <execution> + <id>copy-resources</id> + <phase>validate</phase> + <goals> + <goal>copy-resources</goal> + </goals> + <configuration> + <outputDirectory>${basedir}/target/release-artifacts</outputDirectory> + <resources> + <resource> + <directory>${basedir}</directory> + <includes> + <include>get2.0.sh</include> + <include>get2.1.sh</include> + </includes> + <filtering>true</filtering> + </resource> + </resources> + </configuration> + </execution> + </executions> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <version>${maven-jar-plugin-version}</version> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-plugin-plugin</artifactId> + <version>${maven-plugin-plugin-version}</version> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-dependency-plugin</artifactId> + <version>${maven-dependency-plugin-version}</version> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-install-plugin</artifactId> + <version>${maven-install-plugin-version}</version> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-site-plugin</artifactId> + <version>${maven-site-plugin-version}</version> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-deploy-plugin</artifactId> + <version>${maven-deploy-plugin-version}</version> + </plugin> + + <plugin> + <groupId>org.owasp</groupId> + <artifactId>dependency-check-maven</artifactId> + <version>${dependency-check-version}</version> + <configuration> + <skip>${skip.dependency-check}</skip> + <skipTestScope>true</skipTestScope> + <failBuildOnCVSS>0</failBuildOnCVSS> + <assemblyAnalyzerEnabled>false</assemblyAnalyzerEnabled> + <formats> + <format>HTML</format> + <format>CSV</format> + </formats> + <suppressionFiles> + <suppressionFile>dependency-check-suppression.xml</suppressionFile> + </suppressionFiles> + </configuration> + </plugin> + + </plugins> + </build> + + <dependencyManagement> + <dependencies> + <dependency> + <groupId>javax.servlet</groupId> + <artifactId>javax.servlet-api</artifactId> + <version>4.0.1</version> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.apache.httpcomponents</groupId> + <artifactId>httpclient</artifactId> + <version>4.5.14</version> + </dependency> + <dependency> + <groupId>org.apache.httpcomponents</groupId> + <artifactId>httpcore</artifactId> + <version>4.4.16</version> + </dependency> + <dependency> + <groupId>commons-fileupload</groupId> + <artifactId>commons-fileupload</artifactId> + <version>1.5</version> + </dependency> + <dependency> + <groupId>org.yaml</groupId> + <artifactId>snakeyaml</artifactId> + <version>2.2</version> + </dependency> + <dependency> + <groupId>com.google.code.gson</groupId> + <artifactId>gson</artifactId> + <version>2.10.1</version> + </dependency> + <dependency> + <groupId>commons-io</groupId> + <artifactId>commons-io</artifactId> + <version>2.15.1</version> + </dependency> + <dependency> + <groupId>io.netty</groupId> + <artifactId>netty-handler</artifactId> + <version>${netty-version}</version> + </dependency> + + <!-- unit test dependencies --> + + <dependency> + <groupId>com.google.guava</groupId> + <artifactId>guava</artifactId> + <version>33.0.0-jre</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>com.jayway.jsonpath</groupId> + <artifactId>json-path</artifactId> + <version>2.9.0</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>com.jayway.jsonpath</groupId> + <artifactId>json-path-assert</artifactId> + <version>2.9.0</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.slf4j</groupId> + <artifactId>slf4j-nop</artifactId> + <version>2.0.11</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.httpcomponents</groupId> + <artifactId>httpmime</artifactId> + <version>4.5.14</version> + </dependency> + <dependency> + <groupId>org.junit.jupiter</groupId> + <artifactId>junit-jupiter</artifactId> + <version>5.10.1</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>com.meterware.simplestub</groupId> + <artifactId>simplestub</artifactId> + <version>1.3.2</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.hamcrest</groupId> + <artifactId>java-hamcrest</artifactId> + <version>2.0.0.0</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.httpunit</groupId> + <artifactId>httpunit</artifactId> + <version>1.7.3</version> + <scope>test</scope> + <exclusions> + <exclusion> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + </exclusion> + </exclusions> + </dependency> + </dependencies> + </dependencyManagement> + + <profiles> + <profile> + <id>helidon-sidecar</id> + <activation> + <jdk>[21,)</jdk> + </activation> + <modules> + <module>build-helper-mojo</module> + <module>wls-exporter-sidecar</module> + </modules> + </profile> + <profile> + <id>include-webapp</id> + <activation> + <property> + <name>!docker-build</name> + </property> + </activation> + <modules> + <module>build-helper-mojo</module> + <module>wls-exporter-war</module> + </modules> + </profile> + </profiles> +</project> diff --git a/wls-exporter-core/pom.xml b/wls-exporter-core/pom.xml index 8c3bdcae..9f9923b1 100644 --- a/wls-exporter-core/pom.xml +++ b/wls-exporter-core/pom.xml @@ -8,7 +8,7 @@ <parent> <artifactId>wls-exporter-parent</artifactId> <groupId>com.oracle.wls.exporter</groupId> - <version>2.1.9-SNAPSHOT</version> + <version>2.1.9</version> </parent> <artifactId>wls-exporter-core</artifactId> diff --git a/wls-exporter-core/pom.xml.versionsBackup b/wls-exporter-core/pom.xml.versionsBackup new file mode 100644 index 00000000..8c3bdcae --- /dev/null +++ b/wls-exporter-core/pom.xml.versionsBackup @@ -0,0 +1,190 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright (c) 2020, 2024, 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"> + <modelVersion>4.0.0</modelVersion> + <parent> + <artifactId>wls-exporter-parent</artifactId> + <groupId>com.oracle.wls.exporter</groupId> + <version>2.1.9-SNAPSHOT</version> + </parent> + + <artifactId>wls-exporter-core</artifactId> + <name>WebLogic Monitoring Exporter Core</name> + + <dependencies> + <dependency> + <groupId>javax.servlet</groupId> + <artifactId>javax.servlet-api</artifactId> + </dependency> + <dependency> + <groupId>org.apache.httpcomponents</groupId> + <artifactId>httpclient</artifactId> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>commons-fileupload</groupId> + <artifactId>commons-fileupload</artifactId> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.yaml</groupId> + <artifactId>snakeyaml</artifactId> + </dependency> + <dependency> + <groupId>com.google.code.gson</groupId> + <artifactId>gson</artifactId> + </dependency> + + <!-- unit test dependencies --> + + <dependency> + <groupId>com.google.guava</groupId> + <artifactId>guava</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>com.jayway.jsonpath</groupId> + <artifactId>json-path</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>com.jayway.jsonpath</groupId> + <artifactId>json-path-assert</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.slf4j</groupId> + <artifactId>slf4j-nop</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.httpcomponents</groupId> + <artifactId>httpmime</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>com.meterware.simplestub</groupId> + <artifactId>simplestub</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.junit.jupiter</groupId> + <artifactId>junit-jupiter</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.hamcrest</groupId> + <artifactId>java-hamcrest</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.httpunit</groupId> + <artifactId>httpunit</artifactId> + <scope>test</scope> + </dependency> + </dependencies> + + <build> + <plugins> + <plugin> + <groupId>org.jacoco</groupId> + <artifactId>jacoco-maven-plugin</artifactId> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-clean-plugin</artifactId> + <version>${maven-clean-plugin-version}</version> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-install-plugin</artifactId> + <version>${maven-install-plugin-version}</version> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-site-plugin</artifactId> + <version>${maven-site-plugin-version}</version> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-deploy-plugin</artifactId> + <version>${maven-deploy-plugin-version}</version> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-resources-plugin</artifactId> + <version>${maven-resources-plugin-version}</version> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <version>${maven-jar-plugin-version}</version> + </plugin> + + <plugin> + <groupId>${project.groupId}</groupId> + <artifactId>build-helper-mojo</artifactId> + <version>${project.version}</version> + <executions> + <execution> + <id>get-version</id> + <phase>generate-resources</phase> + <goals> + <goal>gitVersion</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + + <profiles> + <profile> + <id>jdk11Client</id> + <build> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + <version>3.5.0</version> + <executions> + <execution> + <id>add-source</id> + <phase>generate-sources</phase> + <goals> + <goal>add-source</goal> + </goals> + <configuration> + <sources> + <source>${project.basedir}/src/main/java11</source> + </sources> + </configuration> + </execution> + <execution> + <id>add-test-source</id> + <phase>generate-test-sources</phase> + <goals> + <goal>add-test-source</goal> + </goals> + <configuration> + <sources> + <source>${project.basedir}/src/test/java11</source> + </sources> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + </profiles> +</project> \ No newline at end of file diff --git a/wls-exporter-sidecar/pom.xml b/wls-exporter-sidecar/pom.xml index e19f95f4..ab7cd556 100644 --- a/wls-exporter-sidecar/pom.xml +++ b/wls-exporter-sidecar/pom.xml @@ -8,7 +8,7 @@ <parent> <groupId>com.oracle.wls.exporter</groupId> <artifactId>wls-exporter-parent</artifactId> - <version>2.1.9-SNAPSHOT</version> + <version>2.1.9</version> </parent> <artifactId>wls-exporter-sidecar</artifactId> <name>WebLogic Monitoring Exporter Sidecar</name> diff --git a/wls-exporter-sidecar/pom.xml.versionsBackup b/wls-exporter-sidecar/pom.xml.versionsBackup new file mode 100644 index 00000000..e19f95f4 --- /dev/null +++ b/wls-exporter-sidecar/pom.xml.versionsBackup @@ -0,0 +1,232 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright (c) 2021, 2024, 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"> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>com.oracle.wls.exporter</groupId> + <artifactId>wls-exporter-parent</artifactId> + <version>2.1.9-SNAPSHOT</version> + </parent> + <artifactId>wls-exporter-sidecar</artifactId> + <name>WebLogic Monitoring Exporter Sidecar</name> + + <properties> + <helidon.version>3.2.5</helidon.version> + <mainClass>com.oracle.wls.exporter.sidecar.Main</mainClass> + + <version.plugin.helidon>3.0.7</version.plugin.helidon> + </properties> + + <dependencyManagement> + <dependencies> + <dependency> + <groupId>io.helidon</groupId> + <artifactId>helidon-dependencies</artifactId> + <version>${helidon.version}</version> + <type>pom</type> + <scope>import</scope> + </dependency> + </dependencies> + </dependencyManagement> + + <dependencies> + <dependency> + <groupId>io.netty</groupId> + <artifactId>netty-codec-http</artifactId> + <version>${netty-version}</version> + </dependency> + <dependency> + <groupId>io.netty</groupId> + <artifactId>netty-transport</artifactId> + <version>${netty-version}</version> + </dependency> + <dependency> + <groupId>io.netty</groupId> + <artifactId>netty-transport-native-unix-common</artifactId> + <version>${netty-version}</version> + </dependency> + <dependency> + <groupId>io.netty</groupId> + <artifactId>netty-common</artifactId> + <version>${netty-version}</version> + </dependency> + <dependency> + <groupId>io.netty</groupId> + <artifactId>netty-buffer</artifactId> + <version>${netty-version}</version> + </dependency> + <dependency> + <groupId>io.netty</groupId> + <artifactId>netty-codec</artifactId> + <version>${netty-version}</version> + </dependency> + <dependency> + <groupId>io.netty</groupId> + <artifactId>netty-resolver</artifactId> + <version>${netty-version}</version> + </dependency> + <dependency> + <groupId>io.helidon.webserver</groupId> + <artifactId>helidon-webserver</artifactId> + </dependency> + <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>org.junit.jupiter</groupId> + <artifactId>junit-jupiter</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.junit.jupiter</groupId> + <artifactId>junit-jupiter-api</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>com.meterware.simplestub</groupId> + <artifactId>simplestub</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>io.helidon.webserver</groupId> + <artifactId>helidon-webserver-test-support</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>com.google.guava</groupId> + <artifactId>guava</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>com.jayway.jsonpath</groupId> + <artifactId>json-path</artifactId> + <scope>test</scope> + </dependency> + </dependencies> + + <build> + <finalName>${project.artifactId}</finalName> + <pluginManagement> + <plugins> + <plugin> + <groupId>io.helidon.build-tools</groupId> + <artifactId>helidon-maven-plugin</artifactId> + <version>${version.plugin.helidon}</version> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <version>${maven-compiler-plugin-version}</version> + <configuration> + <source>21</source> + <target>21</target> + <compilerArgs> + <arg>-Xpkginfo:always</arg> + <arg>-Xlint:all</arg> + </compilerArgs> + </configuration> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <configuration> + <archive> + <manifest> + <addClasspath>true</addClasspath> + <classpathPrefix>libs</classpathPrefix> + <mainClass>${mainClass}</mainClass> + <useUniqueVersions>false</useUniqueVersions> + </manifest> + </archive> + </configuration> + </plugin> + </plugins> + </pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-dependency-plugin</artifactId> + <version>${maven-dependency-plugin-version}</version> + <executions> + <execution> + <id>copy-libs</id> + <phase>prepare-package</phase> + <goals> + <goal>copy-dependencies</goal> + </goals> + <configuration> + <outputDirectory>${project.build.directory}/libs</outputDirectory> + <overWriteReleases>false</overWriteReleases> + <overWriteSnapshots>false</overWriteSnapshots> + <overWriteIfNewer>true</overWriteIfNewer> + <overWriteIfNewer>true</overWriteIfNewer> + <includeScope>runtime</includeScope> + </configuration> + </execution> + </executions> + </plugin> + + <plugin> + <groupId>io.helidon.build-tools</groupId> + <artifactId>helidon-maven-plugin</artifactId> + <executions> + <execution> + <id>third-party-license-report</id> + </execution> + </executions> + </plugin> + + <plugin> + <groupId>org.jacoco</groupId> + <artifactId>jacoco-maven-plugin</artifactId> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-clean-plugin</artifactId> + <version>${maven-clean-plugin-version}</version> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-install-plugin</artifactId> + <version>${maven-install-plugin-version}</version> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-site-plugin</artifactId> + <version>${maven-site-plugin-version}</version> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-deploy-plugin</artifactId> + <version>${maven-deploy-plugin-version}</version> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-resources-plugin</artifactId> + <version>${maven-resources-plugin-version}</version> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <version>${maven-jar-plugin-version}</version> + </plugin> + </plugins> + </build> +</project> diff --git a/wls-exporter-war/pom.xml b/wls-exporter-war/pom.xml index ba17ac9a..5b3636c5 100644 --- a/wls-exporter-war/pom.xml +++ b/wls-exporter-war/pom.xml @@ -7,7 +7,7 @@ <parent> <artifactId>wls-exporter-parent</artifactId> <groupId>com.oracle.wls.exporter</groupId> - <version>2.1.9-SNAPSHOT</version> + <version>2.1.9</version> </parent> <modelVersion>4.0.0</modelVersion> diff --git a/wls-exporter-war/pom.xml.versionsBackup b/wls-exporter-war/pom.xml.versionsBackup new file mode 100644 index 00000000..ba17ac9a --- /dev/null +++ b/wls-exporter-war/pom.xml.versionsBackup @@ -0,0 +1,160 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright (c) 2020, 2022, 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.1.9-SNAPSHOT</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> + + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-clean-plugin</artifactId> + <version>${maven-clean-plugin-version}</version> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-install-plugin</artifactId> + <version>${maven-install-plugin-version}</version> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-site-plugin</artifactId> + <version>${maven-site-plugin-version}</version> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-deploy-plugin</artifactId> + <version>${maven-deploy-plugin-version}</version> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-resources-plugin</artifactId> + <version>${maven-resources-plugin-version}</version> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <version>${maven-jar-plugin-version}</version> + </plugin> + </plugins> + </build> + <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> + + <profile> + <id>github-release</id> + <activation> + <property> + <name>tag</name> + </property> + </activation> + <build> + <finalName>wls-exporter</finalName> + <resources> + <resource> + <directory>src/main/resources</directory> + <filtering>true</filtering> + </resource> + </resources> + <plugins> + <plugin> + <groupId>com.coderplus.maven.plugins</groupId> + <artifactId>copy-rename-maven-plugin</artifactId> + <version>1.0.1</version> + <executions> + <execution> + <id>rename-file</id> + <phase>compile</phase> + <goals> + <goal>rename</goal> + </goals> + <configuration> + <sourceFile>${project.build.outputDirectory}/get.sh</sourceFile> + <destinationFile>${project.build.outputDirectory}/get_v${tag}.sh</destinationFile> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + </profiles> + +</project> \ No newline at end of file