Created
April 25, 2012 14:53
-
-
Save nhojpatrick/2490338 to your computer and use it in GitHub Desktop.
Sample maven pom.xml to install oracle jar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<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> | |
<groupId>tld.example</groupId> | |
<artifactId>install-ojdbc6</artifactId> | |
<packaging>pom</packaging> | |
<!--name / --> | |
<version>1</version> | |
<!--description / --> | |
<!--url / --> | |
<prerequisites> | |
<maven>3</maven> | |
</prerequisites> | |
<!--issueManagement / --> | |
<!--ciManagement / --> | |
<!--inceptionYear / --> | |
<!--mailingLists / --> | |
<!--developers / --> | |
<!--contributors / --> | |
<!--licenses / --> | |
<!--scm / --> | |
<!--organization / --> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-install-plugin</artifactId> | |
<version>2.3.1</version> | |
<inherited>false</inherited> | |
<executions> | |
<execution> | |
<id>install:com.oracle:ojdbc6:11g</id> | |
<phase>validate</phase> | |
<goals> | |
<goal>install-file</goal> | |
</goals> | |
<configuration> | |
<file>${project.basedir}/ojdbc6.jar</file> | |
<groupId>com.oracle</groupId> | |
<artifactId>ojdbc6</artifactId> | |
<version>11.1.0.7.0</version> | |
<packaging>jar</packaging> | |
<createChecksum>true</createChecksum> | |
<generatePom>true</generatePom> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
<!--profiles / --> | |
<!--modules / --> | |
<!--repositories / --> | |
<!--pluginRepositories / --> | |
<!--dependencies / --> | |
<!--reports (Deprecated. Now ignored by Maven. ) / --> | |
<!--reporting / --> | |
<!--dependencyManagement / --> | |
<!--distributionManagement / --> | |
<!--properties / --> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment