words/pom.xml
author Jaroslav Tulach <jtulach@netbeans.org>
Sun, 12 Jan 2014 23:25:42 +0100
branchNbHtml4J
changeset 57 9984b9f7d8c6
parent 56 68cecf6c3113
child 60 f0ab62f65322
permissions -rw-r--r--
Adjusting to new naming scheme (which includes netbeans name)
     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   <parent>
     5     <artifactId>demo</artifactId>
     6     <groupId>org.apidesign.html</groupId>
     7     <version>1.0-SNAPSHOT</version>
     8   </parent>
     9 
    10   <groupId>org.apidesign.demo</groupId>
    11   <artifactId>words</artifactId>
    12   <version>1.0-SNAPSHOT</version>
    13   <packaging>jar</packaging>
    14 
    15   <name>Words</name>
    16 
    17   <pluginRepositories>
    18       <pluginRepository>
    19           <id>ios</id>
    20           <name>NetBeans iOS Maven Plugin</name>
    21           <url>http://beetle.cz.oracle.com/~jtulach/maven/</url>
    22           <snapshots>
    23           </snapshots>
    24       </pluginRepository>
    25   </pluginRepositories>
    26 
    27   <properties>
    28     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    29     <net.java.html.version>0.7-SNAPSHOT</net.java.html.version>
    30     <project.mainclass>org.apidesign.demo.words.Main</project.mainclass>
    31     <netbeans.compile.on.save>none</netbeans.compile.on.save>
    32   </properties>
    33   <build>
    34       <plugins>
    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           <plugin>
    73               <artifactId>maven-assembly-plugin</artifactId>
    74               <version>2.4</version>
    75               <executions>
    76                   <execution>
    77                       <id>distro-assembly</id>
    78                       <phase>package</phase>
    79                       <goals>
    80                           <goal>single</goal>
    81                       </goals>
    82                       <configuration>
    83                           <descriptors>
    84                               <descriptor>src/main/assembly/html.java.net.xml</descriptor>
    85                           </descriptors>
    86                       </configuration>
    87                   </execution>
    88               </executions>                
    89           </plugin>      
    90       </plugins>
    91   </build>
    92   <dependencies>
    93     <dependency>
    94         <groupId>org.netbeans.html</groupId>
    95         <artifactId>net.java.html.json</artifactId>
    96         <version>${net.java.html.version}</version>
    97     </dependency>
    98     <dependency>
    99         <groupId>org.netbeans.html</groupId>
   100         <artifactId>net.java.html.boot</artifactId>
   101         <version>${net.java.html.version}</version>
   102     </dependency>
   103     <dependency>
   104         <groupId>org.netbeans.html</groupId>
   105         <artifactId>ko4j</artifactId>
   106         <version>${net.java.html.version}</version>
   107         <scope>runtime</scope>
   108     </dependency>
   109     <dependency>
   110         <groupId>org.netbeans.html</groupId>
   111         <artifactId>net.java.html.boot.fx</artifactId>
   112         <version>${net.java.html.version}</version>
   113         <scope>runtime</scope>
   114     </dependency>
   115     <dependency>
   116       <groupId>org.testng</groupId>
   117       <artifactId>testng</artifactId>
   118       <version>6.7</version>
   119       <scope>test</scope>
   120     </dependency>
   121   </dependencies>
   122   <profiles>
   123       <profile>
   124           <id>iOS</id>
   125           <activation>
   126               <os>
   127                   <family>mac</family>
   128                   <name>Mac OS X</name>
   129               </os>
   130           </activation>
   131           <build>
   132               <plugins>
   133                   <plugin>
   134                       <groupId>org.netbeans.ios</groupId>
   135                       <artifactId>ios-maven-plugin</artifactId>
   136                       <version>0.2</version>
   137                       <configuration>
   138                           <jarfile>${project.build.directory}/${project.build.finalName}.jar</jarfile>
   139                           <title>${project.name}</title>
   140                           <mainclass>${project.mainclass}</mainclass>
   141                           <resourcesDir>src/main/webapp/</resourcesDir>
   142                       </configuration>
   143                   </plugin>
   144               </plugins>
   145           </build>
   146       </profile>
   147   </profiles>  
   148 </project>