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