pom.xml
author Jaroslav Tulach <jaroslav.tulach@netbeans.org>
Thu, 30 Jan 2014 17:07:35 +0100
branchpreprocess
changeset 511 780f66d8ed29
parent 489 a585b9c9a75b
child 516 06bba22a147d
permissions -rw-r--r--
Don't export foreign META-INF/services, export only what we declare
     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-javadoc-plugin</artifactId>
   124                 <version>2.9</version>
   125                 <configuration>
   126                     <subpackages>${publicPackages}</subpackages>
   127                     <skip>false</skip>
   128                 </configuration>
   129               </plugin>
   130             <plugin>
   131                 <groupId>org.apache.felix</groupId>
   132                 <artifactId>maven-bundle-plugin</artifactId>
   133                 <version>2.4.0</version>
   134                 <extensions>true</extensions>
   135                 <configuration>
   136                     <instructions>
   137                         <Export-Package>${publicPackages},META-INF.services.*;-noimport:=true;-split-package:=first</Export-Package>
   138                         <Bundle-SymbolicName>${bundleSymbolicName}</Bundle-SymbolicName>
   139                     </instructions>
   140                 </configuration>
   141             </plugin>
   142             <plugin>
   143                 <groupId>org.netbeans.html</groupId>
   144                 <artifactId>html4j-maven-plugin</artifactId>
   145                 <version>${project.version}</version>
   146                 <executions>
   147                     <execution>
   148                         <id>classes</id>
   149                         <goals>
   150                             <goal>process-js-annotations</goal>
   151                         </goals>
   152                     </execution>
   153                     <execution>
   154                         <id>test-classes</id>
   155                         <phase>process-test-classes</phase>
   156                         <goals>
   157                             <goal>process-js-annotations</goal>
   158                         </goals>
   159                         <configuration>
   160                             <classes>${project.build.directory}/test-classes</classes>
   161                         </configuration>
   162                     </execution>
   163                 </executions>
   164             </plugin>
   165           </plugins>
   166       </pluginManagement>
   167   </build>
   168   <dependencyManagement>
   169       <dependencies>
   170         <dependency>
   171           <groupId>org.testng</groupId>
   172           <artifactId>testng</artifactId>
   173           <version>6.7</version>
   174           <scope>test</scope>
   175           <exclusions>
   176             <exclusion>
   177               <artifactId>junit</artifactId>
   178               <groupId>junit</groupId>
   179             </exclusion>
   180           </exclusions>
   181         </dependency>
   182         <dependency>
   183             <groupId>de.twentyeleven.skysail</groupId>
   184             <artifactId>org.json-osgi</artifactId>
   185             <version>20080701</version>
   186         </dependency>
   187         <dependency>
   188             <groupId>org.ow2.asm</groupId>
   189             <artifactId>asm</artifactId>
   190             <version>4.1</version>
   191         </dependency>
   192         <dependency>
   193           <groupId>org.netbeans.api</groupId>
   194           <artifactId>org-netbeans-modules-classfile</artifactId>
   195           <version>${netbeans.version}</version>
   196           <type>jar</type>
   197         </dependency>
   198         <dependency>
   199           <groupId>org.netbeans.api</groupId>
   200           <artifactId>org-openide-util-lookup</artifactId>
   201           <version>${netbeans.version}</version>
   202           <scope>compile</scope>
   203           <type>jar</type>
   204         </dependency>
   205         <dependency>
   206             <groupId>org.netbeans.api</groupId>
   207             <artifactId>org-netbeans-api-annotations-common</artifactId>
   208             <version>${netbeans.version}</version>
   209         </dependency>
   210         <dependency>
   211             <groupId>org.netbeans.api</groupId>
   212             <artifactId>org-netbeans-modules-java-source</artifactId>
   213             <version>${netbeans.version}</version>
   214         </dependency>
   215         <dependency>
   216             <groupId>org.netbeans.api</groupId>
   217             <artifactId>org-netbeans-libs-javacapi</artifactId>
   218             <version>${netbeans.version}</version>
   219         </dependency>
   220         <dependency>
   221             <groupId>org.netbeans.api</groupId>
   222             <artifactId>org-netbeans-spi-java-hints</artifactId>
   223             <version>${netbeans.version}</version>
   224         </dependency>
   225         <dependency>
   226             <groupId>org.netbeans.api</groupId>
   227             <artifactId>org-netbeans-modules-parsing-api</artifactId>
   228             <version>${netbeans.version}</version>
   229         </dependency>
   230         <dependency>
   231             <groupId>org.netbeans.api</groupId>
   232             <artifactId>org-netbeans-spi-editor-hints</artifactId>
   233             <version>${netbeans.version}</version>
   234         </dependency>
   235         <dependency>
   236             <groupId>org.netbeans.api</groupId>
   237             <artifactId>org-openide-util</artifactId>
   238             <version>${netbeans.version}</version>
   239         </dependency>
   240         <dependency>
   241             <groupId>org.netbeans.api</groupId>
   242             <artifactId>org-netbeans-modules-java-lexer</artifactId>
   243             <version>${netbeans.version}</version>
   244         </dependency>
   245         <dependency>
   246             <groupId>org.netbeans.api</groupId>
   247             <artifactId>org-netbeans-modules-lexer</artifactId>
   248             <version>${netbeans.version}</version>
   249         </dependency>
   250         <dependency>
   251             <groupId>org.netbeans.api</groupId>
   252             <artifactId>org-netbeans-modules-java-hints-test</artifactId>
   253             <version>${netbeans.version}</version>
   254         </dependency>
   255         <dependency>
   256             <groupId>org.netbeans.api</groupId>
   257             <artifactId>org-netbeans-libs-junit4</artifactId>
   258             <version>${netbeans.version}</version>
   259         </dependency>
   260         <dependency>
   261             <groupId>org.netbeans.modules</groupId>
   262             <artifactId>org-netbeans-lib-nbjavac</artifactId>
   263             <version>${netbeans.version}</version>
   264         </dependency>
   265         <dependency> 
   266             <groupId>org.netbeans.modules</groupId>
   267             <artifactId>org-netbeans-modules-web-browser-api</artifactId>
   268             <version>${netbeans.version}</version>
   269             <exclusions>
   270                 <exclusion>
   271                     <artifactId>org-netbeans-core</artifactId>
   272                     <groupId>org.netbeans.modules</groupId>
   273                 </exclusion>
   274                 <exclusion>
   275                     <artifactId>org-netbeans-core-multiview</artifactId>
   276                     <groupId>org.netbeans.api</groupId>
   277                 </exclusion>
   278                 <exclusion>
   279                     <artifactId>org-netbeans-libs-lucene</artifactId>
   280                     <groupId>org.netbeans.api</groupId>
   281                 </exclusion>
   282                 <exclusion>
   283                     <artifactId>org-netbeans-modules-diff</artifactId>
   284                     <groupId>org.netbeans.api</groupId>
   285                 </exclusion>
   286                 <exclusion>
   287                     <artifactId>org-netbeans-modules-editor-fold</artifactId>
   288                     <groupId>org.netbeans.api</groupId>
   289                 </exclusion>
   290                 <exclusion>
   291                     <artifactId>org-netbeans-modules-editor-guards</artifactId>
   292                     <groupId>org.netbeans.api</groupId>
   293                 </exclusion>
   294             </exclusions>
   295         </dependency>
   296         <dependency>
   297             <artifactId>org-netbeans-modules-projectapi</artifactId>
   298             <groupId>org.netbeans.api</groupId>
   299             <type>jar</type>
   300             <version>${netbeans.version}</version>
   301         </dependency>
   302       </dependencies>
   303   </dependencyManagement>
   304   <profiles>
   305       <profile>
   306           <id>jdk8</id>
   307           <activation>
   308               <file>
   309                   <exists>${java.home}/lib/ext/jfxrt.jar</exists>
   310               </file>
   311           </activation>
   312           <properties>
   313             <jfxrt.jar>${java.home}/lib/ext/jfxrt.jar</jfxrt.jar>
   314           </properties>
   315       </profile>
   316       <profile>
   317           <id>jdk7</id>
   318           <activation>
   319               <file>
   320                   <exists>${java.home}/lib/jfxrt.jar</exists>
   321               </file>
   322           </activation>
   323           <properties>
   324             <jfxrt.jar>${java.home}/lib/jfxrt.jar</jfxrt.jar>
   325           </properties>
   326       </profile>
   327   </profiles>
   328 </project>