...
Code Block | ||
---|---|---|
| ||
<?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"> <!-- every project POM must include GLAST parent POM --> <parent> <groupId>glast</groupId> <artifactId>maven-parent</artifactId> <version>1.0</version> </parent> <modelVersion>4.0.0</modelVersion> <groupId>glast</groupId> <artifactId>sample-maven-webapp</artifactId> <packaging>war</packaging> <version>1.0-SNAPSHOT</version> <name>Sample Maven Webapp</name> <url>http://glast-ground.slac.stanford.edu</url> <dependencies> <!-- enter project specific POM --> </dependencies> <build> <finalName>sampleMavenWebapp</finalName> </build> </project> |
Note | ||
---|---|---|
| ||
In order for you to see what happens during the inheritance process, you will need to use the handy You will notice that the POM that you see when using the mvn help:effective-pom is bigger than you expected. Remember that |
Deploying your project in GLAST Maven 2 repository:
...
When you are migrating from Maven 1.x to Maven 2.x you will first be trying to convert your build and to make this easier we have provided a way for you to use your existing Maven 1.x repository so that you don't have to convert your repository before trying to migrate your projects. To use a Maven 1.x repository with your Maven 2.x project you need to specify this in your POM as follows:<project>
...
<repositories>
<repository>
<snapshots>
<enabled>true</enabled>
</snapshots>
<id>my-m1-repository</id>
<name>Maven 1.x Repository</name>
<url>http://repostory.mycompany.com/maven1</url>
<layout>legacy</layout>
</repository>
</repositories>
...
...