minesweeper/pom.xml
author Jaroslav Tulach <jtulach@netbeans.org>
Wed, 19 Mar 2014 16:20:43 +0100
branchnbrwsr
changeset 112 41b280ebabf3
parent 111 2c3e79e7d61c
child 113 aa5e80fdfa7d
permissions -rw-r--r--
Shows icon in Window menu and in a toolbar and opens a browser with (empty) HTML page
     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 
     5   <groupId>org.apidesign.demo</groupId>
     6   <artifactId>minesweeper</artifactId>
     7   <version>1.0-SNAPSHOT</version>
     8   <packaging>jar</packaging>
     9   <parent>
    10       <artifactId>demo</artifactId>
    11       <groupId>org.apidesign.html</groupId>
    12       <version>1.0-SNAPSHOT</version>
    13   </parent>
    14 
    15   <name>Mine Sweeper</name>
    16 
    17   <properties>
    18     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    19     <brwsr.startpage>pages/index.html</brwsr.startpage>
    20     <project.mainclass>org.apidesign.demo.minesweeper.Main</project.mainclass>
    21     <netbeans.compile.on.save>none</netbeans.compile.on.save>
    22   </properties>
    23   <build>
    24       <plugins>
    25           <plugin>
    26               <groupId>org.apache.maven.plugins</groupId>
    27               <artifactId>maven-compiler-plugin</artifactId>
    28               <version>2.3.2</version>
    29               <configuration>
    30                   <source>1.6</source>
    31                   <target>1.6</target>
    32               </configuration>
    33           </plugin>
    34           <plugin>
    35               <groupId>org.apache.maven.plugins</groupId>
    36               <artifactId>maven-jar-plugin</artifactId>
    37               <version>2.4</version>
    38               <configuration>
    39                   <archive>
    40                       <manifest>
    41                           <mainClass>${project.mainclass}</mainClass>
    42                           <addClasspath>true</addClasspath>
    43                           <classpathPrefix>lib/</classpathPrefix>
    44                       </manifest>
    45                   </archive>
    46               </configuration>
    47           </plugin>
    48           <plugin>
    49               <groupId>org.codehaus.mojo</groupId>
    50               <artifactId>exec-maven-plugin</artifactId>
    51               <version>1.2.1</version>
    52               <configuration>
    53                   <systemProperties>
    54                       <systemProperty>
    55                           <key>browser.rootdir</key>
    56                           <value>${basedir}/src/main/webapp/</value>
    57                       </systemProperty>
    58                   </systemProperties>
    59                   <mainClass>${project.mainclass}</mainClass>
    60               </configuration>
    61           </plugin>      
    62       </plugins>
    63   </build>
    64   <dependencies>
    65     <dependency>
    66         <groupId>org.netbeans.html</groupId>
    67         <artifactId>net.java.html.json</artifactId>
    68         <version>${net.java.html.version}</version>
    69     </dependency>
    70     <dependency>
    71         <groupId>org.netbeans.html</groupId>
    72         <artifactId>net.java.html.boot</artifactId>
    73         <version>${net.java.html.version}</version>
    74     </dependency>
    75     <dependency>
    76         <groupId>org.netbeans.html</groupId>
    77         <artifactId>net.java.html</artifactId>
    78         <version>${net.java.html.version}</version>
    79     </dependency>
    80     <dependency>
    81         <groupId>org.netbeans.html</groupId>
    82         <artifactId>net.java.html.sound</artifactId>
    83         <version>${net.java.html.version}</version>
    84     </dependency>
    85     <dependency>
    86         <groupId>org.netbeans.html</groupId>
    87         <artifactId>ko4j</artifactId>
    88         <version>${net.java.html.version}</version>
    89     </dependency>
    90     <dependency>
    91       <groupId>org.netbeans.html.nbrwsr</groupId>
    92       <artifactId>api</artifactId>
    93       <version>0.1-SNAPSHOT</version>
    94       <scope>provided</scope>
    95     </dependency>
    96     <dependency>
    97       <groupId>org.testng</groupId>
    98       <artifactId>testng</artifactId>
    99       <version>6.7</version>
   100       <scope>test</scope>
   101     </dependency>
   102   </dependencies>
   103   <profiles>
   104       <profile>
   105           <id>fxbrwsr</id>
   106           <activation>
   107               <activeByDefault>true</activeByDefault>
   108           </activation>
   109           <build>
   110             <plugins>
   111                 <plugin>
   112                     <artifactId>maven-assembly-plugin</artifactId>
   113                     <version>2.4</version>
   114                     <executions>
   115                         <execution>
   116                             <id>distro-assembly</id>
   117                             <phase>package</phase>
   118                             <goals>
   119                                 <goal>single</goal>
   120                             </goals>
   121                             <configuration>
   122                                 <descriptors>
   123                                     <descriptor>src/main/assembly/html.java.net.xml</descriptor>
   124                                 </descriptors>
   125                             </configuration>
   126                         </execution>
   127                     </executions>                
   128                 </plugin>      
   129             </plugins>
   130           </build>
   131           <dependencies>
   132             <dependency>
   133                 <groupId>org.netbeans.html</groupId>
   134                 <artifactId>net.java.html.boot.fx</artifactId>
   135                 <version>${net.java.html.version}</version>
   136                 <scope>runtime</scope>
   137             </dependency>
   138           </dependencies>
   139       </profile>
   140       <profile>
   141           <id>bck2brwsr</id>
   142           <activation>
   143               <property>
   144                   <name>brwsr</name>
   145                   <value>bck2brwsr</value>
   146               </property>
   147           </activation>
   148           <build>
   149               <plugins>
   150                   <plugin>
   151                       <groupId>org.apidesign.bck2brwsr</groupId>
   152                       <artifactId>bck2brwsr-maven-plugin</artifactId>
   153                       <version>${bck2brwsr.version}</version>
   154                       <executions>
   155                           <execution>
   156                               <goals>
   157                                   <goal>brwsr</goal>
   158                               </goals>
   159                           </execution>
   160                       </executions>
   161                       <configuration>
   162                           <directory>${basedir}/src/main/webapp/</directory>
   163                           <startpage>${brwsr.startpage}</startpage>
   164                       </configuration>
   165                   </plugin>
   166                   <plugin>
   167                       <groupId>org.apache.maven.plugins</groupId>
   168                       <artifactId>maven-compiler-plugin</artifactId>
   169                       <configuration>
   170                           <compilerArguments>
   171                               <bootclasspath>netbeans.ignore.jdk.bootclasspath</bootclasspath>
   172                           </compilerArguments>
   173                       </configuration>
   174                   </plugin>
   175                   <plugin>
   176                       <artifactId>maven-assembly-plugin</artifactId>
   177                       <version>2.4</version>
   178                       <executions>
   179                           <execution>
   180                               <id>distro-assembly</id>
   181                               <phase>package</phase>
   182                               <goals>
   183                                   <goal>single</goal>
   184                               </goals>
   185                               <configuration>
   186                                   <descriptors>
   187                                       <descriptor>src/main/assembly/bck2brwsr.xml</descriptor>
   188                                   </descriptors>
   189                               </configuration>
   190                           </execution>
   191                       </executions>                
   192                   </plugin>      
   193               </plugins>
   194           </build>
   195           <dependencies>
   196               <dependency>
   197                   <groupId>org.apidesign.bck2brwsr</groupId>
   198                   <artifactId>emul</artifactId>
   199                   <version>${bck2brwsr.version}</version>
   200                   <classifier>rt</classifier>
   201               </dependency>
   202               <dependency>
   203                   <groupId>org.apidesign.bck2brwsr</groupId>
   204                   <artifactId>ko-bck2brwsr</artifactId>
   205                   <version>${bck2brwsr.version}</version>
   206                   <scope>runtime</scope>
   207               </dependency>
   208               <dependency>
   209                   <groupId>org.apidesign.bck2brwsr</groupId>
   210                   <artifactId>vm4brwsr</artifactId>
   211                   <classifier>js</classifier>
   212                   <type>zip</type>
   213                   <version>${bck2brwsr.version}</version>
   214                   <scope>provided</scope>
   215               </dependency>
   216           </dependencies>
   217       </profile>
   218       <profile>
   219           <id>dlvkbrwsr</id>
   220           <properties>
   221               <platform.version>4.1.1.4</platform.version>
   222               <android.plugin.version>3.7.0</android.plugin.version>
   223               <debug>false</debug>
   224           </properties>
   225           <dependencies>
   226               <dependency>
   227                   <groupId>com.google.android</groupId>
   228                   <artifactId>android</artifactId>
   229                   <version>${platform.version}</version>
   230                   <scope>provided</scope>
   231               </dependency>
   232               <dependency>
   233                   <groupId>org.apidesign.brwsr</groupId>
   234                   <artifactId>dlvkbrwsr</artifactId>
   235                   <version>0.5</version>
   236                   <type>jar</type>
   237               </dependency>
   238               <dependency>
   239                   <groupId>org.netbeans.html</groupId>
   240                   <artifactId>ko-ws-tyrus</artifactId>
   241                   <version>${net.java.html.version}</version>
   242                   <exclusions>
   243                       <exclusion>
   244                           <artifactId>org.json-osgi</artifactId>
   245                           <groupId>de.twentyeleven.skysail</groupId>
   246                       </exclusion>
   247                   </exclusions>
   248               </dependency>
   249           </dependencies>
   250           <build>
   251               <plugins>
   252                   <plugin>
   253                       <groupId>com.jayway.maven.plugins.android.generation2</groupId>
   254                       <artifactId>android-maven-plugin</artifactId>
   255                       <version>${android.plugin.version}</version>
   256                       <extensions>true</extensions>
   257                       <configuration>
   258                           <classifier>apk</classifier>
   259                           <attachJar>false</attachJar>
   260                           <apkDebug>debug</apkDebug>
   261                           <assetsDirectory>src/main/webapp</assetsDirectory>
   262                           <sdk>
   263                               <platform>16</platform>
   264                           </sdk>
   265                           <apk>
   266                               <metaIncludes>
   267                                   <metaInclude>services/org.apidesign.**</metaInclude>
   268                               </metaIncludes>
   269                           </apk>
   270                           <extractDuplicates>true</extractDuplicates>
   271                           <file>${project.build.directory}/${project.build.finalName}.apk</file>
   272                       </configuration>
   273                       <executions>
   274                           <execution>
   275                               <id>apk</id>
   276                               <goals>
   277                                   <goal>apk</goal>
   278                                   <goal>dex</goal>
   279                               </goals>
   280                           </execution>
   281                       </executions>
   282                   </plugin>
   283                   <plugin>
   284                       <groupId>org.apache.maven.plugins</groupId>
   285                       <artifactId>maven-install-plugin</artifactId>
   286                       <version>2.5.1</version>
   287                       <configuration>
   288                           <groupId>${project.groupId}</groupId>
   289                           <artifactId>${project.artifactId}</artifactId>
   290                           <version>${project.version}</version>
   291                           <file>${project.build.directory}/${project.build.finalName}.apk</file>
   292                           <packaging>apk</packaging>
   293                           <skip>true</skip>
   294                       </configuration>
   295                       <executions>
   296                           <execution>
   297                               <id>install-apk</id>
   298                               <phase>install</phase>
   299                               <goals>
   300                                   <goal>install-file</goal>
   301                               </goals>
   302                           </execution>
   303                       </executions>
   304                   </plugin>
   305               </plugins>
   306           </build>
   307           
   308       </profile>
   309       <profile>
   310           <id>nbrwsr</id>
   311           <dependencies>
   312               <dependency>
   313                   <groupId>org.netbeans.html.nbrwsr</groupId>
   314                   <artifactId>api</artifactId>
   315                   <version>0.1-SNAPSHOT</version>
   316                   <scope>compile</scope>
   317               </dependency>
   318           </dependencies>
   319           <build>
   320               <plugins>
   321                   <plugin>
   322                       <groupId>org.codehaus.mojo</groupId>
   323                       <artifactId>nbm-maven-plugin</artifactId>
   324                       <version>3.13</version>
   325                       <extensions>true</extensions>
   326                       <executions>
   327                           <execution>
   328                               <id>default-manifest</id>
   329                               <phase>process-classes</phase>
   330                               <goals>
   331                                   <goal>manifest</goal>
   332                               </goals>
   333                               <configuration>
   334                                   <useOSGiDependencies>true</useOSGiDependencies>
   335                                   <brandingToken>html4j4nb</brandingToken>
   336                                   <cluster>html4j4nb</cluster>
   337                                   <verifyIntegrity>false</verifyIntegrity>
   338                               </configuration>
   339                           </execution>                       
   340                           <execution>
   341                               <id>default-nbm</id>
   342                               <phase>package</phase>
   343                               <goals>
   344                                   <goal>nbm</goal>
   345                               </goals>
   346                               <configuration>
   347                                   <useOSGiDependencies>true</useOSGiDependencies>
   348                                   <cluster>html4j4nb</cluster>
   349                                   <verifyIntegrity>false</verifyIntegrity>
   350                               </configuration>
   351                           </execution>
   352                       </executions>
   353                       <configuration>
   354                           <useOSGiDependencies>true</useOSGiDependencies>
   355                           <brandingToken>html4j4nb</brandingToken>
   356                           <cluster>html4j4nb</cluster>
   357                           <verifyIntegrity>false</verifyIntegrity>
   358                       </configuration>
   359                   </plugin>                      
   360 
   361                   <plugin>
   362                       <groupId>org.apache.maven.plugins</groupId>
   363                       <artifactId>maven-jar-plugin</artifactId>
   364                       <configuration>
   365                           <!-- to have the jar plugin pickup the nbm generated manifest -->
   366                           <useDefaultManifestFile>true</useDefaultManifestFile>
   367                       </configuration>
   368                   </plugin>
   369               </plugins>
   370           </build>
   371       </profile>      
   372   </profiles>  
   373 </project>