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