Skip to content

Commit

Permalink
Add third party to installation
Browse files Browse the repository at this point in the history
For users behind their own nexus repositories, the included repository
information does not work as expected.  Built this into process better
and removed the old repos as now unnecessary.
  • Loading branch information
hazendaz committed Sep 26, 2023
1 parent a841c06 commit 386a129
Show file tree
Hide file tree
Showing 7 changed files with 158 additions and 0 deletions.
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
<!-- <module>psi-probe-tomcat10</module> -->
<!-- <module>psi-probe-tomcat11</module> -->
<module>psi-probe-web</module>
<module>thirdParty</module>
</modules>

<scm>
Expand Down
10 changes: 10 additions & 0 deletions psi-probe-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@
</scm>

<dependencies>

<!-- Fake out build in order to ensure order -->
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>thirdParty</artifactId>
<version>${project.version}</version>
<scope>compile</scope>
<type>pom</type>
</dependency>

<!-- tomcat libs start -->
<dependency>
<groupId>org.apache.tomcat</groupId>
Expand Down
16 changes: 16 additions & 0 deletions thirdParty/maven-install.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@REM
@REM Licensed under the GPL License. You may not use this file except in compliance with the License.
@REM You may obtain a copy of the License at
@REM
@REM https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
@REM
@REM THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
@REM WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
@REM PURPOSE.
@REM

@echo off
pushd "%~dp0"
call mvn install:install-file -Dfile=ojdbc7-12.1.0.2.jar -DgroupId=com.oracle -DartifactId=ojdbc7 -Dversion=12.1.0.2 -Dpackaging=jar
call mvn install:install-file -Dfile=ucp-12.1.0.2.jar -DgroupId=com.oracle -DartifactId=ucp -Dversion=12.1.0.2 -Dpackaging=jar
popd
14 changes: 14 additions & 0 deletions thirdParty/maven-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
#
# Licensed under the GPL License. You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
#
# THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
# PURPOSE.
#

mvn install:install-file -Dfile=ojdbc7-12.1.0.2.jar -DgroupId=com.oracle -DartifactId=ojdbc7 -Dversion=12.1.0.2 -Dpackaging=jar
mvn install:install-file -Dfile=ucp-12.1.0.2.jar -DgroupId=com.oracle -DartifactId=ucp -Dversion=12.1.0.2 -Dpackaging=jar
Binary file added thirdParty/ojdbc7-12.1.0.2.jar
Binary file not shown.
117 changes: 117 additions & 0 deletions thirdParty/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed under the GPL License. You may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
PURPOSE.
-->
<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.github.psi-probe</groupId>
<artifactId>psi-probe</artifactId>
<version>3.0.0-SNAPSHOT</version>
</parent>
<artifactId>thirdParty</artifactId>
<packaging>pom</packaging>
<name>PSI Probe Third Party</name>
<description>Third Party Installation Module</description>
<scm>
<connection>scm:git:ssh://[email protected]:psi-probe/psi-probe.git</connection>
<developerConnection>scm:git:ssh://[email protected]:psi-probe/psi-probe.git</developerConnection>
<url>https://github.com/psi-probe/psi-probe/</url>
</scm>
<properties>
<git.relative.path>../</git.relative.path>
</properties>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.4.0</version>
</plugin>
</plugins>
</pluginManagement>
</build>
<profiles>
<profile>
<activation>
<os>
<family>Windows</family>
</os>
</activation>
<id>Install Third Party Windows</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>Install Third Parties</id>
<phase>validate</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>${project.basedir}/maven-install.cmd</executable>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<activation>
<os>
<family>unix</family>
</os>
</activation>
<id>Install Third Party Linux</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>Chmod Maven Install</id>
<phase>validate</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>chmod</executable>
<arguments>
<argument>+x</argument>
<argument>${project.basedir}/maven-install.sh</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>Install Third Parties</id>
<phase>validate</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>${project.basedir}/maven-install.sh</executable>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
Binary file added thirdParty/ucp-12.1.0.2.jar
Binary file not shown.

0 comments on commit 386a129

Please sign in to comment.