<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>

	<parent>
		<groupId>org.dockingframes</groupId>
		<artifactId>docking-frames-base</artifactId>
		<version>1.1.3p1</version>
	</parent>

	<artifactId>docking-frames-ext-glass</artifactId>
	<packaging>jar</packaging>

	<name>${project.artifactId}</name>
	<description>${project.name} is a "glass" theme extension</description>

	<repositories>
		<repository>
			<id>local-maven-repo</id>
			<url>file:///${project.basedir}/repo</url>
		</repository>
	</repositories>

	<build>
		<resources>
			<resource>
				<directory>src</directory>
				<includes>
					<include>glass/eclipse/theme/images/*.*</include>
				</includes>
			</resource>
		</resources>
	</build>
	<dependencies>
		<dependency>
			<groupId>${project.groupId}</groupId>
			<artifactId>docking-frames-common</artifactId>
			<version>${project.version}</version>
		</dependency>
		<!-- TODO ask Steffen Kux, software@kuxfamily.de to publish glasslib.jar 
			on maven -->
		<dependency>
			<groupId>kux</groupId>
			<artifactId>glasslib</artifactId>
			<version>1.0</version>
		</dependency>
	</dependencies>
	
	<profiles>
		<profile>
			<id>skipGlass</id>
			<activation>
				<property>
					<name>skipGlass</name>
					<value>true</value>
				</property>
			</activation>
			<properties>
				<maven.resources.skip>true</maven.resources.skip>
				<maven.main.skip>true</maven.main.skip>
				<maven.test.skip>true</maven.test.skip>
				<maven.install.skip>true</maven.install.skip>
				<maven.deploy.skip>true</maven.deploy.skip>
			</properties>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-jar-plugin</artifactId>
						<configuration>
							<skipIfEmpty>true</skipIfEmpty>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>
		
		<profile>
			<id>deployGlasslib</id>
			<activation>
				<property>
					<name>glasslibURL</name>
				</property>
			</activation>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-deploy-plugin</artifactId>
						<executions>
							<execution>
								<id>deploy glasslib</id>
								<phase>deploy</phase>
								<goals>
									<goal>deploy-file</goal>
								</goals>
								<configuration>
									<url>${glasslibURL}</url>
									<file>${project.basedir}/libs/glassLib/glasslib.jar</file>
									<groupId>kux</groupId>
									<artifactId>glasslib</artifactId>
									<version>1.0</version>
								</configuration>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>
</project>
