ko/archetype/src/main/resources/archetype-resources/pom.xml
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Tue, 04 Feb 2014 09:32:27 +0100
changeset 1433 3d696782eab9
parent 1424 095ce896e094
permissions -rw-r--r--
Sample usage of @JavaScriptBody annotation. Preprocessing classes and adding a Js/Java interoperability test
     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>${net.java.html.version}</net.java.html.version>
    42     <bck2brwsr.version>${project.version}</bck2brwsr.version>
    43     <bck2brwsr.launcher.version>${project.version}</bck2brwsr.launcher.version>
    44     <bck2brwsr.obfuscationlevel>MINIMAL</bck2brwsr.obfuscationlevel>
    45     <brwsr.startpage>pages/index.html</brwsr.startpage>
    46     <netbeans.compile.on.save>none</netbeans.compile.on.save>
    47   </properties>
    48   <build>
    49       <plugins>
    50           <plugin>
    51               <groupId>org.apidesign.bck2brwsr</groupId>
    52               <artifactId>bck2brwsr-maven-plugin</artifactId>
    53               <version>\${bck2brwsr.launcher.version}</version>
    54               <executions>
    55                   <execution>
    56                       <goals>
    57                           <goal>brwsr</goal>
    58                       </goals>
    59                   </execution>
    60               </executions>
    61               <configuration>
    62                   <directory>\${basedir}/src/main/webapp/</directory>
    63                   <startpage>${brwsr.startpage}</startpage>
    64                   <launcher>${brwsr}</launcher>
    65               </configuration>
    66           </plugin>
    67           <plugin>
    68               <groupId>org.netbeans.html</groupId>
    69               <artifactId>html4j-maven-plugin</artifactId>
    70               <version>${net.java.html.version}</version>
    71               <executions>
    72                   <execution>
    73                       <id>js-classes</id>
    74                       <goals>
    75                           <goal>process-js-annotations</goal>
    76                       </goals>
    77                   </execution>
    78               </executions>
    79           </plugin>          
    80           <plugin>
    81               <groupId>org.apache.maven.plugins</groupId>
    82               <artifactId>maven-compiler-plugin</artifactId>
    83               <version>2.3.2</version>
    84               <configuration>
    85                   <source>1.7</source>
    86                   <target>1.7</target>
    87               </configuration>
    88           </plugin>
    89           <plugin>
    90               <groupId>org.apache.maven.plugins</groupId>
    91               <artifactId>maven-surefire-plugin</artifactId>
    92               <version>2.14.1</version>
    93               <configuration>
    94                   <systemPropertyVariables>
    95                       <vmtest.brwsrs>\${brwsr}</vmtest.brwsrs>
    96                   </systemPropertyVariables>
    97               </configuration>
    98           </plugin>
    99           <plugin>
   100               <groupId>org.apache.maven.plugins</groupId>
   101               <artifactId>maven-jar-plugin</artifactId>
   102               <version>2.4</version>
   103               <configuration>
   104                   <archive>
   105                       <manifest>
   106                           <addClasspath>true</addClasspath>
   107                           <classpathPrefix>lib/</classpathPrefix>
   108                       </manifest>
   109                   </archive>
   110               </configuration>
   111           </plugin>
   112           <plugin>
   113               <groupId>org.apache.maven.plugins</groupId>
   114               <artifactId>maven-deploy-plugin</artifactId>
   115               <version>2.7</version>
   116               <configuration>
   117                   <skip>true</skip>
   118               </configuration>
   119           </plugin>      
   120       </plugins>
   121   </build>
   122 
   123   <dependencies>
   124     <dependency>
   125       <groupId>org.testng</groupId>
   126       <artifactId>testng</artifactId>
   127       <version>6.7</version>
   128       <scope>test</scope>
   129     </dependency>
   130     <dependency>
   131         <groupId>org.apidesign.bck2brwsr</groupId>
   132         <artifactId>launcher.http</artifactId>
   133         <version>\${bck2brwsr.launcher.version}</version>
   134         <scope>test</scope>
   135     </dependency>
   136     <dependency>
   137       <groupId>org.apidesign.bck2brwsr</groupId>
   138       <artifactId>vmtest</artifactId>
   139       <version>\${bck2brwsr.version}</version>
   140       <scope>test</scope>
   141     </dependency>
   142     <dependency>
   143       <groupId>org.netbeans.html</groupId>
   144       <artifactId>net.java.html.json</artifactId>
   145       <version>\${net.java.html.version}</version>
   146       <type>jar</type>
   147     </dependency>
   148     <dependency>
   149       <groupId>org.netbeans.html</groupId>
   150       <artifactId>net.java.html.boot</artifactId>
   151       <version>\${net.java.html.version}</version>
   152       <type>jar</type>
   153     </dependency>    
   154   </dependencies>
   155   <profiles>
   156       <profile>
   157           <id>fxbrwsr</id>
   158           <activation>
   159               <activeByDefault>true</activeByDefault>
   160           </activation>
   161           <properties>
   162               <brwsr>fxbrwsr</brwsr>
   163           </properties>
   164           <build>
   165             <plugins>
   166                 <plugin>
   167                     <groupId>org.apache.maven.plugins</groupId>
   168                     <artifactId>maven-jar-plugin</artifactId>
   169                     <version>2.4</version>
   170                     <configuration>
   171                         <archive>
   172                             <manifest>
   173                                 <mainClass>org.apidesign.bck2brwsr.launcher.FXBrwsrLauncher</mainClass>
   174                                 <addClasspath>true</addClasspath>
   175                                 <classpathPrefix>lib/</classpathPrefix>
   176                             </manifest>
   177                             <manifestEntries>
   178                                 <StartPage>\${brwsr.startpage}</StartPage>
   179                             </manifestEntries>
   180                         </archive>
   181                     </configuration>
   182                 </plugin>
   183                 <plugin>
   184                     <artifactId>maven-assembly-plugin</artifactId>
   185                     <version>2.4</version>
   186                     <executions>
   187                         <execution>
   188                             <id>distro-assembly</id>
   189                             <phase>package</phase>
   190                             <goals>
   191                                 <goal>single</goal>
   192                             </goals>
   193                             <configuration>
   194                                 <descriptors>
   195                                     <descriptor>src/main/assembly/fxbrwsr.xml</descriptor>
   196                                 </descriptors>
   197                             </configuration>
   198                         </execution>
   199                     </executions>                
   200                 </plugin>      
   201             </plugins>
   202           </build>
   203           <dependencies>
   204               <dependency>
   205                   <groupId>org.netbeans.html</groupId>
   206                   <artifactId>ko4j</artifactId>
   207                   <version>\${net.java.html.version}</version>
   208               </dependency>
   209               <dependency>
   210                   <groupId>org.apidesign.bck2brwsr</groupId>
   211                   <artifactId>launcher.fx</artifactId>
   212                   <version>\${bck2brwsr.launcher.version}</version>
   213                   <scope>runtime</scope>
   214               </dependency>
   215           </dependencies>
   216       </profile>
   217       <profile>
   218           <id>bck2brwsr</id>
   219           <activation>
   220               <property>
   221                   <name>brwsr</name>
   222                   <value>bck2brwsr</value>
   223               </property>
   224           </activation>
   225           <build>
   226               <plugins>
   227                   <plugin>
   228                       <groupId>org.apache.maven.plugins</groupId>
   229                       <artifactId>maven-compiler-plugin</artifactId>
   230                       <configuration>
   231                           <compilerArguments>
   232                               <bootclasspath>netbeans.ignore.jdk.bootclasspath</bootclasspath>
   233                           </compilerArguments>
   234                           <testExcludes>
   235                               <exclude>**/JsInteractionTest*</exclude>
   236                           </testExcludes>
   237                       </configuration>
   238                   </plugin>
   239                   <plugin>
   240                       <artifactId>maven-assembly-plugin</artifactId>
   241                       <version>2.4</version>
   242                       <executions>
   243                           <execution>
   244                               <id>distro-assembly</id>
   245                               <phase>package</phase>
   246                               <goals>
   247                                   <goal>single</goal>
   248                               </goals>
   249                               <configuration>
   250                                   <descriptors>
   251                                       <descriptor>src/main/assembly/bck2brwsr.xml</descriptor>
   252                                   </descriptors>
   253                               </configuration>
   254                           </execution>
   255                       </executions>                
   256                   </plugin>      
   257               </plugins>
   258           </build>
   259           <dependencies>
   260               <dependency>
   261                   <groupId>org.apidesign.bck2brwsr</groupId>
   262                   <artifactId>emul</artifactId>
   263                   <version>\${bck2brwsr.version}</version>
   264                   <classifier>rt</classifier>
   265               </dependency>
   266               <dependency>
   267                   <groupId>org.apidesign.bck2brwsr</groupId>
   268                   <artifactId>ko-bck2brwsr</artifactId>
   269                   <version>\${bck2brwsr.version}</version>
   270                   <scope>runtime</scope>
   271               </dependency>
   272               <dependency>
   273                   <groupId>org.apidesign.bck2brwsr</groupId>
   274                   <artifactId>vm4brwsr</artifactId>
   275                   <classifier>js</classifier>
   276                   <type>zip</type>
   277                   <version>\${bck2brwsr.version}</version>
   278                   <scope>provided</scope>
   279               </dependency>
   280           </dependencies>
   281       </profile>
   282   </profiles>
   283 </project>