ko/archetype/src/main/resources/archetype-resources/pom.xml
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Mon, 09 Sep 2013 17:34:30 +0200
changeset 1273 37ad459579bc
parent 1237 558604864a1b
child 1274 c4f83529954d
permissions -rw-r--r--
Rewritting the archetype to be simpler and more easily modifiable to one's needs
jaroslav@1201
     1
<?xml version="1.0"?>
jaroslav@1201
     2
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
jaroslav@1201
     3
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
jaroslav@1201
     4
  <modelVersion>4.0.0</modelVersion>
jaroslav@1201
     5
jaroslav@1201
     6
  <groupId>\${groupId}</groupId>
jaroslav@1201
     7
  <artifactId>\${artifactId}</artifactId>
jaroslav@1201
     8
  <version>\${version}</version>
jaroslav@1201
     9
  <packaging>jar</packaging>
jaroslav@1201
    10
jaroslav@1201
    11
  <name>\${artifactId}</name>
jaroslav@1201
    12
jaroslav@1201
    13
  <repositories>
jaroslav@1201
    14
      <repository>
jaroslav@1201
    15
          <id>java.net</id>
jaroslav@1201
    16
          <name>Java.net</name>
jaroslav@1201
    17
          <url>https://maven.java.net/content/repositories/releases/</url>
jaroslav@1201
    18
          <snapshots>
jaroslav@1201
    19
              <enabled>true</enabled>
jaroslav@1201
    20
          </snapshots>
jaroslav@1201
    21
      </repository>
jaroslav@1201
    22
      <repository>
jaroslav@1201
    23
          <id>netbeans</id>
jaroslav@1201
    24
          <name>NetBeans</name>
jaroslav@1201
    25
          <url>http://bits.netbeans.org/maven2/</url>
jaroslav@1201
    26
      </repository>
jaroslav@1201
    27
  </repositories>
jaroslav@1201
    28
  <pluginRepositories>
jaroslav@1201
    29
      <pluginRepository>
jaroslav@1201
    30
          <id>java.net</id>
jaroslav@1201
    31
          <name>Java.net</name>
jaroslav@1201
    32
          <url>https://maven.java.net/content/repositories/releases/</url>
jaroslav@1201
    33
          <snapshots>
jaroslav@1201
    34
              <enabled>true</enabled>
jaroslav@1201
    35
          </snapshots>
jaroslav@1201
    36
      </pluginRepository>
jaroslav@1201
    37
  </pluginRepositories>
jaroslav@1201
    38
jaroslav@1201
    39
  <properties>
jaroslav@1201
    40
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
jaroslav@1236
    41
    <net.java.html.version>${net.java.html.version}</net.java.html.version>
jaroslav@1236
    42
    <bck2brwsr.version>${project.version}</bck2brwsr.version>
jaroslav@1236
    43
    <bck2brwsr.launcher.version>${project.version}</bck2brwsr.launcher.version>
jaroslav@1201
    44
    <bck2brwsr.obfuscationlevel>MINIMAL</bck2brwsr.obfuscationlevel>
jaroslav@1273
    45
    <brwsr.startpage>pages/index.html</brwsr.startpage>
jaroslav@1201
    46
  </properties>
jaroslav@1201
    47
  <build>
jaroslav@1201
    48
      <plugins>
jaroslav@1201
    49
          <plugin>
jaroslav@1201
    50
              <groupId>org.apidesign.bck2brwsr</groupId>
jaroslav@1201
    51
              <artifactId>bck2brwsr-maven-plugin</artifactId>
jaroslav@1214
    52
              <version>\${bck2brwsr.launcher.version}</version>
jaroslav@1201
    53
              <executions>
jaroslav@1201
    54
                  <execution>
jaroslav@1201
    55
                      <goals>
jaroslav@1201
    56
                          <goal>brwsr</goal>
jaroslav@1201
    57
                      </goals>
jaroslav@1201
    58
                  </execution>
jaroslav@1201
    59
              </executions>
jaroslav@1201
    60
              <configuration>
jaroslav@1273
    61
                  <directory>\${basedir}/src/main/webapp/</directory>
jaroslav@1273
    62
                  <startpage>${brwsr.startpage}</startpage>
jaroslav@1273
    63
                  <launcher>${brwsr}</launcher>
jaroslav@1201
    64
              </configuration>
jaroslav@1201
    65
          </plugin>
jaroslav@1201
    66
          <plugin>
jaroslav@1201
    67
              <groupId>org.apache.maven.plugins</groupId>
jaroslav@1201
    68
              <artifactId>maven-compiler-plugin</artifactId>
jaroslav@1201
    69
              <version>2.3.2</version>
jaroslav@1201
    70
              <configuration>
jaroslav@1201
    71
                  <source>1.7</source>
jaroslav@1201
    72
                  <target>1.7</target>
jaroslav@1201
    73
              </configuration>
jaroslav@1201
    74
          </plugin>
jaroslav@1201
    75
          <plugin>
jaroslav@1201
    76
              <groupId>org.apache.maven.plugins</groupId>
jaroslav@1201
    77
              <artifactId>maven-surefire-plugin</artifactId>
jaroslav@1201
    78
              <version>2.14.1</version>
jaroslav@1201
    79
              <configuration>
jaroslav@1201
    80
                  <systemPropertyVariables>
jaroslav@1201
    81
                      <vmtest.brwsrs>\${brwsr}</vmtest.brwsrs>
jaroslav@1201
    82
                  </systemPropertyVariables>
jaroslav@1201
    83
              </configuration>
jaroslav@1201
    84
          </plugin>
jaroslav@1201
    85
          <plugin>
jaroslav@1201
    86
              <groupId>org.apache.maven.plugins</groupId>
jaroslav@1201
    87
              <artifactId>maven-jar-plugin</artifactId>
jaroslav@1201
    88
              <version>2.4</version>
jaroslav@1201
    89
              <configuration>
jaroslav@1201
    90
                  <archive>
jaroslav@1201
    91
                      <manifest>
jaroslav@1201
    92
                          <addClasspath>true</addClasspath>
jaroslav@1201
    93
                          <classpathPrefix>lib/</classpathPrefix>
jaroslav@1201
    94
                      </manifest>
jaroslav@1201
    95
                  </archive>
jaroslav@1201
    96
              </configuration>
jaroslav@1201
    97
          </plugin>
jaroslav@1201
    98
          <plugin>
jaroslav@1201
    99
              <groupId>org.apache.maven.plugins</groupId>
jaroslav@1201
   100
              <artifactId>maven-deploy-plugin</artifactId>
jaroslav@1201
   101
              <version>2.7</version>
jaroslav@1201
   102
              <configuration>
jaroslav@1201
   103
                  <skip>true</skip>
jaroslav@1201
   104
              </configuration>
jaroslav@1201
   105
          </plugin>      
jaroslav@1201
   106
      </plugins>
jaroslav@1201
   107
  </build>
jaroslav@1201
   108
jaroslav@1201
   109
  <dependencies>
jaroslav@1201
   110
    <dependency>
jaroslav@1201
   111
      <groupId>org.testng</groupId>
jaroslav@1201
   112
      <artifactId>testng</artifactId>
jaroslav@1201
   113
      <version>6.5.2</version>
jaroslav@1201
   114
      <scope>test</scope>
jaroslav@1201
   115
    </dependency>
jaroslav@1201
   116
    <dependency>
jaroslav@1201
   117
      <groupId>org.apidesign.bck2brwsr</groupId>
jaroslav@1201
   118
      <artifactId>vmtest</artifactId>
jaroslav@1201
   119
      <version>\${bck2brwsr.version}</version>
jaroslav@1201
   120
      <scope>test</scope>
jaroslav@1201
   121
    </dependency>
jaroslav@1201
   122
    <dependency>
jaroslav@1201
   123
      <groupId>org.apidesign.html</groupId>
jaroslav@1201
   124
      <artifactId>net.java.html.json</artifactId>
jaroslav@1201
   125
      <version>\${net.java.html.version}</version>
jaroslav@1201
   126
      <type>jar</type>
jaroslav@1201
   127
    </dependency>
jaroslav@1201
   128
  </dependencies>
jaroslav@1201
   129
  <profiles>
jaroslav@1201
   130
      <profile>
jaroslav@1201
   131
          <id>fxbrwsr</id>
jaroslav@1201
   132
          <activation>
jaroslav@1201
   133
              <activeByDefault>true</activeByDefault>
jaroslav@1201
   134
          </activation>
jaroslav@1201
   135
          <properties>
jaroslav@1201
   136
              <brwsr>fxbrwsr</brwsr>
jaroslav@1201
   137
          </properties>
jaroslav@1201
   138
          <build>
jaroslav@1201
   139
            <plugins>
jaroslav@1201
   140
                <plugin>
jaroslav@1201
   141
                    <groupId>org.apache.maven.plugins</groupId>
jaroslav@1201
   142
                    <artifactId>maven-jar-plugin</artifactId>
jaroslav@1201
   143
                    <version>2.4</version>
jaroslav@1201
   144
                    <configuration>
jaroslav@1201
   145
                        <archive>
jaroslav@1201
   146
                            <manifest>
jaroslav@1201
   147
                                <mainClass>org.apidesign.bck2brwsr.launcher.FXBrwsrLauncher</mainClass>
jaroslav@1201
   148
                                <addClasspath>true</addClasspath>
jaroslav@1201
   149
                                <classpathPrefix>lib/</classpathPrefix>
jaroslav@1201
   150
                            </manifest>
jaroslav@1201
   151
                            <manifestEntries>
jaroslav@1201
   152
                                <StartPage>\${brwsr.startpage}</StartPage>
jaroslav@1201
   153
                            </manifestEntries>
jaroslav@1201
   154
                        </archive>
jaroslav@1201
   155
                    </configuration>
jaroslav@1201
   156
                </plugin>
jaroslav@1201
   157
                <plugin>
jaroslav@1201
   158
                    <artifactId>maven-assembly-plugin</artifactId>
jaroslav@1201
   159
                    <version>2.4</version>
jaroslav@1201
   160
                    <executions>
jaroslav@1201
   161
                        <execution>
jaroslav@1201
   162
                            <id>distro-assembly</id>
jaroslav@1201
   163
                            <phase>package</phase>
jaroslav@1201
   164
                            <goals>
jaroslav@1201
   165
                                <goal>single</goal>
jaroslav@1201
   166
                            </goals>
jaroslav@1201
   167
                            <configuration>
jaroslav@1201
   168
                                <descriptors>
jaroslav@1201
   169
                                    <descriptor>src/main/assembly/fxbrwsr.xml</descriptor>
jaroslav@1201
   170
                                </descriptors>
jaroslav@1201
   171
                            </configuration>
jaroslav@1201
   172
                        </execution>
jaroslav@1201
   173
                    </executions>                
jaroslav@1201
   174
                </plugin>      
jaroslav@1201
   175
            </plugins>
jaroslav@1201
   176
          </build>
jaroslav@1201
   177
          <dependencies>
jaroslav@1201
   178
              <dependency>
jaroslav@1201
   179
                  <groupId>org.apidesign.html</groupId>
jaroslav@1201
   180
                  <artifactId>ko-fx</artifactId>
jaroslav@1201
   181
                  <version>\${net.java.html.version}</version>
jaroslav@1201
   182
              </dependency>
jaroslav@1201
   183
              <dependency>
jaroslav@1201
   184
                  <groupId>org.apidesign.bck2brwsr</groupId>
jaroslav@1201
   185
                  <artifactId>launcher.fx</artifactId>
jaroslav@1210
   186
                  <version>\${bck2brwsr.launcher.version}</version>
jaroslav@1201
   187
                  <scope>runtime</scope>
jaroslav@1201
   188
              </dependency>
jaroslav@1201
   189
          </dependencies>
jaroslav@1201
   190
      </profile>
jaroslav@1201
   191
      <profile>
jaroslav@1201
   192
          <id>bck2brwsr</id>
jaroslav@1201
   193
          <activation>
jaroslav@1201
   194
              <property>
jaroslav@1201
   195
                  <name>brwsr</name>
jaroslav@1201
   196
                  <value>bck2brwsr</value>
jaroslav@1201
   197
              </property>
jaroslav@1201
   198
          </activation>
jaroslav@1201
   199
          <build>
jaroslav@1201
   200
              <plugins>
jaroslav@1201
   201
                  <plugin>
jaroslav@1201
   202
                      <groupId>org.apidesign.bck2brwsr</groupId>
jaroslav@1201
   203
                      <artifactId>bck2brwsr-maven-plugin</artifactId>
jaroslav@1201
   204
                      <executions>
jaroslav@1201
   205
                          <execution>
jaroslav@1201
   206
                              <goals>
jaroslav@1201
   207
                                  <goal>j2js</goal>
jaroslav@1201
   208
                              </goals>
jaroslav@1201
   209
                          </execution>
jaroslav@1201
   210
                      </executions>
jaroslav@1201
   211
                      <configuration>
jaroslav@1201
   212
                          <javascript>\${project.build.directory}/bck2brwsr.js</javascript>
jaroslav@1201
   213
                          <obfuscation>\${bck2brwsr.obfuscationlevel}</obfuscation>
jaroslav@1201
   214
                      </configuration>
jaroslav@1201
   215
                  </plugin>
jaroslav@1201
   216
                  <plugin>
jaroslav@1201
   217
                      <groupId>org.apache.maven.plugins</groupId>
jaroslav@1201
   218
                      <artifactId>maven-compiler-plugin</artifactId>
jaroslav@1201
   219
                      <configuration>
jaroslav@1201
   220
                          <compilerArguments>
jaroslav@1201
   221
                              <bootclasspath>netbeans.ignore.jdk.bootclasspath</bootclasspath>
jaroslav@1201
   222
                          </compilerArguments>
jaroslav@1201
   223
                      </configuration>
jaroslav@1201
   224
                  </plugin>
jaroslav@1201
   225
                  <plugin>
jaroslav@1201
   226
                      <artifactId>maven-assembly-plugin</artifactId>
jaroslav@1201
   227
                      <version>2.4</version>
jaroslav@1201
   228
                      <executions>
jaroslav@1201
   229
                          <execution>
jaroslav@1201
   230
                              <id>distro-assembly</id>
jaroslav@1201
   231
                              <phase>package</phase>
jaroslav@1201
   232
                              <goals>
jaroslav@1201
   233
                                  <goal>single</goal>
jaroslav@1201
   234
                              </goals>
jaroslav@1201
   235
                              <configuration>
jaroslav@1201
   236
                                  <descriptors>
jaroslav@1201
   237
                                      <descriptor>src/main/assembly/bck2brwsr.xml</descriptor>
jaroslav@1201
   238
                                  </descriptors>
jaroslav@1201
   239
                              </configuration>
jaroslav@1201
   240
                          </execution>
jaroslav@1201
   241
                      </executions>                
jaroslav@1201
   242
                  </plugin>      
jaroslav@1201
   243
              </plugins>
jaroslav@1201
   244
          </build>
jaroslav@1201
   245
          <dependencies>
jaroslav@1201
   246
              <dependency>
jaroslav@1201
   247
                  <groupId>org.apidesign.bck2brwsr</groupId>
jaroslav@1201
   248
                  <artifactId>emul</artifactId>
jaroslav@1201
   249
                  <version>\${bck2brwsr.version}</version>
jaroslav@1201
   250
                  <classifier>rt</classifier>
jaroslav@1201
   251
              </dependency>
jaroslav@1201
   252
              <dependency>
jaroslav@1237
   253
                  <groupId>org.apidesign.bck2brwsr</groupId>
jaroslav@1201
   254
                  <artifactId>ko-bck2brwsr</artifactId>
jaroslav@1237
   255
                  <version>\${bck2brwsr.version}</version>
jaroslav@1201
   256
                  <scope>runtime</scope>
jaroslav@1201
   257
              </dependency>
jaroslav@1201
   258
              <dependency>
jaroslav@1201
   259
                  <groupId>org.apidesign.bck2brwsr</groupId>
jaroslav@1201
   260
                  <artifactId>launcher.http</artifactId>
jaroslav@1210
   261
                  <version>\${bck2brwsr.launcher.version}</version>
jaroslav@1201
   262
                  <scope>test</scope>
jaroslav@1201
   263
              </dependency>
jaroslav@1201
   264
          </dependencies>
jaroslav@1201
   265
      </profile>
jaroslav@1201
   266
  </profiles>
jaroslav@1201
   267
</project>