<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Licensed to the Apache Software Foundation (ASF) under one or more
  ~ contributor license agreements.  See the NOTICE file distributed with
  ~ this work for additional information regarding copyright ownership.
  ~ The ASF licenses this file to You under the Apache License, Version 2.0
  ~ (the "License"); you may not use this file except in compliance with
  ~ the License.  You may obtain a copy of the License at
  ~
  ~    http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->
<!-- $Rev: 737157 $ $Date: 2009-01-23 14:26:12 -0500 (Fri, 23 Jan 2009) $ -->
<project>
                        
    <modelVersion>4.0.0</modelVersion>
                        
    <parent>
        <groupId>org.apache.openjpa</groupId>
        <artifactId>openjpa-parent</artifactId>
        <version>2.0.0-SNAPSHOT</version>
    </parent>
                        
    <groupId>org.apache.openjpa</groupId>
    <artifactId>openjpa-eclipse-plugin</artifactId>
    <version>2.0.0</version>
    <packaging>pom</packaging>

    <name>OpenJPA Eclipse Plugin</name>
    <description>Apache OpenJPA Eclipse Plugin</description>
    <url>http://openjpa.apache.org/</url>
                        
    <prerequisites>
        <maven>2.0.9</maven>
    </prerequisites>
                        
    <scm>
        <connection>scm:svn:https://svn.apache.org/repos/asf/openjpa/sandboxes/openjpa-plugin/</connection>
        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/openjpa/sandboxes/openjpa-eclipse-plugin/</developerConnection>
        <url>https://svn.apache.org/repos/asf/openjpa/sandboxes/openjpa-eclipse-plugin/</url>
    </scm>
                        
    <properties>
        <!-- Note: The following must be updated prior to releasing -->
        <openjpaVersion>2.0.0-SNAPSHOT</openjpaVersion>

        <eclipseInstall>${settings.localRepository}/eclipse</eclipseInstall>
        <checkstyle.config.location>../checkstyle.xml</checkstyle.config.location>
    </properties>
                        
    <build>
        <defaultGoal>install</defaultGoal>
        <sourceDirectory>src/main/</sourceDirectory>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.geronimo.devtools</groupId>
                    <artifactId>maven-eclipsepde-plugin</artifactId>
                    <version>1.0</version>
                    <configuration>
                        <eclipseHome>${settings.localRepository}/eclipse/eclipse/</eclipseHome>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-clean-plugin</artifactId>
                    <version>2.3</version>
                </plugin>
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>buildnumber-maven-plugin</artifactId>
                    <version>1.0-beta-1</version>
                </plugin>
            </plugins>
        </pluginManagement>
                
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-clean-plugin</artifactId>
                <configuration>
                    <filesets>
                        <fileset>
                            <directory>${pom.basedir}</directory>
                            <includes>
                                <include>*.log</include>
                            </includes>
                        </fileset>
                    </filesets>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>buildnumber-maven-plugin</artifactId>
                <configuration>
                    <format>{0,date,yyyyMMddHHmmss}</format>
                    <items>
                        <item>timestamp</item>
                    </items>
                </configuration>
                <executions>
                    <execution>
                        <phase>validate</phase>
                        <goals>
                            <goal>create</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
                        
    <repositories>
        <repository>
            <id>apache-snapshots</id>
            <name>Apache Snapshots Repository</name>
            <url>http://people.apache.org/repo/m2-snapshot-repository</url>
            <layout>default</layout>
            <snapshots>
                <enabled>true</enabled>
                <updatePolicy>daily</updatePolicy>
                <checksumPolicy>ignore</checksumPolicy>
            </snapshots>
            <releases>
                <enabled>true</enabled>
            </releases>
        </repository>
  
        <repository>
            <id>codehaus-snapshots</id>
            <name>Codehaus Snapshots Repository</name>
            <url>http://snapshots.repository.codehaus.org</url>
            <layout>default</layout>
            <snapshots>
                <enabled>true</enabled>
                <updatePolicy>daily</updatePolicy>
                <checksumPolicy>ignore</checksumPolicy>
            </snapshots>
            <releases>
                <enabled>false</enabled>
            </releases>
        </repository>
    </repositories>
                        
    <pluginRepositories>
        <pluginRepository>
            <id>apache.org</id>
            <name>Maven Plugin Snapshots</name>
            <url>http://people.apache.org/repo/m2-snapshot-repository</url>
            <releases>
                <enabled>false</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </pluginRepository>
    </pluginRepositories>
                        
    <profiles>
        <profile>
            <id>default</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <modules>
                <module>eclipse</module>
                <module>plugins</module>
                <!-- 
                <module>features</module>
                <module>assembly</module>
                -->
            </modules>
        </profile>
    </profiles>
</project>
