project.htmljava/src/org/netbeans/modules/project/htmljava/prj/pom.txt
author Jaroslav Tulach <jtulach@netbeans.org>
Wed, 19 Feb 2014 13:59:42 +0100
changeset 18172 f4e3e2267188
parent 18171 95232a041be0
permissions -rw-r--r--
Need to exclude the scripting presenter test from bck2brwsr profile, as it is using APIs not available in JDK8 compact1 profile...
     1 <?xml version="1.0" encoding="UTF-8"?>
     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">
     3   <modelVersion>4.0.0</modelVersion>
     4 
     5   <groupId>@GROUP@</groupId>
     6   <artifactId>@ARTIFACT@</artifactId>
     7   <version>1.0-SNAPSHOT</version>
     8   <packaging>jar</packaging>
     9 
    10   <name>@NAME@</name>
    11 
    12   <properties>
    13     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    14     <net.java.html.version>0.7.5</net.java.html.version>
    15     <bck2brwsr.version>0.8.1</bck2brwsr.version>
    16     <brwsr.startpage>pages/index.html</brwsr.startpage>
    17     <project.mainclass>@PKG@.Main</project.mainclass>
    18     <netbeans.compile.on.save>none</netbeans.compile.on.save>
    19   </properties>
    20   <build>
    21       <plugins>
    22           <plugin>
    23               <groupId>org.netbeans.html</groupId>
    24               <artifactId>html4j-maven-plugin</artifactId>
    25               <version>${net.java.html.version}</version>
    26               <executions>
    27                   <execution>
    28                       <id>js-classes</id>
    29                       <goals>
    30                           <goal>process-js-annotations</goal>
    31                       </goals>
    32                   </execution>
    33               </executions>
    34           </plugin>          
    35           <plugin>
    36               <groupId>org.apache.maven.plugins</groupId>
    37               <artifactId>maven-compiler-plugin</artifactId>
    38               <version>2.3.2</version>
    39               <configuration>
    40                   <source>1.7</source>
    41                   <target>1.7</target>
    42               </configuration>
    43           </plugin>
    44           <plugin>
    45               <groupId>org.apache.maven.plugins</groupId>
    46               <artifactId>maven-jar-plugin</artifactId>
    47               <version>2.4</version>
    48               <configuration>
    49                   <archive>
    50                       <manifest>
    51                           <mainClass>${project.mainclass}</mainClass>
    52                           <addClasspath>true</addClasspath>
    53                           <classpathPrefix>lib/</classpathPrefix>
    54                       </manifest>
    55                   </archive>
    56               </configuration>
    57           </plugin>
    58           <plugin>
    59               <groupId>org.codehaus.mojo</groupId>
    60               <artifactId>exec-maven-plugin</artifactId>
    61               <version>1.2.1</version>
    62               <configuration>
    63                   <systemProperties>
    64                       <systemProperty>
    65                           <key>browser.rootdir</key>
    66                           <value>${basedir}/src/main/webapp/</value>
    67                       </systemProperty>
    68                   </systemProperties>
    69                   <mainClass>${project.mainclass}</mainClass>
    70               </configuration>
    71           </plugin>      
    72       </plugins>
    73   </build>
    74   <dependencies>
    75     <dependency>
    76         <groupId>org.netbeans.html</groupId>
    77         <artifactId>net.java.html.json</artifactId>
    78         <version>${net.java.html.version}</version>
    79     </dependency>
    80     <dependency>
    81         <groupId>org.netbeans.html</groupId>
    82         <artifactId>net.java.html.boot</artifactId>
    83         <version>${net.java.html.version}</version>
    84     </dependency>
    85     <dependency>
    86       <groupId>org.testng</groupId>
    87       <artifactId>testng</artifactId>
    88       <version>6.7</version>
    89       <scope>test</scope>
    90     </dependency>
    91   </dependencies>
    92   <profiles>
    93       <profile>
    94           <id>fxbrwsr</id>
    95           <activation>
    96               <activeByDefault>true</activeByDefault>
    97           </activation>
    98           <build>
    99             <plugins>
   100                 <plugin>
   101                     <artifactId>maven-assembly-plugin</artifactId>
   102                     <version>2.4</version>
   103                     <executions>
   104                         <execution>
   105                             <id>distro-assembly</id>
   106                             <phase>package</phase>
   107                             <goals>
   108                                 <goal>single</goal>
   109                             </goals>
   110                             <configuration>
   111                                 <descriptors>
   112                                     <descriptor>src/main/assembly/html.java.net.xml</descriptor>
   113                                 </descriptors>
   114                             </configuration>
   115                         </execution>
   116                     </executions>                
   117                 </plugin>      
   118             </plugins>
   119           </build>
   120           <dependencies>
   121             <dependency>
   122                 <groupId>org.netbeans.html</groupId>
   123                 <artifactId>ko4j</artifactId>
   124                 <version>${net.java.html.version}</version>
   125                 <scope>runtime</scope>
   126             </dependency>
   127             <dependency>
   128                 <groupId>org.netbeans.html</groupId>
   129                 <artifactId>net.java.html.boot.fx</artifactId>
   130                 <version>${net.java.html.version}</version>
   131                 <scope>runtime</scope>
   132             </dependency>
   133           </dependencies>
   134       </profile>
   135       <profile>
   136           <id>bck2brwsr</id>
   137           <activation>
   138               <property>
   139                   <name>brwsr</name>
   140                   <value>bck2brwsr</value>
   141               </property>
   142           </activation>
   143           <build>
   144               <plugins>
   145                   <plugin>
   146                       <groupId>org.apache.maven.plugins</groupId>
   147                       <artifactId>maven-compiler-plugin</artifactId>
   148                       <configuration>
   149                           <compilerArguments>
   150                               <bootclasspath>netbeans.ignore.jdk.bootclasspath</bootclasspath>
   151                           </compilerArguments>
   152                           <testExcludes>
   153                               <exclude>**/JsInteractionTest*</exclude>
   154                           </testExcludes>
   155                       </configuration>
   156                   </plugin>
   157                   <plugin>
   158                       <groupId>org.apidesign.bck2brwsr</groupId>
   159                       <artifactId>bck2brwsr-maven-plugin</artifactId>
   160                       <version>${bck2brwsr.version}</version>
   161                       <executions>
   162                           <execution>
   163                               <goals>
   164                                   <goal>brwsr</goal>
   165                               </goals>
   166                           </execution>
   167                       </executions>
   168                       <configuration>
   169                           <directory>${basedir}/src/main/webapp/</directory>
   170                           <startpage>${brwsr.startpage}</startpage>
   171                       </configuration>
   172                   </plugin>
   173                   <plugin>
   174                       <groupId>org.apache.maven.plugins</groupId>
   175                       <artifactId>maven-compiler-plugin</artifactId>
   176                       <configuration>
   177                           <compilerArguments>
   178                               <bootclasspath>netbeans.ignore.jdk.bootclasspath</bootclasspath>
   179                           </compilerArguments>
   180                       </configuration>
   181                   </plugin>
   182                   <plugin>
   183                       <artifactId>maven-assembly-plugin</artifactId>
   184                       <version>2.4</version>
   185                       <executions>
   186                           <execution>
   187                               <id>distro-assembly</id>
   188                               <phase>package</phase>
   189                               <goals>
   190                                   <goal>single</goal>
   191                               </goals>
   192                               <configuration>
   193                                   <descriptors>
   194                                       <descriptor>src/main/assembly/bck2brwsr.xml</descriptor>
   195                                   </descriptors>
   196                               </configuration>
   197                           </execution>
   198                       </executions>                
   199                   </plugin>      
   200               </plugins>
   201           </build>
   202           <dependencies>
   203               <dependency>
   204                   <groupId>org.apidesign.bck2brwsr</groupId>
   205                   <artifactId>emul</artifactId>
   206                   <version>${bck2brwsr.version}</version>
   207                   <classifier>rt</classifier>
   208               </dependency>
   209               <dependency>
   210                   <groupId>org.apidesign.bck2brwsr</groupId>
   211                   <artifactId>ko-bck2brwsr</artifactId>
   212                   <version>${bck2brwsr.version}</version>
   213                   <scope>runtime</scope>
   214               </dependency>
   215               <dependency>
   216                   <groupId>org.apidesign.bck2brwsr</groupId>
   217                   <artifactId>vm4brwsr</artifactId>
   218                   <classifier>js</classifier>
   219                   <type>zip</type>
   220                   <version>${bck2brwsr.version}</version>
   221                   <scope>provided</scope>
   222               </dependency>
   223           </dependencies>
   224       </profile>
   225   </profiles>  
   226 </project>