chess/pom.xml
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Mon, 23 Feb 2015 10:34:39 +0100
branchteavm
changeset 233 908708015f61
parent 105 ea79b73d590a
child 243 64b15a1fb456
permissions -rw-r--r--
Simplifying execution of TeaVM version. Use: mvn -Pteabrwsr clean package bck2brwsr:brwsr
jtulach@38
     1
<?xml version="1.0" encoding="UTF-8"?>
jtulach@38
     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@38
     3
  <modelVersion>4.0.0</modelVersion>
jaroslav@49
     4
    <parent>
jtulach@57
     5
        <artifactId>demo</artifactId>
jtulach@57
     6
        <groupId>org.apidesign.html</groupId>
jaroslav@49
     7
        <version>1.0-SNAPSHOT</version>
jaroslav@49
     8
    </parent>
jtulach@38
     9
jaroslav@51
    10
  <groupId>org.apidesign.html.demo</groupId>
jaroslav@51
    11
  <artifactId>chessdemo</artifactId>
jtulach@38
    12
  <version>1.0-SNAPSHOT</version>
jtulach@38
    13
  <packaging>jar</packaging>
jtulach@38
    14
jaroslav@49
    15
  <name>Chess_HTML_Java_Client</name>
jtulach@38
    16
jtulach@38
    17
  <repositories>
jtulach@38
    18
      <repository>
jtulach@38
    19
          <id>netbeans</id>
jtulach@38
    20
          <name>NetBeans</name>
jtulach@38
    21
          <url>http://bits.netbeans.org/maven2/</url>
jtulach@38
    22
      </repository>
jtulach@38
    23
  </repositories>
jtulach@38
    24
  <pluginRepositories>
jtulach@38
    25
      <pluginRepository>
jtulach@38
    26
          <id>ios</id>
jtulach@38
    27
          <name>NetBeans iOS Maven Plugin</name>
jtulach@38
    28
          <url>http://beetle.cz.oracle.com/~jtulach/maven/</url>
jtulach@38
    29
          <snapshots>
jtulach@38
    30
          </snapshots>
jtulach@38
    31
      </pluginRepository>
jtulach@38
    32
  </pluginRepositories>
jtulach@38
    33
jtulach@38
    34
  <properties>
jtulach@38
    35
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
jtulach@38
    36
    <netbeans.compile.on.save>none</netbeans.compile.on.save>
jtulach@60
    37
    <bck2brwsr.launcher.version>${bck2brwsr.version}</bck2brwsr.launcher.version>
jaroslav@49
    38
    <bck2brwsr.obfuscationlevel>MINIMAL</bck2brwsr.obfuscationlevel>
jaroslav@49
    39
    <brwsr.startpage>pages/index.html</brwsr.startpage>
jtulach@38
    40
  </properties>
jtulach@38
    41
  <build>
jtulach@38
    42
      <plugins>
jtulach@38
    43
          <plugin>
jtulach@38
    44
              <groupId>org.apache.maven.plugins</groupId>
jtulach@38
    45
              <artifactId>maven-compiler-plugin</artifactId>
jtulach@38
    46
              <version>2.3.2</version>
jtulach@38
    47
              <configuration>
jtulach@38
    48
                  <source>1.7</source>
jtulach@38
    49
                  <target>1.7</target>
jtulach@38
    50
              </configuration>
jtulach@38
    51
          </plugin>
jtulach@38
    52
          <plugin>
jtulach@38
    53
              <groupId>org.apache.maven.plugins</groupId>
jtulach@38
    54
              <artifactId>maven-jar-plugin</artifactId>
jtulach@38
    55
              <version>2.4</version>
jtulach@38
    56
              <configuration>
jtulach@38
    57
                  <archive>
jtulach@38
    58
                      <manifest>
jtulach@57
    59
                          <mainClass>org.netbeans.html.demo.chess.Main</mainClass>
jtulach@38
    60
                          <addClasspath>true</addClasspath>
jtulach@38
    61
                          <classpathPrefix>lib/</classpathPrefix>
jtulach@38
    62
                      </manifest>
jtulach@38
    63
                  </archive>
jtulach@38
    64
              </configuration>
jtulach@38
    65
          </plugin>
jtulach@38
    66
          <plugin>
jtulach@38
    67
              <groupId>org.codehaus.mojo</groupId>
jtulach@38
    68
              <artifactId>exec-maven-plugin</artifactId>
jtulach@38
    69
              <version>1.2.1</version>
jtulach@38
    70
              <configuration>
jtulach@38
    71
                  <systemProperties>
jtulach@38
    72
                      <systemProperty>
jtulach@38
    73
                          <key>browser.rootdir</key>
jtulach@38
    74
                          <value>${basedir}/src/main/webapp/</value>
jtulach@38
    75
                      </systemProperty>
jtulach@38
    76
                  </systemProperties>
jtulach@57
    77
                  <mainClass>org.netbeans.html.demo.chess.Main</mainClass>
jtulach@38
    78
              </configuration>
jtulach@38
    79
          </plugin>      
jtulach@38
    80
          <plugin>
jtulach@38
    81
              <artifactId>maven-assembly-plugin</artifactId>
jtulach@38
    82
              <version>2.4</version>
jtulach@38
    83
              <executions>
jtulach@38
    84
                  <execution>
jtulach@38
    85
                      <id>distro-assembly</id>
jtulach@38
    86
                      <phase>package</phase>
jtulach@38
    87
                      <goals>
jtulach@38
    88
                          <goal>single</goal>
jtulach@38
    89
                      </goals>
jtulach@38
    90
                      <configuration>
jtulach@38
    91
                          <descriptors>
jtulach@38
    92
                              <descriptor>src/main/assembly/html.java.net.xml</descriptor>
jtulach@38
    93
                          </descriptors>
jtulach@38
    94
                      </configuration>
jtulach@38
    95
                  </execution>
jtulach@38
    96
              </executions>                
jaroslav@49
    97
          </plugin>
jaroslav@49
    98
         <plugin>
jaroslav@49
    99
            <artifactId>ios-maven-plugin</artifactId>
jaroslav@49
   100
            <groupId>org.netbeans.ios</groupId>
jaroslav@49
   101
            <version>0.4</version>
jaroslav@49
   102
            <configuration>
jaroslav@49
   103
               <targetDevices>1</targetDevices>
jaroslav@49
   104
               <deploymentTarget>6.1</deploymentTarget>
jaroslav@49
   105
               <bundleId>JavaOneChess</bundleId>
jaroslav@49
   106
               <provisioningProfile></provisioningProfile>
jaroslav@49
   107
               <supportedInterfaceOrientations>UIInterfaceOrientationLandscapeLeft,UIInterfaceOrientationPortrait,UIInterfaceOrientationLandscapeRight,UIInterfaceOrientationPortraitUpsideDown</supportedInterfaceOrientations>
jaroslav@49
   108
               <prerenderedIcons>false</prerenderedIcons>
jaroslav@49
   109
               <iPadSupportedInterfaceOrientations>UIInterfaceOrientationLandscapeLeft,UIInterfaceOrientationPortrait,UIInterfaceOrientationLandscapeRight,UIInterfaceOrientationPortraitUpsideDown</iPadSupportedInterfaceOrientations>
jaroslav@49
   110
            </configuration>
jaroslav@49
   111
         </plugin>
jtulach@38
   112
      </plugins>
jtulach@38
   113
  </build>
jtulach@38
   114
  <dependencies>
jtulach@38
   115
    <dependency>
jtulach@57
   116
        <groupId>org.netbeans.html</groupId>
jtulach@38
   117
        <artifactId>net.java.html.json</artifactId>
jtulach@38
   118
        <version>${net.java.html.version}</version>
jtulach@38
   119
    </dependency>
jtulach@38
   120
    <dependency>
jtulach@57
   121
        <groupId>org.netbeans.html</groupId>
jtulach@38
   122
        <artifactId>net.java.html.boot</artifactId>
jtulach@38
   123
        <version>${net.java.html.version}</version>
jtulach@38
   124
    </dependency>
jtulach@38
   125
    <dependency>
jtulach@38
   126
      <groupId>org.testng</groupId>
jtulach@38
   127
      <artifactId>testng</artifactId>
jtulach@38
   128
      <version>6.7</version>
jtulach@38
   129
      <scope>test</scope>
jtulach@38
   130
    </dependency>
jaroslav@49
   131
    <dependency>
jtulach@57
   132
      <groupId>org.netbeans.html</groupId>
jaroslav@49
   133
      <artifactId>net.java.html.sound</artifactId>
jaroslav@49
   134
      <version>${net.java.html.version}</version>
jaroslav@49
   135
      <type>jar</type>
jaroslav@49
   136
    </dependency>
jaroslav@49
   137
    <dependency>
jaroslav@49
   138
      <groupId>org.apidesign.bck2brwsr</groupId>
jaroslav@49
   139
      <artifactId>core</artifactId>
jaroslav@49
   140
      <version>${bck2brwsr.version}</version>
jaroslav@49
   141
      <scope>provided</scope>
jaroslav@49
   142
      <type>jar</type>
jaroslav@49
   143
    </dependency>
jtulach@105
   144
    <dependency>
jtulach@105
   145
      <groupId>org.netbeans.html</groupId>
jtulach@105
   146
      <artifactId>ko4j</artifactId>
jtulach@105
   147
      <version>${net.java.html.version}</version>
jtulach@105
   148
    </dependency>
jtulach@38
   149
  </dependencies>
jtulach@38
   150
  <profiles>
jtulach@38
   151
      <profile>
jaroslav@49
   152
          <id>fxbrwsr</id>
jtulach@38
   153
          <activation>
jaroslav@49
   154
              <activeByDefault>true</activeByDefault>
jtulach@38
   155
          </activation>
jtulach@38
   156
          <dependencies>
jtulach@38
   157
              <dependency>
jtulach@57
   158
                  <groupId>org.netbeans.html</groupId>
jtulach@57
   159
                  <artifactId>ko4j</artifactId>
jtulach@38
   160
                  <version>${net.java.html.version}</version>
jaroslav@49
   161
                  <scope>runtime</scope>
jaroslav@49
   162
              </dependency>
jaroslav@49
   163
              <dependency>
jtulach@57
   164
                  <groupId>org.netbeans.html</groupId>
jtulach@57
   165
                  <artifactId>net.java.html.boot.fx</artifactId>
jaroslav@49
   166
                  <version>${net.java.html.version}</version>
jaroslav@49
   167
                  <scope>runtime</scope>
jaroslav@49
   168
              </dependency>
jaroslav@49
   169
              <dependency>
jtulach@57
   170
                  <groupId>org.netbeans.html</groupId>
jaroslav@49
   171
                  <artifactId>ko-ws-tyrus</artifactId>
jaroslav@49
   172
                  <scope>runtime</scope>
jaroslav@49
   173
                  <version>${net.java.html.version}</version>
jaroslav@49
   174
              </dependency>
jaroslav@49
   175
          </dependencies>
jaroslav@49
   176
      </profile>
jaroslav@49
   177
      <profile>
jaroslav@49
   178
          <id>bck2brwsr</id>
jaroslav@49
   179
          <activation>
jaroslav@49
   180
              <property>
jaroslav@49
   181
                  <name>brwsr</name>
jaroslav@49
   182
                  <value>bck2brwsr</value>
jaroslav@49
   183
              </property>
jaroslav@49
   184
          </activation>
jaroslav@49
   185
          <build>
jaroslav@49
   186
              <plugins>
jaroslav@49
   187
                  <plugin>
jaroslav@49
   188
                      <groupId>org.apidesign.bck2brwsr</groupId>
jaroslav@49
   189
                      <artifactId>bck2brwsr-maven-plugin</artifactId>
jaroslav@49
   190
                      <version>${bck2brwsr.launcher.version}</version>
jaroslav@49
   191
                      <executions>
jaroslav@49
   192
                          <execution>
jaroslav@49
   193
                              <goals>
jaroslav@49
   194
                                  <goal>brwsr</goal>
jaroslav@49
   195
                              </goals>
jaroslav@49
   196
                          </execution>
jaroslav@49
   197
                      </executions>
jaroslav@49
   198
                      <configuration>
jaroslav@49
   199
                          <directory>${basedir}/src/main/webapp/</directory>
jaroslav@49
   200
                          <startpage>${brwsr.startpage}</startpage>
jaroslav@49
   201
                          <launcher>${brwsr}</launcher>
jaroslav@49
   202
                          <javascript>${project.build.directory}/bck2brwsr.js</javascript>
jaroslav@49
   203
                          <obfuscation>${bck2brwsr.obfuscationlevel}</obfuscation>
jaroslav@49
   204
                      </configuration>
jaroslav@49
   205
                  </plugin>
jaroslav@49
   206
                  <plugin>
jaroslav@49
   207
                      <groupId>org.apache.maven.plugins</groupId>
jaroslav@49
   208
                      <artifactId>maven-compiler-plugin</artifactId>
jaroslav@49
   209
                      <configuration>
jaroslav@49
   210
                          <compilerArguments>
jaroslav@49
   211
                              <!--
jaroslav@49
   212
                              <bootclasspath>netbeans.ignore.jdk.bootclasspath</bootclasspath>
jaroslav@49
   213
                              -->
jaroslav@49
   214
                          </compilerArguments>
jaroslav@49
   215
                      </configuration>
jaroslav@49
   216
                  </plugin>
jaroslav@49
   217
                  <plugin>
jaroslav@49
   218
                      <artifactId>maven-assembly-plugin</artifactId>
jaroslav@49
   219
                      <version>2.4</version>
jaroslav@49
   220
                      <executions>
jaroslav@49
   221
                          <execution>
jaroslav@49
   222
                              <id>distro-assembly</id>
jaroslav@49
   223
                              <phase>package</phase>
jaroslav@49
   224
                              <goals>
jaroslav@49
   225
                                  <goal>single</goal>
jaroslav@49
   226
                              </goals>
jaroslav@49
   227
                              <configuration>
jaroslav@49
   228
                                  <descriptors>
jaroslav@49
   229
                                      <descriptor>src/main/assembly/bck2brwsr.xml</descriptor>
jaroslav@49
   230
                                  </descriptors>
jaroslav@49
   231
                              </configuration>
jaroslav@49
   232
                          </execution>
jaroslav@49
   233
                      </executions>                
jaroslav@49
   234
                  </plugin>      
jaroslav@49
   235
              </plugins>
jaroslav@49
   236
          </build>
jaroslav@49
   237
          <dependencies>
jaroslav@49
   238
              <dependency>
jaroslav@49
   239
                  <groupId>org.apidesign.bck2brwsr</groupId>
jaroslav@49
   240
                  <artifactId>emul</artifactId>
jaroslav@49
   241
                  <version>${bck2brwsr.version}</version>
jaroslav@49
   242
                  <classifier>rt</classifier>
jaroslav@49
   243
              </dependency>
jaroslav@49
   244
              <dependency>
jaroslav@49
   245
                  <groupId>org.apidesign.bck2brwsr</groupId>
jaroslav@49
   246
                  <artifactId>ko-bck2brwsr</artifactId>
jaroslav@49
   247
                  <version>${bck2brwsr.version}</version>
jaroslav@49
   248
                  <scope>runtime</scope>
jaroslav@49
   249
              </dependency>
jaroslav@49
   250
              <dependency>
jaroslav@49
   251
                  <groupId>org.apidesign.bck2brwsr</groupId>
jaroslav@49
   252
                  <artifactId>vm4brwsr</artifactId>
jaroslav@49
   253
                  <classifier>js</classifier>
jaroslav@49
   254
                  <type>zip</type>
jaroslav@49
   255
                  <version>${bck2brwsr.version}</version>
jaroslav@49
   256
                  <scope>provided</scope>
jtulach@38
   257
              </dependency>
jtulach@38
   258
          </dependencies>
jtulach@38
   259
      </profile>
jtulach@105
   260
      <profile>
jtulach@105
   261
          <id>teabrwsr</id>
jtulach@105
   262
          <build>
jtulach@105
   263
              <plugins>
jtulach@105
   264
                  <plugin>
jtulach@105
   265
                      <groupId>org.teavm</groupId>
jtulach@105
   266
                      <artifactId>teavm-maven-plugin</artifactId>
jtulach@115
   267
                      <version>${teavm.version}</version>
jtulach@105
   268
                      <dependencies>
jtulach@105
   269
                          <dependency>
jtulach@105
   270
                              <groupId>org.teavm</groupId>
jtulach@105
   271
                              <artifactId>teavm-classlib</artifactId>
jtulach@115
   272
                              <version>${teavm.version}</version>
jtulach@105
   273
                          </dependency>
jtulach@105
   274
                          <!-- This module adds html4j support. It mainly includes JavaScriptBuilder support.
jtulach@105
   275
                          Also there are some little patches to JCL emulation, that are required to pass TCK -->
jtulach@105
   276
                          <dependency>
jtulach@105
   277
                              <groupId>org.teavm</groupId>
jtulach@105
   278
                              <artifactId>teavm-html4j</artifactId>
jtulach@115
   279
                              <version>${teavm.version}</version>
jtulach@105
   280
                          </dependency>
jtulach@105
   281
                      </dependencies>
jtulach@105
   282
                      <executions>
jtulach@105
   283
                          <execution>
jtulach@105
   284
                              <id>generate-minesweeper</id>
jtulach@105
   285
                              <goals>
jtulach@105
   286
                                  <goal>build-javascript</goal>
jtulach@105
   287
                              </goals>
jtulach@105
   288
                              <phase>process-classes</phase>
jtulach@105
   289
                              <configuration>
jtulach@105
   290
                                  <!-- Whether we want TeaVM to minify (obfuscate) the generated JavaScript -->
jtulach@105
   291
                                  <minifying>false</minifying>
jtulach@105
   292
                                  <properties>
jtulach@105
   293
                                      <!-- This classes (separated with , ; space) will be available through vm.loadClass() -->
jtulach@105
   294
                                      <html4j.entryPoints>org.apidesign.html.demo.chess.LoadMain</html4j.entryPoints>
jtulach@105
   295
                                  </properties>
jtulach@105
   296
                                  <!-- Don't include main page - we created it by ourselves -->
jtulach@105
   297
                                  <mainPageIncluded>false</mainPageIncluded>
jtulach@105
   298
                                  <!-- Merge runtime.js instead of putting as a separate file -->
jtulach@105
   299
                                  <runtime>MERGED</runtime>
jtulach@105
   300
                                  <!-- Name of the generated file -->
jtulach@105
   301
                                  <targetFileName>bck2brwsr.js</targetFileName>
jtulach@105
   302
                                  <targetDirectory>${project.build.directory}/teavm</targetDirectory>
jtulach@105
   303
                                  <!-- This transformer adds null checks before virtual calls. It is not included
jtulach@105
   304
                                  by default as we don't always need these null checks -->
jtulach@105
   305
                                  <transformers>
jtulach@105
   306
                                      <param>org.teavm.javascript.NullPointerExceptionTransformer</param>
jtulach@105
   307
                                  </transformers>
jtulach@105
   308
                              </configuration>
jtulach@105
   309
                          </execution>
jtulach@105
   310
                      </executions>
jtulach@105
   311
                  </plugin>
jtulach@105
   312
                  <plugin>
jtulach@105
   313
                      <artifactId>maven-assembly-plugin</artifactId>
jtulach@105
   314
                      <version>2.4</version>
jtulach@105
   315
                      <executions>
jtulach@105
   316
                          <execution>
jtulach@105
   317
                              <id>distro-assembly</id>
jtulach@105
   318
                              <phase>package</phase>
jtulach@105
   319
                              <goals>
jtulach@105
   320
                                  <goal>single</goal>
jtulach@105
   321
                              </goals>
jtulach@105
   322
                              <configuration>
jtulach@105
   323
                                  <descriptors>
jtulach@105
   324
                                      <descriptor>src/main/assembly/teabrwsr.xml</descriptor>
jtulach@105
   325
                                  </descriptors>
jtulach@105
   326
                              </configuration>
jtulach@105
   327
                          </execution>
jtulach@105
   328
                      </executions>                
jtulach@105
   329
                  </plugin>      
jtulach@105
   330
              </plugins>
jtulach@105
   331
          </build>
jtulach@105
   332
      </profile>
jtulach@38
   333
  </profiles>
jtulach@38
   334
</project>