<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>
		<artifactId>wicket-osgi-parent</artifactId>
		<groupId>org.wicketstuff</groupId>
		<version>9.4.0</version>
	</parent>
	<artifactId>wicket-osgi-test-web</artifactId>
	<packaging>bundle</packaging>
	<name>Wicket OSGi Test Web Application</name>
	<properties>
		<pax.debug>--vmOptions=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5900</pax.debug>
		<!-- Use -Dplatform=felix on the command line if desired -->
		<platform>equinox</platform>
	</properties>
	<dependencies>
		<dependency>
			<groupId>${project.groupId}</groupId>
			<artifactId>wicket-osgi-test-service</artifactId>
			<version>${project.version}</version>
		</dependency>
		<dependency>
			<groupId>${project.groupId}</groupId>
			<artifactId>wicketstuff-osgi</artifactId>
			<version>${project.version}</version>
		</dependency>
		<dependency>
			<groupId>org.wicketstuff</groupId>
			<artifactId>wicketstuff-ioc-bundle</artifactId>
			<version>${project.version}</version>
		</dependency>
		<dependency>
			<groupId>org.apache.geronimo.specs</groupId>
			<artifactId>geronimo-atinject_1.0_spec</artifactId>
		</dependency>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-simple</artifactId>
		</dependency>
	</dependencies>
	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.felix</groupId>
				<artifactId>maven-bundle-plugin</artifactId>
				<extensions>true</extensions>
				<configuration>
					<instructions>
						<Bundle-SymbolicName>org.wicketstuff.osgi.test.library.web</Bundle-SymbolicName>
						<Require-Bundle>org.wicketstuff.ioc-bundle</Require-Bundle>
						<Web-ContextPath>/library</Web-ContextPath>
					</instructions>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.ops4j</groupId>
				<artifactId>maven-pax-plugin</artifactId>
				<configuration>
					<noDependencies>true</noDependencies>
					<deployURLs>
						mvn:org.wicketstuff/wicket-osgi-test-service/1.5-SNAPSHOT,
						mvn:org.wicketstuff/wicketstuff-osgi/1.5-SNAPSHOT,
						mvn:org.wicketstuff/wicketstuff-bundle/1.5-SNAPSHOT,
						mvn:org.wicketstuff/wicketstuff-ioc-bundle/1.5-SNAPSHOT,
						mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.core/0.3,
						mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.api/0.3,
						mvn:org.apache.aries/org.apache.aries.util/0.3,
						mvn:org.apache.aries.proxy/org.apache.aries.proxy.api/0.3,
						mvn:org.apache.aries.proxy/org.apache.aries.proxy.impl/0.3,
						mvn:org.apache.felix/org.apache.felix.webconsole/3.1.8,
						mvn:net.sourceforge.cglib/com.springsource.net.sf.cglib/2.2.0,
						mvn:org.apache.geronimo.specs/geronimo-atinject_1.0_spec/1.0,
						mvn:org.slf4j/slf4j-api/1.6.1,
						mvn:org.slf4j/slf4j-simple/1.6.1,
						mvn:asm/asm-all/3.3,
					</deployURLs>
					<provision>
						<param>--platform=${platform}</param>
						<param>--profiles=compendium,web,war</param>
						<param>--log=debug</param>

						<!-- Uncomment the following to enable remote debugging. -->
						<!-- We use a property to mask the double hyphen within an XML comment... -->

						<!--param>${pax.debug}</param -->
					</provision>
				</configuration>
			</plugin>
		</plugins>
	</build>
    <profiles>
        <profile>
            <id>felix</id>
            <activation>
                <property>
                    <name>felix</name>
                </property>
            </activation>
            <dependencies>
                <!-- adds a container console at http://localhost:8080/system/console -->
                <dependency>
                    <groupId>org.apache.felix</groupId>
                    <artifactId>org.apache.felix.webconsole</artifactId>
                    <version>3.1.8</version>
                </dependency>
            </dependencies>
        </profile>
    </profiles>
</project>
