pom.xml
author Jaroslav Tulach <jtulach@netbeans.org>
Fri, 02 Oct 2015 08:57:14 +0200
changeset 1006 a0f79e32d526
parent 1005 c7f11fbd5475
child 1031 86218dd9270b
permissions -rw-r--r--
Ability to run the JavaFX presenter in headless mode is useful for testing
     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   <groupId>org.netbeans.html</groupId>
     5   <artifactId>pom</artifactId>
     6   <version>2.0-SNAPSHOT</version>
     7   <packaging>pom</packaging>
     8   <name>HTML APIs via Java</name>
     9   <parent> 
    10     <groupId>net.java</groupId>
    11     <artifactId>jvnet-parent</artifactId>
    12      <version>3</version>
    13   </parent>  
    14   <properties>
    15       <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    16       <netbeans.version>RELEASE80</netbeans.version>
    17       <grizzly.version>2.3.8</grizzly.version>
    18       <license>COPYING</license>
    19       <publicPackages />
    20       <bundleSymbolicName>${project.artifactId}</bundleSymbolicName>
    21       <netbeans.compile.on.save>none</netbeans.compile.on.save>
    22   </properties>
    23   <modules>
    24     <module>json</module>
    25     <module>json-tck</module>
    26     <module>ko4j</module>
    27     <module>sound</module>
    28     <module>context</module>
    29     <module>boot</module>
    30     <module>boot-fx</module>
    31     <module>geo</module>
    32     <module>ko-ws-tyrus</module>
    33     <module>html4j-maven-plugin</module>
    34     <module>ko-felix-test</module>
    35     <module>ko-osgi-test</module>
    36     <module>equinox-agentclass-hook</module>
    37     <module>boot-script</module>
    38     <module>boot-agent-test</module>
    39   </modules>
    40   <licenses>
    41       <license>
    42           <name>GPL-2.0wCPexc+CDDL</name>
    43           <url>http://www.netbeans.org/cddl-gplv2.html</url>
    44           <distribution>repo</distribution>
    45       </license>
    46   </licenses>
    47   <organization>
    48       <name>NetBeans</name>
    49       <url>http://netbeans.org</url>
    50   </organization>
    51   <scm>
    52       <connection>scm:hg:https://hg.netbeans.org/html4j</connection>
    53       <developerConnection>scm:hg:https://hg.netbeans.org/html4j</developerConnection>
    54       <url>https://hg.netbeans.org/html4j</url>
    55       <tag>default</tag>
    56   </scm>
    57   <repositories>
    58       <repository>
    59           <id>netbeans</id>
    60           <name>NetBeans</name>
    61           <url>http://bits.netbeans.org/maven2/</url>
    62       </repository>
    63   </repositories>
    64   <pluginRepositories>
    65       <pluginRepository>
    66           <id>mc-release</id>
    67           <name>Local Maven repository of releases</name>
    68           <url>http://mc-repo.googlecode.com/svn/maven2/releases</url>
    69           <snapshots>
    70               <enabled>false</enabled>
    71           </snapshots>
    72           <releases>
    73               <enabled>true</enabled>
    74           </releases>
    75       </pluginRepository>
    76   </pluginRepositories>
    77   <build>
    78       <plugins>
    79          <plugin>
    80               <inherited>false</inherited>
    81               <groupId>com.mycila.maven-license-plugin</groupId>
    82               <artifactId>maven-license-plugin</artifactId>
    83               <version>1.9.0</version>
    84               <executions>
    85                   <execution>
    86                       <id>blah</id>
    87                       <goals>
    88                           <goal>check</goal>
    89                       </goals>
    90                   </execution>
    91               </executions>
    92               <configuration>
    93                   <aggregate>true</aggregate>
    94                   <basedir>${basedir}</basedir>
    95                   <header>COPYING</header>
    96                   <strictCheck>true</strictCheck>
    97                   <excludes>
    98                        <exclude>*</exclude>
    99                        <exclude>.*/**</exclude>
   100                        <exclude>*/nb-configuration.xml</exclude>
   101                        <exclude>boot-script/src/test/resources/net/java/html/boot/script/ko4j/env.nashorn.1.2-debug.js</exclude>
   102                        <exclude>src/main/javadoc/resources/teavm.js</exclude>
   103                   </excludes>
   104               </configuration>
   105           </plugin>
   106            <plugin>
   107             <artifactId>maven-release-plugin</artifactId>
   108             <version>2.4</version>
   109             <configuration>
   110               <mavenExecutorId>forked-path</mavenExecutorId>
   111               <useReleaseProfile>false</useReleaseProfile>
   112               <arguments>-Pjvnet-release -Pgpg</arguments>
   113               <tag>release-${releaseVersion}</tag>
   114             </configuration>
   115           </plugin>
   116             <plugin>
   117               <groupId>org.apache.maven.plugins</groupId>
   118               <artifactId>maven-javadoc-plugin</artifactId>
   119               <version>2.9</version>
   120               <configuration>
   121                   <docfilessubdirs>true</docfilessubdirs>
   122                   <subpackages>${publicPackages}</subpackages>
   123                   <skip>false</skip>
   124                   <excludePackageNames>
   125 org.netbeans.html.boot.impl:org.netbeans.html.boot.fx:org.netbeans.html.context.impl:org.netbeans.html.equinox.*:org.netbeans.html.geo.impl:org.netbeans.html.json.impl:org.netbeans.html.sound.impl:org.netbeans.html.ko.*:org.netbeans.html.ko4j:org.netbeans.html.mojo:org.netbeans.html.wstyrus:net.java.html.js.tests:net.java.html.json.tests
   126                   </excludePackageNames>
   127                 <groups>
   128                   <group>
   129                     <title>JSON for Java</title>
   130                     <packages>net.java.html.json</packages>
   131                   </group>
   132                   <group>
   133                     <title>Core Client APIs</title>
   134                     <packages>net.java.html.boot*:net.java.html.js:net.java.html</packages>
   135                   </group>
   136                   <group>
   137                     <title>Geolocation API</title>
   138                     <packages>net.java.html.geo</packages>
   139                   </group>
   140                   <group>
   141                     <title>Sound API</title>
   142                     <packages>net.java.html.sound</packages>
   143                   </group>
   144                   <group>
   145                     <title>Testing and Headless API</title>
   146                     <packages>net.java.html.boot.script</packages>
   147                   </group>
   148                   <group>
   149                     <title>Service Provider APIs (not commonly interesting)</title>
   150                     <packages>org.netbeans.html.*</packages>
   151                   </group>
   152                 </groups>   
   153                 <links>
   154                     <link>http://testng.org/javadocs/</link>
   155                     <link>http://bits.netbeans.org/8.0/javadoc/org-openide-util-lookup/</link>
   156                     <link>http://docs.oracle.com/javase/8/javafx/api/</link>
   157                 </links>              
   158               </configuration>
   159             </plugin>
   160       </plugins>
   161       <pluginManagement>
   162           <plugins>
   163               <plugin>
   164                 <groupId>org.apache.maven.plugins</groupId>
   165                 <artifactId>maven-surefire-plugin</artifactId>
   166                 <version>2.13</version>
   167                 <configuration>
   168                     <systemPropertyVariables>
   169                         <fxpresenter.headless>true</fxpresenter.headless>
   170                     </systemPropertyVariables>
   171                 </configuration>
   172               </plugin>
   173               <plugin>
   174                 <groupId>org.apache.maven.plugins</groupId>
   175                 <artifactId>maven-failsafe-plugin</artifactId>
   176                 <version>2.18.1</version>
   177                 <configuration>
   178                     <systemPropertyVariables>
   179                         <fxpresenter.headless>true</fxpresenter.headless>
   180                     </systemPropertyVariables>
   181                 </configuration>
   182               </plugin>
   183               <plugin>
   184                 <groupId>org.apache.maven.plugins</groupId>
   185                 <artifactId>maven-deploy-plugin</artifactId>
   186                 <version>2.8.1</version>
   187               </plugin>
   188               <plugin>
   189                 <groupId>org.apache.maven.plugins</groupId>
   190                 <artifactId>maven-compiler-plugin</artifactId>
   191                 <version>3.1</version>
   192                 <configuration>
   193                     <source>1.6</source>
   194                     <target>1.6</target>
   195                 </configuration>
   196               </plugin>
   197               <plugin>
   198                 <groupId>org.apache.maven.plugins</groupId>
   199                 <artifactId>maven-javadoc-plugin</artifactId>
   200                 <version>2.9</version>
   201                 <configuration>
   202                     <subpackages>${publicPackages}</subpackages>
   203                     <skip>false</skip>
   204                 </configuration>
   205               </plugin>
   206             <plugin>
   207                 <groupId>org.apache.felix</groupId>
   208                 <artifactId>maven-bundle-plugin</artifactId>
   209                 <version>2.4.0</version>
   210                 <extensions>true</extensions>
   211                 <configuration>
   212                     <instructions>
   213                         <Export-Package>${publicPackages},META-INF.services.*;-noimport:=true;-split-package:=first</Export-Package>
   214                         <Bundle-SymbolicName>${bundleSymbolicName}</Bundle-SymbolicName>
   215                     </instructions>
   216                 </configuration>
   217             </plugin>
   218             <plugin>
   219                 <groupId>org.netbeans.html</groupId>
   220                 <artifactId>html4j-maven-plugin</artifactId>
   221                 <version>${project.version}</version>
   222                 <executions>
   223                     <execution>
   224                         <id>classes</id>
   225                         <goals>
   226                             <goal>process-js-annotations</goal>
   227                         </goals>
   228                     </execution>
   229                     <execution>
   230                         <id>test-classes</id>
   231                         <phase>process-test-classes</phase>
   232                         <goals>
   233                             <goal>process-js-annotations</goal>
   234                         </goals>
   235                         <configuration>
   236                             <classes>${project.build.directory}/test-classes</classes>
   237                         </configuration>
   238                     </execution>
   239                 </executions>
   240             </plugin>
   241           </plugins>
   242       </pluginManagement>
   243   </build>
   244   <dependencyManagement>
   245       <dependencies>
   246         <dependency>
   247           <groupId>org.testng</groupId>
   248           <artifactId>testng</artifactId>
   249           <version>6.7</version>
   250           <scope>test</scope>
   251           <exclusions>
   252             <exclusion>
   253               <artifactId>junit</artifactId>
   254               <groupId>junit</groupId>
   255             </exclusion>
   256           </exclusions>
   257         </dependency>
   258         <dependency>
   259             <groupId>de.twentyeleven.skysail</groupId>
   260             <artifactId>org.json-osgi</artifactId>
   261             <version>20080701</version>
   262         </dependency>
   263         <dependency>
   264             <groupId>org.ow2.asm</groupId>
   265             <artifactId>asm</artifactId>
   266             <version>5.0</version>
   267         </dependency>
   268         <dependency>
   269           <groupId>org.netbeans.api</groupId>
   270           <artifactId>org-netbeans-modules-classfile</artifactId>
   271           <version>${netbeans.version}</version>
   272           <type>jar</type>
   273         </dependency>
   274         <dependency>
   275           <groupId>org.netbeans.api</groupId>
   276           <artifactId>org-openide-util-lookup</artifactId>
   277           <version>${netbeans.version}</version>
   278           <scope>compile</scope>
   279           <type>jar</type>
   280         </dependency>
   281         <dependency>
   282             <groupId>org.netbeans.api</groupId>
   283             <artifactId>org-netbeans-api-annotations-common</artifactId>
   284             <version>${netbeans.version}</version>
   285         </dependency>
   286         <dependency>
   287             <groupId>org.netbeans.api</groupId>
   288             <artifactId>org-netbeans-modules-java-source</artifactId>
   289             <version>${netbeans.version}</version>
   290         </dependency>
   291         <dependency>
   292             <groupId>org.netbeans.api</groupId>
   293             <artifactId>org-netbeans-libs-javacapi</artifactId>
   294             <version>${netbeans.version}</version>
   295         </dependency>
   296         <dependency>
   297             <groupId>org.netbeans.api</groupId>
   298             <artifactId>org-netbeans-spi-java-hints</artifactId>
   299             <version>${netbeans.version}</version>
   300         </dependency>
   301         <dependency>
   302             <groupId>org.netbeans.api</groupId>
   303             <artifactId>org-netbeans-modules-parsing-api</artifactId>
   304             <version>${netbeans.version}</version>
   305         </dependency>
   306         <dependency>
   307             <groupId>org.netbeans.api</groupId>
   308             <artifactId>org-netbeans-spi-editor-hints</artifactId>
   309             <version>${netbeans.version}</version>
   310         </dependency>
   311         <dependency>
   312             <groupId>org.netbeans.api</groupId>
   313             <artifactId>org-openide-util</artifactId>
   314             <version>${netbeans.version}</version>
   315         </dependency>
   316         <dependency>
   317             <groupId>org.netbeans.api</groupId>
   318             <artifactId>org-netbeans-modules-java-lexer</artifactId>
   319             <version>${netbeans.version}</version>
   320         </dependency>
   321         <dependency>
   322             <groupId>org.netbeans.api</groupId>
   323             <artifactId>org-netbeans-modules-lexer</artifactId>
   324             <version>${netbeans.version}</version>
   325         </dependency>
   326         <dependency>
   327             <groupId>org.netbeans.api</groupId>
   328             <artifactId>org-netbeans-modules-java-hints-test</artifactId>
   329             <version>${netbeans.version}</version>
   330         </dependency>
   331         <dependency>
   332             <groupId>org.netbeans.api</groupId>
   333             <artifactId>org-netbeans-libs-junit4</artifactId>
   334             <version>${netbeans.version}</version>
   335         </dependency>
   336         <dependency>
   337             <groupId>org.netbeans.modules</groupId>
   338             <artifactId>org-netbeans-lib-nbjavac</artifactId>
   339             <version>${netbeans.version}</version>
   340         </dependency>
   341         <dependency>
   342             <groupId>org.apache.felix</groupId>
   343             <artifactId>org.apache.felix.framework</artifactId>
   344             <version>4.2.1</version>
   345         </dependency>
   346       <dependency>
   347             <groupId>javax.servlet</groupId>
   348             <artifactId>javax.servlet-api</artifactId>
   349             <version>3.1.0</version>
   350         </dependency>
   351         <dependency> 
   352             <groupId>org.netbeans.modules</groupId>
   353             <artifactId>org-netbeans-modules-web-browser-api</artifactId>
   354             <version>${netbeans.version}</version>
   355             <exclusions>
   356                 <exclusion>
   357                     <artifactId>org-netbeans-core</artifactId>
   358                     <groupId>org.netbeans.modules</groupId>
   359                 </exclusion>
   360                 <exclusion>
   361                     <artifactId>org-netbeans-core-multiview</artifactId>
   362                     <groupId>org.netbeans.api</groupId>
   363                 </exclusion>
   364                 <exclusion>
   365                     <artifactId>org-netbeans-libs-lucene</artifactId>
   366                     <groupId>org.netbeans.api</groupId>
   367                 </exclusion>
   368                 <exclusion>
   369                     <artifactId>org-netbeans-modules-diff</artifactId>
   370                     <groupId>org.netbeans.api</groupId>
   371                 </exclusion>
   372                 <exclusion>
   373                     <artifactId>org-netbeans-modules-editor-fold</artifactId>
   374                     <groupId>org.netbeans.api</groupId>
   375                 </exclusion>
   376                 <exclusion>
   377                     <artifactId>org-netbeans-modules-editor-guards</artifactId>
   378                     <groupId>org.netbeans.api</groupId>
   379                 </exclusion>
   380             </exclusions>
   381         </dependency>
   382         <dependency>
   383             <artifactId>org-netbeans-modules-projectapi</artifactId>
   384             <groupId>org.netbeans.api</groupId>
   385             <type>jar</type>
   386             <version>${netbeans.version}</version>
   387         </dependency>
   388       </dependencies>
   389   </dependencyManagement>
   390   <profiles>
   391       <profile>
   392           <id>jdk8</id>
   393           <activation>
   394               <file>
   395                   <exists>${java.home}/lib/ext/jfxrt.jar</exists>
   396               </file>
   397           </activation>
   398           <properties>
   399             <jfxrt.jar>${java.home}/lib/ext/jfxrt.jar</jfxrt.jar>
   400           </properties>
   401       </profile>
   402       <profile>
   403           <id>jdk7</id>
   404           <activation>
   405               <file>
   406                   <exists>${java.home}/lib/jfxrt.jar</exists>
   407               </file>
   408           </activation>
   409           <properties>
   410             <jfxrt.jar>${java.home}/lib/jfxrt.jar</jfxrt.jar>
   411           </properties>
   412       </profile>
   413   </profiles>
   414 </project>