install-jars
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>org.phoebus</groupId> <artifactId>install-jars</artifactId> <version>5.0.0</version> </dependency>
<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>org.phoebus</groupId> <artifactId>dependencies</artifactId> <version>5.0.0</version> </parent> <artifactId>install-jars</artifactId> <!-- Note how the configuration is _inside_ an execution, and each exacution has a unique ID. Otherwise the plugin would run once with a mix of setups, like install the ojdbc jar with the pbraw/pom.xml: maven-install-plugin:2.5.2:install-file (install-jar-lib) @ install-jars Installing dependencies/install-jars/lib/ojdbc/ojdbc8-12.2.0.1.jar to .m2/repository/com/oracle/jdbc/ojdbc8/12.2.0.1/ojdbc8-12.2.0.1.jar Installing dependencies/install-jars/lib/pbraw/pom.xml to .m2/repository/com/oracle/jdbc/ojdbc8/12.2.0.1/ojdbc8-12.2.0.1.pom --> <profiles> <!-- Oracle JDBC is only available from an Oracle. If your site uses it, copy it into ${basedir}/lib/ojdbc/ojdbc8-12.2.0.1.jar, from which it will be installed into local maven repo --> <profile> <activation> <file> <exists>${basedir}/lib/ojdbc/ojdbc8-12.2.0.1.jar</exists> </file> </activation> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-install-plugin</artifactId> <version>2.5.2</version> <executions> <execution> <id>install-oracle</id> <configuration> <groupId>com.oracle.jdbc</groupId> <artifactId>ojdbc8</artifactId> <version>12.2.0.1</version> <packaging>jar</packaging> <file>${basedir}/lib/ojdbc/ojdbc8-12.2.0.1.jar</file> <generatePom>true</generatePom> </configuration> <goals> <goal>install-file</goal> </goals> <phase>validate</phase> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-install-plugin</artifactId> <version>2.5.2</version> <executions> <execution> <id>install-pbraw</id> <configuration> <groupId>org.epics</groupId> <artifactId>pbrawclient</artifactId> <version>0.0.10</version> <packaging>jar</packaging> <file>${basedir}/lib/pbraw/pbrawclient-0.0.10.jar</file> <generatePom>false</generatePom> <pomFile>${basedir}/lib/pbraw/pom.xml</pomFile> </configuration> <goals> <goal>install-file</goal> </goals> <phase>validate</phase> </execution> </executions> </plugin> </plugins> </build> </project>