minesweeper/pom.xml
author Jaroslav Tulach <jtulach@netbeans.org>
Sun, 16 Mar 2014 09:26:09 +0100
changeset 110 fcdfcb9998eb
parent 107 f8f222243d3c
child 111 2c3e79e7d61c
child 116 4dce5ea7e13a
permissions -rw-r--r--
The plugin would really benefit from ability to concatenate the META-INF/services/*
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@63
    26
              <groupId>org.apache.maven.plugins</groupId>
jtulach@63
    27
              <artifactId>maven-compiler-plugin</artifactId>
jtulach@63
    28
              <version>2.3.2</version>
jtulach@63
    29
              <configuration>
jtulach@63
    30
                  <source>1.6</source>
jtulach@63
    31
                  <target>1.6</target>
jtulach@63
    32
              </configuration>
jtulach@63
    33
          </plugin>
jtulach@63
    34
          <plugin>
jtulach@63
    35
              <groupId>org.apache.maven.plugins</groupId>
jtulach@63
    36
              <artifactId>maven-jar-plugin</artifactId>
jtulach@63
    37
              <version>2.4</version>
jtulach@63
    38
              <configuration>
jtulach@63
    39
                  <archive>
jtulach@63
    40
                      <manifest>
jtulach@63
    41
                          <mainClass>${project.mainclass}</mainClass>
jtulach@63
    42
                          <addClasspath>true</addClasspath>
jtulach@63
    43
                          <classpathPrefix>lib/</classpathPrefix>
jtulach@63
    44
                      </manifest>
jtulach@63
    45
                  </archive>
jtulach@63
    46
              </configuration>
jtulach@63
    47
          </plugin>
jtulach@63
    48
          <plugin>
jtulach@63
    49
              <groupId>org.codehaus.mojo</groupId>
jtulach@63
    50
              <artifactId>exec-maven-plugin</artifactId>
jtulach@63
    51
              <version>1.2.1</version>
jtulach@63
    52
              <configuration>
jtulach@63
    53
                  <systemProperties>
jtulach@63
    54
                      <systemProperty>
jtulach@63
    55
                          <key>browser.rootdir</key>
jtulach@63
    56
                          <value>${basedir}/src/main/webapp/</value>
jtulach@63
    57
                      </systemProperty>
jtulach@63
    58
                  </systemProperties>
jtulach@63
    59
                  <mainClass>${project.mainclass}</mainClass>
jtulach@63
    60
              </configuration>
jtulach@63
    61
          </plugin>      
jtulach@63
    62
      </plugins>
jtulach@63
    63
  </build>
jtulach@63
    64
  <dependencies>
jtulach@63
    65
    <dependency>
jtulach@63
    66
        <groupId>org.netbeans.html</groupId>
jtulach@63
    67
        <artifactId>net.java.html.json</artifactId>
jtulach@63
    68
        <version>${net.java.html.version}</version>
jtulach@63
    69
    </dependency>
jtulach@63
    70
    <dependency>
jtulach@63
    71
        <groupId>org.netbeans.html</groupId>
jtulach@63
    72
        <artifactId>net.java.html.boot</artifactId>
jtulach@63
    73
        <version>${net.java.html.version}</version>
jtulach@63
    74
    </dependency>
jtulach@63
    75
    <dependency>
jtulach@79
    76
        <groupId>org.netbeans.html</groupId>
jtulach@79
    77
        <artifactId>net.java.html.sound</artifactId>
jtulach@79
    78
        <version>${net.java.html.version}</version>
jtulach@79
    79
    </dependency>
jtulach@79
    80
    <dependency>
jtulach@81
    81
        <groupId>org.netbeans.html</groupId>
jtulach@81
    82
        <artifactId>ko4j</artifactId>
jtulach@81
    83
        <version>${net.java.html.version}</version>
jtulach@81
    84
    </dependency>
jtulach@81
    85
    <dependency>
jtulach@63
    86
      <groupId>org.testng</groupId>
jtulach@63
    87
      <artifactId>testng</artifactId>
jtulach@63
    88
      <version>6.7</version>
jtulach@63
    89
      <scope>test</scope>
jtulach@63
    90
    </dependency>
jtulach@63
    91
  </dependencies>
jtulach@63
    92
  <profiles>
jtulach@63
    93
      <profile>
jtulach@63
    94
          <id>fxbrwsr</id>
jtulach@63
    95
          <activation>
jtulach@63
    96
              <activeByDefault>true</activeByDefault>
jtulach@63
    97
          </activation>
jtulach@63
    98
          <build>
jtulach@63
    99
            <plugins>
jtulach@63
   100
                <plugin>
jtulach@63
   101
                    <artifactId>maven-assembly-plugin</artifactId>
jtulach@63
   102
                    <version>2.4</version>
jtulach@63
   103
                    <executions>
jtulach@63
   104
                        <execution>
jtulach@63
   105
                            <id>distro-assembly</id>
jtulach@63
   106
                            <phase>package</phase>
jtulach@63
   107
                            <goals>
jtulach@63
   108
                                <goal>single</goal>
jtulach@63
   109
                            </goals>
jtulach@63
   110
                            <configuration>
jtulach@63
   111
                                <descriptors>
jtulach@63
   112
                                    <descriptor>src/main/assembly/html.java.net.xml</descriptor>
jtulach@63
   113
                                </descriptors>
jtulach@63
   114
                            </configuration>
jtulach@63
   115
                        </execution>
jtulach@63
   116
                    </executions>                
jtulach@63
   117
                </plugin>      
jtulach@63
   118
            </plugins>
jtulach@63
   119
          </build>
jtulach@63
   120
          <dependencies>
jtulach@63
   121
            <dependency>
jtulach@63
   122
                <groupId>org.netbeans.html</groupId>
jtulach@63
   123
                <artifactId>net.java.html.boot.fx</artifactId>
jtulach@63
   124
                <version>${net.java.html.version}</version>
jtulach@63
   125
                <scope>runtime</scope>
jtulach@63
   126
            </dependency>
jtulach@63
   127
          </dependencies>
jtulach@63
   128
      </profile>
jtulach@63
   129
      <profile>
jtulach@63
   130
          <id>bck2brwsr</id>
jtulach@63
   131
          <activation>
jtulach@63
   132
              <property>
jtulach@63
   133
                  <name>brwsr</name>
jtulach@63
   134
                  <value>bck2brwsr</value>
jtulach@63
   135
              </property>
jtulach@63
   136
          </activation>
jtulach@63
   137
          <build>
jtulach@63
   138
              <plugins>
jtulach@63
   139
                  <plugin>
jtulach@63
   140
                      <groupId>org.apidesign.bck2brwsr</groupId>
jtulach@63
   141
                      <artifactId>bck2brwsr-maven-plugin</artifactId>
jtulach@63
   142
                      <version>${bck2brwsr.version}</version>
jtulach@63
   143
                      <executions>
jtulach@63
   144
                          <execution>
jtulach@63
   145
                              <goals>
jtulach@63
   146
                                  <goal>brwsr</goal>
jtulach@63
   147
                              </goals>
jtulach@63
   148
                          </execution>
jtulach@63
   149
                      </executions>
jtulach@63
   150
                      <configuration>
jtulach@63
   151
                          <directory>${basedir}/src/main/webapp/</directory>
jtulach@63
   152
                          <startpage>${brwsr.startpage}</startpage>
jtulach@63
   153
                      </configuration>
jtulach@63
   154
                  </plugin>
jtulach@63
   155
                  <plugin>
jtulach@63
   156
                      <groupId>org.apache.maven.plugins</groupId>
jtulach@63
   157
                      <artifactId>maven-compiler-plugin</artifactId>
jtulach@63
   158
                      <configuration>
jtulach@63
   159
                          <compilerArguments>
jtulach@63
   160
                              <bootclasspath>netbeans.ignore.jdk.bootclasspath</bootclasspath>
jtulach@63
   161
                          </compilerArguments>
jtulach@63
   162
                      </configuration>
jtulach@63
   163
                  </plugin>
jtulach@63
   164
                  <plugin>
jtulach@63
   165
                      <artifactId>maven-assembly-plugin</artifactId>
jtulach@63
   166
                      <version>2.4</version>
jtulach@63
   167
                      <executions>
jtulach@63
   168
                          <execution>
jtulach@63
   169
                              <id>distro-assembly</id>
jtulach@63
   170
                              <phase>package</phase>
jtulach@63
   171
                              <goals>
jtulach@63
   172
                                  <goal>single</goal>
jtulach@63
   173
                              </goals>
jtulach@63
   174
                              <configuration>
jtulach@63
   175
                                  <descriptors>
jtulach@63
   176
                                      <descriptor>src/main/assembly/bck2brwsr.xml</descriptor>
jtulach@63
   177
                                  </descriptors>
jtulach@63
   178
                              </configuration>
jtulach@63
   179
                          </execution>
jtulach@63
   180
                      </executions>                
jtulach@63
   181
                  </plugin>      
jtulach@63
   182
              </plugins>
jtulach@63
   183
          </build>
jtulach@63
   184
          <dependencies>
jtulach@63
   185
              <dependency>
jtulach@63
   186
                  <groupId>org.apidesign.bck2brwsr</groupId>
jtulach@63
   187
                  <artifactId>emul</artifactId>
jtulach@63
   188
                  <version>${bck2brwsr.version}</version>
jtulach@63
   189
                  <classifier>rt</classifier>
jtulach@63
   190
              </dependency>
jtulach@63
   191
              <dependency>
jtulach@63
   192
                  <groupId>org.apidesign.bck2brwsr</groupId>
jtulach@63
   193
                  <artifactId>ko-bck2brwsr</artifactId>
jtulach@63
   194
                  <version>${bck2brwsr.version}</version>
jtulach@63
   195
                  <scope>runtime</scope>
jtulach@63
   196
              </dependency>
jtulach@63
   197
              <dependency>
jtulach@63
   198
                  <groupId>org.apidesign.bck2brwsr</groupId>
jtulach@63
   199
                  <artifactId>vm4brwsr</artifactId>
jtulach@63
   200
                  <classifier>js</classifier>
jtulach@63
   201
                  <type>zip</type>
jtulach@63
   202
                  <version>${bck2brwsr.version}</version>
jtulach@63
   203
                  <scope>provided</scope>
jtulach@63
   204
              </dependency>
jtulach@63
   205
          </dependencies>
jtulach@63
   206
      </profile>
jtulach@81
   207
      <profile>
jtulach@81
   208
          <id>dlvkbrwsr</id>
jtulach@81
   209
          <properties>
jtulach@81
   210
              <platform.version>4.1.1.4</platform.version>
jtulach@81
   211
              <android.plugin.version>3.7.0</android.plugin.version>
jtulach@81
   212
              <debug>false</debug>
jtulach@81
   213
          </properties>
jtulach@81
   214
          <dependencies>
jtulach@81
   215
              <dependency>
jtulach@81
   216
                  <groupId>com.google.android</groupId>
jtulach@81
   217
                  <artifactId>android</artifactId>
jtulach@81
   218
                  <version>${platform.version}</version>
jtulach@81
   219
                  <scope>provided</scope>
jtulach@81
   220
              </dependency>
jtulach@81
   221
              <dependency>
jtulach@107
   222
                  <groupId>org.apidesign.brwsr</groupId>
jtulach@107
   223
                  <artifactId>dlvkbrwsr</artifactId>
jtulach@107
   224
                  <version>0.5</version>
jtulach@107
   225
                  <type>jar</type>
jtulach@107
   226
              </dependency>
jtulach@107
   227
              <dependency>
jtulach@81
   228
                  <groupId>org.netbeans.html</groupId>
jtulach@81
   229
                  <artifactId>ko-ws-tyrus</artifactId>
jtulach@81
   230
                  <version>${net.java.html.version}</version>
jtulach@81
   231
                  <exclusions>
jtulach@81
   232
                      <exclusion>
jtulach@81
   233
                          <artifactId>org.json-osgi</artifactId>
jtulach@81
   234
                          <groupId>de.twentyeleven.skysail</groupId>
jtulach@81
   235
                      </exclusion>
jtulach@81
   236
                  </exclusions>
jtulach@81
   237
              </dependency>
jtulach@81
   238
          </dependencies>
jtulach@81
   239
          <build>
jtulach@81
   240
              <plugins>
jtulach@81
   241
                  <plugin>
jtulach@81
   242
                      <groupId>com.jayway.maven.plugins.android.generation2</groupId>
jtulach@81
   243
                      <artifactId>android-maven-plugin</artifactId>
jtulach@81
   244
                      <version>${android.plugin.version}</version>
jtulach@81
   245
                      <extensions>true</extensions>
jtulach@81
   246
                      <configuration>
jtulach@81
   247
                          <classifier>apk</classifier>
jtulach@81
   248
                          <attachJar>false</attachJar>
jtulach@81
   249
                          <apkDebug>debug</apkDebug>
jtulach@81
   250
                          <assetsDirectory>src/main/webapp</assetsDirectory>
jtulach@81
   251
                          <sdk>
jtulach@81
   252
                              <platform>16</platform>
jtulach@81
   253
                          </sdk>
jtulach@81
   254
                          <apk>
jtulach@81
   255
                              <metaIncludes>
jtulach@81
   256
                                  <metaInclude>services/org.apidesign.**</metaInclude>
jtulach@81
   257
                              </metaIncludes>
jtulach@81
   258
                          </apk>
jtulach@110
   259
                          <extractDuplicates>true</extractDuplicates>
jtulach@81
   260
                          <file>${project.build.directory}/${project.build.finalName}.apk</file>
jtulach@81
   261
                      </configuration>
jtulach@81
   262
                      <executions>
jtulach@81
   263
                          <execution>
jtulach@81
   264
                              <id>apk</id>
jtulach@81
   265
                              <goals>
jtulach@81
   266
                                  <goal>apk</goal>
jtulach@81
   267
                                  <goal>dex</goal>
jtulach@81
   268
                              </goals>
jtulach@81
   269
                          </execution>
jtulach@81
   270
                      </executions>
jtulach@81
   271
                  </plugin>
jtulach@81
   272
                  <plugin>
jtulach@81
   273
                      <groupId>org.apache.maven.plugins</groupId>
jtulach@81
   274
                      <artifactId>maven-install-plugin</artifactId>
jtulach@81
   275
                      <version>2.5.1</version>
jtulach@81
   276
                      <configuration>
jtulach@81
   277
                          <groupId>${project.groupId}</groupId>
jtulach@81
   278
                          <artifactId>${project.artifactId}</artifactId>
jtulach@81
   279
                          <version>${project.version}</version>
jtulach@81
   280
                          <file>${project.build.directory}/${project.build.finalName}.apk</file>
jtulach@81
   281
                          <packaging>apk</packaging>
jtulach@81
   282
                          <skip>true</skip>
jtulach@81
   283
                      </configuration>
jtulach@81
   284
                      <executions>
jtulach@81
   285
                          <execution>
jtulach@81
   286
                              <id>install-apk</id>
jtulach@81
   287
                              <phase>install</phase>
jtulach@81
   288
                              <goals>
jtulach@81
   289
                                  <goal>install-file</goal>
jtulach@81
   290
                              </goals>
jtulach@81
   291
                          </execution>
jtulach@81
   292
                      </executions>
jtulach@81
   293
                  </plugin>
jtulach@81
   294
              </plugins>
jtulach@81
   295
          </build>
jtulach@81
   296
          
jtulach@81
   297
      </profile>
jtulach@63
   298
  </profiles>  
jtulach@63
   299
</project>