<?xml version="1.0" encoding="UTF-8"?>
<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">
    <parent>
        <artifactId>parent</artifactId>
        <groupId>org.jboss.webbeans.examples</groupId>
        <version>1.0.0.PREVIEW1</version>
        <relativePath>../../pom.xml</relativePath>
    </parent>
    <modelVersion>4.0.0</modelVersion>
    <groupId>org.jboss.webbeans.examples</groupId>
    <artifactId>webbeans-numberguess-se</artifactId>
    <packaging>jar</packaging>
    <name>Number Guess SE</name>

    <dependencies>
        <dependency>
            <groupId>org.jboss.webbeans</groupId>
            <artifactId>webbeans-se</artifactId>
        </dependency>
    </dependencies>
    
	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jar-plugin</artifactId>
				<configuration>
					<archive>
						<manifest>
							<mainClass>org.jboss.webbeans.environment.se.StartMain</mainClass>
						</manifest>
					</archive>
				</configuration>
			</plugin>
		</plugins>
	</build>
	
	<profiles>
		<profile>
         <id>run</id>
         <activation>
         	<property>
         		<name>run</name>
         	</property>
         </activation>
         <build>
         	<plugins>
         		<plugin>
         			<executions>
                     <execution>
                        <id>run</id>
                        <phase>package</phase> 
                        <goals>
                        <goal>java</goal>
                        </goals>
                     </execution>
                  </executions>
		        		<groupId>org.codehaus.mojo</groupId>
			         <artifactId>exec-maven-plugin</artifactId>
		  				<configuration>
		  					<mainClass>org.jboss.webbeans.environment.se.StartMain</mainClass>
		  				</configuration>
		  			</plugin>
         	</plugins>
         </build>
    	</profile>
	</profiles>
    
</project>
