pom.xml
author Jaroslav Tulach <jaroslav.tulach@netbeans.org>
Mon, 03 Feb 2014 10:31:55 +0100
changeset 516 06bba22a147d
parent 511 780f66d8ed29
child 538 3459b847088f
permissions -rw-r--r--
By default use -target and -source 1.6
     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>0.8-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>RELEASE73</netbeans.version>
    17       <grizzly.version>2.3.8</grizzly.version>
    18       <license>COPYING</license>
    19       <publicPackages />
    20       <bundleSymbolicName>${project.artifactId}</bundleSymbolicName>
    21   </properties>
    22   <modules>
    23     <module>json</module>
    24     <module>json-tck</module>
    25     <module>ko-archetype</module>
    26     <module>ko-archetype-test</module>
    27     <module>ko4j</module>
    28     <module>sound</module>
    29     <module>context</module>
    30     <module>boot</module>
    31     <module>boot-fx</module>
    32     <module>geo</module>
    33     <module>ko-ws-tyrus</module>
    34     <module>html4j-maven-plugin</module>
    35     <module>ko-osgi-test</module>
    36     <module>equinox-agentclass-hook</module>
    37   </modules>
    38   <licenses>
    39       <license>
    40           <name>GPL-2.0wCPexc+CDDL</name>
    41           <url>http://www.netbeans.org/cddl-gplv2.html</url>
    42           <distribution>repo</distribution>
    43       </license>
    44   </licenses>
    45   <organization>
    46       <name>NetBeans</name>
    47       <url>http://netbeans.org</url>
    48   </organization>
    49   <scm>
    50       <connection>scm:hg:https://hg.netbeans.org/html4j</connection>
    51       <developerConnection>scm:hg:https://hg.netbeans.org/html4j</developerConnection>
    52       <url>https://hg.netbeans.org/html4j</url>
    53       <tag>default</tag>
    54   </scm>
    55   <repositories>
    56       <repository>
    57           <id>netbeans</id>
    58           <name>NetBeans</name>
    59           <url>http://bits.netbeans.org/maven2/</url>
    60       </repository>
    61   </repositories>
    62   <pluginRepositories>
    63       <pluginRepository>
    64           <id>mc-release</id>
    65           <name>Local Maven repository of releases</name>
    66           <url>http://mc-repo.googlecode.com/svn/maven2/releases</url>
    67           <snapshots>
    68               <enabled>false</enabled>
    69           </snapshots>
    70           <releases>
    71               <enabled>true</enabled>
    72           </releases>
    73       </pluginRepository>
    74   </pluginRepositories>
    75   <build>
    76       <plugins>
    77          <plugin>
    78               <inherited>false</inherited>
    79               <groupId>com.mycila.maven-license-plugin</groupId>
    80               <artifactId>maven-license-plugin</artifactId>
    81               <version>1.9.0</version>
    82               <executions>
    83                   <execution>
    84                       <id>blah</id>
    85                       <goals>
    86                           <goal>check</goal>
    87                       </goals>
    88                   </execution>
    89               </executions>
    90               <configuration>
    91                   <aggregate>true</aggregate>
    92                   <basedir>${basedir}</basedir>
    93                   <header>COPYING</header>
    94                   <strictCheck>true</strictCheck>
    95                   <excludes>
    96                        <exclude>*</exclude>
    97                        <exclude>.*/**</exclude>
    98                        <exclude>ko-archetype/src/main/resources/**</exclude>
    99                        <exclude>ko4j/src/main/resources/org/netbeans/html/ko4j/knockout*.js</exclude>
   100                   </excludes>
   101               </configuration>
   102           </plugin>
   103            <plugin>
   104             <artifactId>maven-release-plugin</artifactId>
   105             <version>2.4</version>
   106             <configuration>
   107               <mavenExecutorId>forked-path</mavenExecutorId>
   108               <useReleaseProfile>false</useReleaseProfile>
   109               <arguments>-Pjvnet-release -Pgpg</arguments>
   110               <tag>release-${releaseVersion}</tag>
   111             </configuration>
   112           </plugin>
   113       </plugins>
   114       <pluginManagement>
   115           <plugins>
   116               <plugin>
   117                 <groupId>org.apache.maven.plugins</groupId>
   118                 <artifactId>maven-surefire-plugin</artifactId>
   119                 <version>2.13</version>
   120               </plugin>
   121               <plugin>
   122                 <groupId>org.apache.maven.plugins</groupId>
   123                 <artifactId>maven-compiler-plugin</artifactId>
   124                 <version>3.1</version>
   125                 <configuration>
   126                     <source>1.6</source>
   127                     <target>1.6</target>
   128                 </configuration>
   129               </plugin>
   130               <plugin>
   131                 <groupId>org.apache.maven.plugins</groupId>
   132                 <artifactId>maven-javadoc-plugin</artifactId>
   133                 <version>2.9</version>
   134                 <configuration>
   135                     <subpackages>${publicPackages}</subpackages>
   136                     <skip>false</skip>
   137                 </configuration>
   138               </plugin>
   139             <plugin>
   140                 <groupId>org.apache.felix</groupId>
   141                 <artifactId>maven-bundle-plugin</artifactId>
   142                 <version>2.4.0</version>
   143                 <extensions>true</extensions>
   144                 <configuration>
   145                     <instructions>
   146                         <Export-Package>${publicPackages},META-INF.services.*;-noimport:=true;-split-package:=first</Export-Package>
   147                         <Bundle-SymbolicName>${bundleSymbolicName}</Bundle-SymbolicName>
   148                     </instructions>
   149                 </configuration>
   150             </plugin>
   151             <plugin>
   152                 <groupId>org.netbeans.html</groupId>
   153                 <artifactId>html4j-maven-plugin</artifactId>
   154                 <version>${project.version}</version>
   155                 <executions>
   156                     <execution>
   157                         <id>classes</id>
   158                         <goals>
   159                             <goal>process-js-annotations</goal>
   160                         </goals>
   161                     </execution>
   162                     <execution>
   163                         <id>test-classes</id>
   164                         <phase>process-test-classes</phase>
   165                         <goals>
   166                             <goal>process-js-annotations</goal>
   167                         </goals>
   168                         <configuration>
   169                             <classes>${project.build.directory}/test-classes</classes>
   170                         </configuration>
   171                     </execution>
   172                 </executions>
   173             </plugin>
   174           </plugins>
   175       </pluginManagement>
   176   </build>
   177   <dependencyManagement>
   178       <dependencies>
   179         <dependency>
   180           <groupId>org.testng</groupId>
   181           <artifactId>testng</artifactId>
   182           <version>6.7</version>
   183           <scope>test</scope>
   184           <exclusions>
   185             <exclusion>
   186               <artifactId>junit</artifactId>
   187               <groupId>junit</groupId>
   188             </exclusion>
   189           </exclusions>
   190         </dependency>
   191         <dependency>
   192             <groupId>de.twentyeleven.skysail</groupId>
   193             <artifactId>org.json-osgi</artifactId>
   194             <version>20080701</version>
   195         </dependency>
   196         <dependency>
   197             <groupId>org.ow2.asm</groupId>
   198             <artifactId>asm</artifactId>
   199             <version>4.1</version>
   200         </dependency>
   201         <dependency>
   202           <groupId>org.netbeans.api</groupId>
   203           <artifactId>org-netbeans-modules-classfile</artifactId>
   204           <version>${netbeans.version}</version>
   205           <type>jar</type>
   206         </dependency>
   207         <dependency>
   208           <groupId>org.netbeans.api</groupId>
   209           <artifactId>org-openide-util-lookup</artifactId>
   210           <version>${netbeans.version}</version>
   211           <scope>compile</scope>
   212           <type>jar</type>
   213         </dependency>
   214         <dependency>
   215             <groupId>org.netbeans.api</groupId>
   216             <artifactId>org-netbeans-api-annotations-common</artifactId>
   217             <version>${netbeans.version}</version>
   218         </dependency>
   219         <dependency>
   220             <groupId>org.netbeans.api</groupId>
   221             <artifactId>org-netbeans-modules-java-source</artifactId>
   222             <version>${netbeans.version}</version>
   223         </dependency>
   224         <dependency>
   225             <groupId>org.netbeans.api</groupId>
   226             <artifactId>org-netbeans-libs-javacapi</artifactId>
   227             <version>${netbeans.version}</version>
   228         </dependency>
   229         <dependency>
   230             <groupId>org.netbeans.api</groupId>
   231             <artifactId>org-netbeans-spi-java-hints</artifactId>
   232             <version>${netbeans.version}</version>
   233         </dependency>
   234         <dependency>
   235             <groupId>org.netbeans.api</groupId>
   236             <artifactId>org-netbeans-modules-parsing-api</artifactId>
   237             <version>${netbeans.version}</version>
   238         </dependency>
   239         <dependency>
   240             <groupId>org.netbeans.api</groupId>
   241             <artifactId>org-netbeans-spi-editor-hints</artifactId>
   242             <version>${netbeans.version}</version>
   243         </dependency>
   244         <dependency>
   245             <groupId>org.netbeans.api</groupId>
   246             <artifactId>org-openide-util</artifactId>
   247             <version>${netbeans.version}</version>
   248         </dependency>
   249         <dependency>
   250             <groupId>org.netbeans.api</groupId>
   251             <artifactId>org-netbeans-modules-java-lexer</artifactId>
   252             <version>${netbeans.version}</version>
   253         </dependency>
   254         <dependency>
   255             <groupId>org.netbeans.api</groupId>
   256             <artifactId>org-netbeans-modules-lexer</artifactId>
   257             <version>${netbeans.version}</version>
   258         </dependency>
   259         <dependency>
   260             <groupId>org.netbeans.api</groupId>
   261             <artifactId>org-netbeans-modules-java-hints-test</artifactId>
   262             <version>${netbeans.version}</version>
   263         </dependency>
   264         <dependency>
   265             <groupId>org.netbeans.api</groupId>
   266             <artifactId>org-netbeans-libs-junit4</artifactId>
   267             <version>${netbeans.version}</version>
   268         </dependency>
   269         <dependency>
   270             <groupId>org.netbeans.modules</groupId>
   271             <artifactId>org-netbeans-lib-nbjavac</artifactId>
   272             <version>${netbeans.version}</version>
   273         </dependency>
   274         <dependency> 
   275             <groupId>org.netbeans.modules</groupId>
   276             <artifactId>org-netbeans-modules-web-browser-api</artifactId>
   277             <version>${netbeans.version}</version>
   278             <exclusions>
   279                 <exclusion>
   280                     <artifactId>org-netbeans-core</artifactId>
   281                     <groupId>org.netbeans.modules</groupId>
   282                 </exclusion>
   283                 <exclusion>
   284                     <artifactId>org-netbeans-core-multiview</artifactId>
   285                     <groupId>org.netbeans.api</groupId>
   286                 </exclusion>
   287                 <exclusion>
   288                     <artifactId>org-netbeans-libs-lucene</artifactId>
   289                     <groupId>org.netbeans.api</groupId>
   290                 </exclusion>
   291                 <exclusion>
   292                     <artifactId>org-netbeans-modules-diff</artifactId>
   293                     <groupId>org.netbeans.api</groupId>
   294                 </exclusion>
   295                 <exclusion>
   296                     <artifactId>org-netbeans-modules-editor-fold</artifactId>
   297                     <groupId>org.netbeans.api</groupId>
   298                 </exclusion>
   299                 <exclusion>
   300                     <artifactId>org-netbeans-modules-editor-guards</artifactId>
   301                     <groupId>org.netbeans.api</groupId>
   302                 </exclusion>
   303             </exclusions>
   304         </dependency>
   305         <dependency>
   306             <artifactId>org-netbeans-modules-projectapi</artifactId>
   307             <groupId>org.netbeans.api</groupId>
   308             <type>jar</type>
   309             <version>${netbeans.version}</version>
   310         </dependency>
   311       </dependencies>
   312   </dependencyManagement>
   313   <profiles>
   314       <profile>
   315           <id>jdk8</id>
   316           <activation>
   317               <file>
   318                   <exists>${java.home}/lib/ext/jfxrt.jar</exists>
   319               </file>
   320           </activation>
   321           <properties>
   322             <jfxrt.jar>${java.home}/lib/ext/jfxrt.jar</jfxrt.jar>
   323           </properties>
   324       </profile>
   325       <profile>
   326           <id>jdk7</id>
   327           <activation>
   328               <file>
   329                   <exists>${java.home}/lib/jfxrt.jar</exists>
   330               </file>
   331           </activation>
   332           <properties>
   333             <jfxrt.jar>${java.home}/lib/jfxrt.jar</jfxrt.jar>
   334           </properties>
   335       </profile>
   336   </profiles>
   337 </project>