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