chess/pom.xml
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Tue, 24 Sep 2013 22:20:24 +0200
branchchess
changeset 49 945fbfff28f3
parent 38 7b98c561321d
child 51 3f1866fdb2a1
permissions -rw-r--r--
Advanced version of the chess game
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <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">
     3   <modelVersion>4.0.0</modelVersion>
     4     <parent>
     5     <artifactId>demo</artifactId>
     6     <groupId>org.apidesign.html</groupId>
     7         <version>1.0-SNAPSHOT</version>
     8     </parent>
     9 
    10   <groupId>com.oracle.chess</groupId>
    11   <artifactId>ChessHTMLJavaClient</artifactId>
    12   <version>1.0-SNAPSHOT</version>
    13   <packaging>jar</packaging>
    14 
    15   <name>Chess_HTML_Java_Client</name>
    16 
    17   <repositories>
    18       <repository>
    19           <id>netbeans</id>
    20           <name>NetBeans</name>
    21           <url>http://bits.netbeans.org/maven2/</url>
    22       </repository>
    23   </repositories>
    24   <pluginRepositories>
    25       <pluginRepository>
    26           <id>ios</id>
    27           <name>NetBeans iOS Maven Plugin</name>
    28           <url>http://beetle.cz.oracle.com/~jtulach/maven/</url>
    29           <snapshots>
    30           </snapshots>
    31       </pluginRepository>
    32   </pluginRepositories>
    33 
    34   <properties>
    35     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    36     <netbeans.compile.on.save>none</netbeans.compile.on.save>
    37     <net.java.html.version>0.6</net.java.html.version>
    38     <bck2brwsr.version>0.8</bck2brwsr.version>
    39     <bck2brwsr.launcher.version>0.8</bck2brwsr.launcher.version>
    40     <bck2brwsr.obfuscationlevel>MINIMAL</bck2brwsr.obfuscationlevel>
    41     <brwsr.startpage>pages/index.html</brwsr.startpage>
    42   </properties>
    43   <build>
    44       <plugins>
    45           <plugin>
    46               <groupId>org.apache.maven.plugins</groupId>
    47               <artifactId>maven-compiler-plugin</artifactId>
    48               <version>2.3.2</version>
    49               <configuration>
    50                   <source>1.7</source>
    51                   <target>1.7</target>
    52               </configuration>
    53           </plugin>
    54           <plugin>
    55               <groupId>org.apache.maven.plugins</groupId>
    56               <artifactId>maven-jar-plugin</artifactId>
    57               <version>2.4</version>
    58               <configuration>
    59                   <archive>
    60                       <manifest>
    61                           <mainClass>com.oracle.chess.client.htmljava.Main</mainClass>
    62                           <addClasspath>true</addClasspath>
    63                           <classpathPrefix>lib/</classpathPrefix>
    64                       </manifest>
    65                   </archive>
    66               </configuration>
    67           </plugin>
    68           <plugin>
    69               <groupId>org.codehaus.mojo</groupId>
    70               <artifactId>exec-maven-plugin</artifactId>
    71               <version>1.2.1</version>
    72               <configuration>
    73                   <systemProperties>
    74                       <systemProperty>
    75                           <key>browser.rootdir</key>
    76                           <value>${basedir}/src/main/webapp/</value>
    77                       </systemProperty>
    78                   </systemProperties>
    79                   <mainClass>com.oracle.chess.client.htmljava.Main</mainClass>
    80               </configuration>
    81           </plugin>      
    82           <plugin>
    83               <artifactId>maven-assembly-plugin</artifactId>
    84               <version>2.4</version>
    85               <executions>
    86                   <execution>
    87                       <id>distro-assembly</id>
    88                       <phase>package</phase>
    89                       <goals>
    90                           <goal>single</goal>
    91                       </goals>
    92                       <configuration>
    93                           <descriptors>
    94                               <descriptor>src/main/assembly/html.java.net.xml</descriptor>
    95                           </descriptors>
    96                       </configuration>
    97                   </execution>
    98               </executions>                
    99           </plugin>
   100          <plugin>
   101             <artifactId>ios-maven-plugin</artifactId>
   102             <groupId>org.netbeans.ios</groupId>
   103             <version>0.4</version>
   104             <configuration>
   105                <targetDevices>1</targetDevices>
   106                <deploymentTarget>6.1</deploymentTarget>
   107                <bundleId>JavaOneChess</bundleId>
   108                <provisioningProfile></provisioningProfile>
   109                <supportedInterfaceOrientations>UIInterfaceOrientationLandscapeLeft,UIInterfaceOrientationPortrait,UIInterfaceOrientationLandscapeRight,UIInterfaceOrientationPortraitUpsideDown</supportedInterfaceOrientations>
   110                <prerenderedIcons>false</prerenderedIcons>
   111                <iPadSupportedInterfaceOrientations>UIInterfaceOrientationLandscapeLeft,UIInterfaceOrientationPortrait,UIInterfaceOrientationLandscapeRight,UIInterfaceOrientationPortraitUpsideDown</iPadSupportedInterfaceOrientations>
   112             </configuration>
   113          </plugin>
   114       </plugins>
   115   </build>
   116   <dependencies>
   117     <dependency>
   118         <groupId>org.apidesign.html</groupId>
   119         <artifactId>net.java.html.json</artifactId>
   120         <version>${net.java.html.version}</version>
   121     </dependency>
   122     <dependency>
   123         <groupId>org.apidesign.html</groupId>
   124         <artifactId>net.java.html.boot</artifactId>
   125         <version>${net.java.html.version}</version>
   126     </dependency>
   127     <dependency>
   128       <groupId>org.testng</groupId>
   129       <artifactId>testng</artifactId>
   130       <version>6.7</version>
   131       <scope>test</scope>
   132     </dependency>
   133     <dependency>
   134       <groupId>org.apidesign.html</groupId>
   135       <artifactId>net.java.html.sound</artifactId>
   136       <version>${net.java.html.version}</version>
   137       <type>jar</type>
   138     </dependency>
   139     <dependency>
   140       <groupId>org.apidesign.bck2brwsr</groupId>
   141       <artifactId>core</artifactId>
   142       <version>${bck2brwsr.version}</version>
   143       <scope>provided</scope>
   144       <type>jar</type>
   145     </dependency>
   146   </dependencies>
   147   <profiles>
   148       <profile>
   149           <id>fxbrwsr</id>
   150           <activation>
   151               <activeByDefault>true</activeByDefault>
   152           </activation>
   153           <dependencies>
   154               <dependency>
   155                   <groupId>org.apidesign.html</groupId>
   156                   <artifactId>ko-fx</artifactId>
   157                   <version>${net.java.html.version}</version>
   158                   <scope>runtime</scope>
   159               </dependency>
   160               <dependency>
   161                   <groupId>org.apidesign.html</groupId>
   162                   <artifactId>boot-fx</artifactId>
   163                   <version>${net.java.html.version}</version>
   164                   <scope>runtime</scope>
   165               </dependency>
   166               <dependency>
   167                   <groupId>org.apidesign.html</groupId>
   168                   <artifactId>ko-ws-tyrus</artifactId>
   169                   <scope>runtime</scope>
   170                   <version>${net.java.html.version}</version>
   171               </dependency>
   172           </dependencies>
   173       </profile>
   174       <profile>
   175           <id>bck2brwsr</id>
   176           <activation>
   177               <property>
   178                   <name>brwsr</name>
   179                   <value>bck2brwsr</value>
   180               </property>
   181           </activation>
   182           <build>
   183               <plugins>
   184                   <plugin>
   185                       <groupId>org.apidesign.bck2brwsr</groupId>
   186                       <artifactId>bck2brwsr-maven-plugin</artifactId>
   187                       <version>${bck2brwsr.launcher.version}</version>
   188                       <executions>
   189                           <execution>
   190                               <goals>
   191                                   <goal>brwsr</goal>
   192                               </goals>
   193                           </execution>
   194                       </executions>
   195                       <configuration>
   196                           <directory>${basedir}/src/main/webapp/</directory>
   197                           <startpage>${brwsr.startpage}</startpage>
   198                           <launcher>${brwsr}</launcher>
   199                           <javascript>${project.build.directory}/bck2brwsr.js</javascript>
   200                           <obfuscation>${bck2brwsr.obfuscationlevel}</obfuscation>
   201                       </configuration>
   202                   </plugin>
   203                   <plugin>
   204                       <groupId>org.apache.maven.plugins</groupId>
   205                       <artifactId>maven-compiler-plugin</artifactId>
   206                       <configuration>
   207                           <compilerArguments>
   208                               <!--
   209                               <bootclasspath>netbeans.ignore.jdk.bootclasspath</bootclasspath>
   210                               -->
   211                           </compilerArguments>
   212                       </configuration>
   213                   </plugin>
   214                   <plugin>
   215                       <artifactId>maven-assembly-plugin</artifactId>
   216                       <version>2.4</version>
   217                       <executions>
   218                           <execution>
   219                               <id>distro-assembly</id>
   220                               <phase>package</phase>
   221                               <goals>
   222                                   <goal>single</goal>
   223                               </goals>
   224                               <configuration>
   225                                   <descriptors>
   226                                       <descriptor>src/main/assembly/bck2brwsr.xml</descriptor>
   227                                   </descriptors>
   228                               </configuration>
   229                           </execution>
   230                       </executions>                
   231                   </plugin>      
   232               </plugins>
   233           </build>
   234           <dependencies>
   235               <dependency>
   236                   <groupId>org.apidesign.bck2brwsr</groupId>
   237                   <artifactId>emul</artifactId>
   238                   <version>${bck2brwsr.version}</version>
   239                   <classifier>rt</classifier>
   240               </dependency>
   241               <dependency>
   242                   <groupId>org.apidesign.bck2brwsr</groupId>
   243                   <artifactId>ko-bck2brwsr</artifactId>
   244                   <version>${bck2brwsr.version}</version>
   245                   <scope>runtime</scope>
   246               </dependency>
   247               <dependency>
   248                   <groupId>org.apidesign.bck2brwsr</groupId>
   249                   <artifactId>vm4brwsr</artifactId>
   250                   <classifier>js</classifier>
   251                   <type>zip</type>
   252                   <version>${bck2brwsr.version}</version>
   253                   <scope>provided</scope>
   254               </dependency>
   255           </dependencies>
   256       </profile>
   257   </profiles>
   258 </project>