<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">
	<properties>
		<bundle.symbolicName>cayenne-modeler-eclipse-plugin</bundle.symbolicName>
		<bundle.namespace>org.apache.cayenne</bundle.namespace>
	</properties>
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>org.apache.cayenne</groupId>
		<artifactId>cayenne-parent</artifactId>
		<version>3.1-SNAPSHOT</version>
	</parent>

	<artifactId>cayenne-modeler-eclipse-plugin</artifactId>

	<name>Cayenne Modeler Plugin for Eclipse</name>
	<packaging>bundle</packaging>

	<build>
		<resources>
			<resource>
				<targetPath>icons</targetPath>
				<directory>icons</directory>

			</resource>
			<resource>
				<directory>.</directory>
				<includes>
					<include>plugin.xml</include>
				</includes>
			</resource>
		</resources>
		<plugins>
			<plugin>
				<groupId>org.apache.felix</groupId>
				<artifactId>maven-bundle-plugin</artifactId>
				<version>1.2.1</version>
				<extensions>true</extensions>
				<configuration>
					<manifestLocation>META-INF</manifestLocation>
					<instructions>
						<Include-Resource>target/classes</Include-Resource>
						<Bundle-SymbolicName>${bundle.symbolicName};singleton:=true
						</Bundle-SymbolicName>
						<Bundle-Version>${pom.version}</Bundle-Version>
						<Import-Package>
							<!-- exclude packages generated in bundle manifest
								automatically and that cause the failure of 
								bundle compilation
								TODO: consider the way of resolving this problem 
								not by explicit exclusion
							-->
							!EDU.oswego.cs.dl.util.concurrent,
							!bsh,
							!com.sun.java.swing.plaf.windows,
							!com.werken.xpath,
							!javax.jms,
							!org.apache.avalon.framework.logger,
							!org.apache.bcel.*,
							!org.jdom.*,
							!org.jivesoftware.smackx.debugger,
							!sun.security.action,
							
							org.eclipse.core.runtime,
							org.eclipse.core.resources,
							org.eclipse.ui,
							org.eclipse.jdt.launching,
							org.eclipse.debug.core,
							org.eclipse.ui.ide,
							org.eclipse.jdt.core,*
						</Import-Package>
						<Bundle-Activator>${bundle.namespace}.Activator
						</Bundle-Activator>
						<Embed-Dependency>
							*;scope=compile|runtime|provided;inline=false;
						</Embed-Dependency>
						<Embed-Directory>target/dependency
						</Embed-Directory>
						<Embed-StripGroup>true</Embed-StripGroup>
					</instructions>
				</configuration>
			</plugin>
			<plugin>
				<artifactId>maven-dependency-plugin
				</artifactId>
				<executions>
					<execution>
						<id>copy-dependencies</id>
						<phase>package</phase>
						<goals>
							<goal>copy-dependencies</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.5</source>
					<target>1.5</target>
				</configuration>
			</plugin>
		</plugins>
	</build>

	<dependencies>
		<!-- Eclipse dependencies -->
		<dependency>
			<groupId>org.eclipse</groupId>
			<artifactId>ui</artifactId>
			<version>3.3.0-I20070614-0800</version>
		</dependency>
		<dependency>
			<groupId>org.eclipse.core</groupId>
			<artifactId>resources</artifactId>
			<version>3.3.0-v20070604</version>
		</dependency>
		<dependency>
			<groupId>org.eclipse.core.runtime</groupId>
			<artifactId>compatibility</artifactId>
			<version>3.1.200-v20070502</version>
		</dependency>
		<dependency>
			<groupId>org.eclipse</groupId>
			<artifactId>jdt</artifactId>
			<version>3.3.0-v20070607-1300</version>
		</dependency>
		

		<!-- Cayenne dependencies -->
		<dependency>
			<groupId>org.apache.cayenne</groupId>
			<artifactId>cayenne-modeler</artifactId>
			<version>${version}</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.cayenne.unpublished</groupId>
			<artifactId>cayenne-jdk1.5-unpublished</artifactId>
			<version>${version}</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.cayenne.unpublished</groupId>
			<artifactId>cayenne-project-unpublished</artifactId>
			<version>${version}</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.cayenne</groupId>
			<artifactId>cayenne-tools</artifactId>
			<version>${version}</version>
		</dependency>
		<dependency>
			<groupId>org.apache.cayenne.unpublished</groupId>
			<artifactId>cayenne-wocompat-unpublished</artifactId>
			<version>${version}</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.cayenne.unpublished</groupId>
			<artifactId>cayenne-di-unpublished</artifactId>
			<version>${version}</version>
		</dependency>
		
		<!-- Third-party dependencies -->
		<dependency>
			<groupId>com.caucho</groupId>
			<artifactId>resin-hessian</artifactId>
		</dependency>
		<dependency>
			<groupId>opensymphony</groupId>
			<artifactId>oscache</artifactId>
			<version>2.3.2</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>jgroups</groupId>
			<artifactId>jgroups-all</artifactId>
		</dependency>
				<dependency>
			<groupId>jgoodies</groupId>
			<artifactId>looks</artifactId>
		</dependency>
		<dependency>
			<groupId>jgoodies</groupId>
			<artifactId>forms</artifactId>
		</dependency>
		<dependency>
			<groupId>jivesoftware</groupId>
			<artifactId>smack</artifactId>
			<version>2.2.1</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>jivesoftware</groupId>
			<artifactId>smackx</artifactId>
			<version>2.2.1</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>ognl</groupId>
			<artifactId>ognl</artifactId>
		</dependency>
		<dependency>
			<groupId>org.scopemvc</groupId>
			<artifactId>scopemvc</artifactId>
		</dependency>
		<dependency>
			<groupId>hsqldb</groupId>
			<artifactId>hsqldb</artifactId>
		</dependency>
		<dependency>
			<groupId>jgraph</groupId>
			<artifactId>jgraph</artifactId>
			<version>5.13.0.0</version>
		</dependency>
		<dependency>
			<groupId>net.sf.jedit-syntax</groupId>
			<artifactId>jedit-syntax</artifactId>
			<version>2.2.2</version>
		</dependency>
		<dependency>
			<groupId>commons-dbcp</groupId>
			<artifactId>commons-dbcp</artifactId>
			<scope>compile</scope>
		</dependency>
		<dependency>
			<groupId>commons-pool</groupId>
			<artifactId>commons-pool</artifactId>
			<scope>compile</scope>
		</dependency>
		<dependency>
			<groupId>commons-logging</groupId>
			<artifactId>commons-logging</artifactId>
		</dependency>
		<dependency>
			<groupId>commons-collections</groupId>
			<artifactId>commons-collections</artifactId>
		</dependency>
		<dependency>
			<groupId>foundrylogic.vpp</groupId>
			<artifactId>vpp</artifactId>
		</dependency>
		<dependency>
			<groupId>net.java.dev.inflector</groupId>
			<artifactId>inflector</artifactId>
			<version>0.7.0</version>
		</dependency>
	</dependencies>
</project>