Created
July 22, 2011 11:23
-
-
Save tomoconnor/1099270 to your computer and use it in GitHub Desktop.
Example pom.xml
This file contains hidden or 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
| <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>org.example</groupId> | |
| <artifactId>jpademo</artifactId> | |
| <version>1.0</version> | |
| <packaging>jar</packaging> | |
| <scm> | |
| <connection>scm:git:ssh://my.git.server.internal/home/git/jpademo</connection> | |
| <developerConnection>scm:git:ssh://my.git.server.internal/home/git/jpademo</developerConnection> | |
| </scm> | |
| <ciManagement> | |
| <system>jenkins</system> | |
| <url>https://my.jenkins.internal/jenkins</url> | |
| </ciManagement> | |
| <name>jpademo</name> | |
| <url>http://maven.apache.org</url> | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-compiler-plugin</artifactId> | |
| <version>2.3.2</version> | |
| <configuration> | |
| <source>1.6</source> | |
| <target>1.6</target> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-jar-plugin</artifactId> | |
| <version>2.2</version> | |
| <executions> | |
| <execution> | |
| <goals> | |
| <goal>jar</goal> | |
| </goals> | |
| <id>jar</id> | |
| </execution> | |
| </executions> | |
| <configuration> | |
| <archive> | |
| <manifestFile>src/main/resources/Manifest.txt</manifestFile> | |
| <manifest> | |
| <addClasspath>true</addClasspath> | |
| <mainClass>com.footballradar.jpademo.App</mainClass> | |
| </manifest> | |
| </archive> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-shade-plugin</artifactId> | |
| <version>1.4</version> | |
| <executions> | |
| <execution> | |
| <phase>package</phase> | |
| <goals> | |
| <goal>shade</goal> | |
| </goals> | |
| </execution> | |
| </executions> | |
| <configuration> | |
| <finalName>${project.artifactId}-${project.version}</finalName> | |
| </configuration> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| <repositories> | |
| <repository> | |
| <url>http://download.java.net/maven/2/</url> | |
| <id>hibernate-support</id> | |
| <layout>default</layout> | |
| <name>Repository for library Library[hibernate-support]</name> | |
| </repository> | |
| </repositories> | |
| <properties> | |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
| </properties> | |
| <dependencies> | |
| <dependency> | |
| <groupId>junit</groupId> | |
| <artifactId>junit</artifactId> | |
| <version>3.8.1</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.hibernate</groupId> | |
| <artifactId>hibernate-core</artifactId> | |
| <version>3.6.3.Final</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.hibernate</groupId> | |
| <artifactId>hibernate</artifactId> | |
| <version>3.2.5.ga</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.hibernate</groupId> | |
| <artifactId>hibernate-entitymanager</artifactId> | |
| <version>3.3.2.GA</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>javax.sql</groupId> | |
| <artifactId>jdbc-stdext</artifactId> | |
| <version>2.0</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>javax.transaction</groupId> | |
| <artifactId>jta</artifactId> | |
| <version>1.0.1B</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.hibernate</groupId> | |
| <artifactId>ejb3-persistence</artifactId> | |
| <version>1.0.1.GA</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>mysql</groupId> | |
| <artifactId>mysql-connector-java</artifactId> | |
| <version>5.1.14</version> | |
| </dependency> | |
| <dependency> | |
| <artifactId>slf4j-api</artifactId> | |
| <groupId>org.slf4j</groupId> | |
| <type>jar</type> | |
| <version>1.6.1</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.slf4j</groupId> | |
| <artifactId>log4j-over-slf4j</artifactId> | |
| <version>1.6.1</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.slf4j</groupId> | |
| <artifactId>slf4j-simple</artifactId> | |
| <version>1.6.1</version> | |
| </dependency> | |
| </dependencies> | |
| <distributionManagement> | |
| <repository> | |
| <id>My_Artifactory_Releases</id> | |
| <name>My_Artifactory-releases</name> | |
| <url>http://my.maven.repository.internal/artifactory/release</url> | |
| </repository> | |
| <snapshotRepository> | |
| <id>My_Artifactory_Snapshots</id> | |
| <name>My_Artifactory-snapshots</name> | |
| <url>http://my.maven.repository.internal/artifactory/snapshot</url> | |
| </snapshotRepository> | |
| </distributionManagement> | |
| </project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment