<?xml version="1.0"  encoding="UTF-8"?>

<!--
  ~ Hibernate, Relational Persistence for Idiomatic Java
  ~
  ~ Copyright (c) 2011, Red Hat Inc. or third-party contributors as
  ~ indicated by the @author tags or express copyright attribution
  ~ statements applied by the authors.  All third-party contributions are
  ~ distributed under license by Red Hat Inc.
  ~
  ~ This copyrighted material is made available to anyone wishing to use, modify,
  ~ copy, or redistribute it subject to the terms and conditions of the GNU
  ~ Lesser General Public License, as published by the Free Software Foundation.
  ~
  ~ This program is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  ~ or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
  ~ for more details.
  ~
  ~ You should have received a copy of the GNU Lesser General Public License
  ~ along with this distribution; if not, write to:
  ~ Free Software Foundation, Inc.
  ~ 51 Franklin Street, Fifth Floor
  ~ Boston, MA  02110-1301  USA
  ~
  -->

<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>
	<parent>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-parent</artifactId>
        <version>3.3.2.GA_CP06</version>
    </parent>
	<groupId>org.hibernate</groupId>
	<artifactId>hibernate-annotations</artifactId>
	<packaging>jar</packaging>
	<version>3.4.0.GA_CP06</version>

	<name>Hibernate Annotations</name>
	<description>Annotations metadata for Hibernate</description>
	<url>http://annotations.hibernate.org</url>

	<dependencies>
		<dependency>
			<groupId>org.hibernate</groupId>
			<artifactId>hibernate-core</artifactId>
			<version>3.3.2.GA_CP06</version>
		</dependency>
		<dependency>
			<groupId>org.hibernate</groupId>
			<artifactId>ejb3-persistence</artifactId>
			<version>1.0.2.GA</version>
		</dependency>
		<dependency>
			<groupId>org.hibernate</groupId>
			<artifactId>hibernate-commons-annotations</artifactId>
			<version>3.1.0.GA</version>
		</dependency>
		<dependency>
            <groupId>javassist</groupId>
            <artifactId>javassist</artifactId>
			<scope>test</scope>
        </dependency>
        <dependency>
			<groupId>org.hibernate</groupId>
			<artifactId>hibernate-testing</artifactId>
			<version>3.3.2.GA_CP06</version>
			<scope>test</scope>
		</dependency>
	</dependencies>
	
	<build>

		<plugins>
			<plugin>
				<groupId>org.jboss.maven.plugins</groupId>
				<artifactId>maven-injection-plugin</artifactId>
				<version>1.0.2</version>
				<executions>
					<execution>
						<phase>compile</phase>
						<goals>
							<goal>bytecode</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<bytecodeInjections>
						<bytecodeInjection>
							<expression>${pom.version}</expression>
							<targetMembers>
								<constant>
									<className>org.hibernate.cfg.annotations.Version</className>
									<fieldName>VERSION</fieldName>
								</constant>
								<methodBodyReturn>
									<className>org.hibernate.cfg.annotations.Version</className>
									<methodName>getVersionString</methodName>
								</methodBodyReturn>
							</targetMembers>
						</bytecodeInjection>
					</bytecodeInjections>
				</configuration>
			</plugin>

			<!-- add specification/implementation details to the manifests -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jar-plugin</artifactId>
				<configuration>
					<archive>
						<addMavenDescriptor>false</addMavenDescriptor>
						<manifest>
							<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
							<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
						</manifest>
						<manifestEntries>
							<Specification-Vendor>jcp.org</Specification-Vendor>
							<Specification-Version>1.0</Specification-Version>
							<Specification-Title>Java Persistence</Specification-Title>
							<Implementation-Vendor-Id>hibernate.org</Implementation-Vendor-Id>
							<Implementation-URL>http://annotations.hibernate.org</Implementation-URL>
						</manifestEntries>
					</archive>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
				<version>2.5</version>
				<configuration>
					<redirectTestOutputToFile>true</redirectTestOutputToFile>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
	            <artifactId>maven-assembly-plugin</artifactId>
				<version>2.2</version>
	        	<configuration>
	        		<descriptors>
	         			<descriptor>src/main/assembly/dist.xml</descriptor>
	          		</descriptors>
				</configuration>
				<executions>
					<execution>
						<id>make-assembly</id>
						<phase>package</phase>
						<goals>
							<goal>single</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
	<reporting>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-javadoc-plugin</artifactId>
				<configuration>
					<links>
						<link>http://download.oracle.com/javase/6/docs/api/</link>
                        <link>http://download.oracle.com/javaee/6/api/</link>
					</links>
					<stylesheetfile>${basedir}/src/main/javadoc/jdstyle.css</stylesheetfile>
				</configuration>
			</plugin>
		</plugins>
	</reporting>
</project>
