twitter/pom.xml
author Jaroslav Tulach <jtulach@netbeans.org>
Thu, 20 Jun 2013 13:28:40 +0200
branchclassloader
changeset 37 4a36b310c6da
parent 36 7ff8ac49cd8c
permissions -rw-r--r--
Removing references to bck2brwsr as in this form the project can't run in bck2brwsr mode
     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 
     5   <groupId>org.apidesign.html</groupId>
     6   <artifactId>demo-twitter</artifactId>
     7   <version>1.0-SNAPSHOT</version>
     8   <packaging>jar</packaging>
     9   <parent>
    10       <groupId>org.apidesign.html</groupId>
    11       <artifactId>demo</artifactId>
    12       <version>1.0-SNAPSHOT</version>
    13   </parent>
    14 
    15   <name>Fx Twttr</name>
    16   <description>
    17       Rewrite of knockout.js example to use model written in Java and
    18       displayed in a JavaFX WebView.
    19   </description>
    20 
    21   <properties>
    22     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    23     <net.java.html.version>0.4-SNAPSHOT</net.java.html.version>
    24     <brwsr.startpage>org/apidesign/html/demo/twitter/index.html</brwsr.startpage>
    25   </properties>
    26 
    27   <repositories>
    28       <repository>
    29           <id>java.net</id>
    30           <name>Java.net</name>
    31           <url>https://maven.java.net/content/repositories/releases/</url>
    32       </repository>
    33   </repositories>
    34   <pluginRepositories>
    35       <pluginRepository>
    36           <id>java.net</id>
    37           <name>Java.net</name>
    38           <url>https://maven.java.net/content/repositories/releases/</url>
    39       </pluginRepository>
    40   </pluginRepositories>
    41 
    42   <build>
    43       <plugins>
    44           <plugin>
    45               <groupId>org.apache.maven.plugins</groupId>
    46               <artifactId>maven-compiler-plugin</artifactId>
    47               <version>2.3.2</version>
    48               <configuration>
    49                   <source>1.7</source>
    50                   <target>1.7</target>
    51               </configuration>
    52           </plugin>
    53           <plugin>
    54               <groupId>org.apache.maven.plugins</groupId>
    55               <artifactId>maven-surefire-plugin</artifactId>
    56               <version>2.14.1</version>
    57               <configuration>
    58                   <systemPropertyVariables>
    59                       <vmtest.brwsrs>${brwsr}</vmtest.brwsrs>
    60                   </systemPropertyVariables>
    61               </configuration>
    62           </plugin>
    63           <plugin>
    64               <groupId>org.apache.maven.plugins</groupId>
    65               <artifactId>maven-jar-plugin</artifactId>
    66               <version>2.4</version>
    67               <configuration>
    68                   <archive>
    69                       <manifest>
    70                           <addClasspath>true</addClasspath>
    71                           <classpathPrefix>lib/</classpathPrefix>
    72                       </manifest>
    73                   </archive>
    74               </configuration>
    75           </plugin>
    76           <plugin>
    77               <groupId>org.apache.maven.plugins</groupId>
    78               <artifactId>maven-deploy-plugin</artifactId>
    79               <version>2.7</version>
    80               <configuration>
    81                   <skip>true</skip>
    82               </configuration>
    83           </plugin>      
    84       </plugins>
    85   </build>
    86 
    87   <dependencies>
    88     <dependency>
    89       <groupId>org.testng</groupId>
    90       <artifactId>testng</artifactId>
    91       <version>6.5.2</version>
    92       <scope>test</scope>
    93     </dependency>
    94     <dependency>
    95       <groupId>org.apidesign.html</groupId>
    96       <artifactId>net.java.html.json</artifactId>
    97       <version>${net.java.html.version}</version>
    98       <type>jar</type>
    99     </dependency>
   100     <dependency>
   101       <groupId>org.apidesign.html</groupId>
   102       <artifactId>boot-fx</artifactId>
   103       <version>0.4-SNAPSHOT</version>
   104       <scope>runtime</scope>
   105     </dependency>
   106   </dependencies>
   107   <profiles>
   108       <profile>
   109           <id>fxbrwsr</id>
   110           <activation>
   111               <activeByDefault>true</activeByDefault>
   112           </activation>
   113           <properties>
   114               <brwsr>fxbrwsr</brwsr>
   115           </properties>
   116           <build>
   117             <plugins>
   118                 <plugin>
   119                     <groupId>org.apache.maven.plugins</groupId>
   120                     <artifactId>maven-jar-plugin</artifactId>
   121                     <version>2.4</version>
   122                     <configuration>
   123                         <archive>
   124                             <manifest>
   125                                 <mainClass>org.apidesign.html.demo.twitter.TwitterMain</mainClass>
   126                                 <addClasspath>true</addClasspath>
   127                                 <classpathPrefix>lib/</classpathPrefix>
   128                             </manifest>
   129                             <manifestEntries>
   130                                 <StartPage>${brwsr.startpage}</StartPage>
   131                             </manifestEntries>
   132                         </archive>
   133                     </configuration>
   134                 </plugin>
   135                 <plugin>
   136                     <artifactId>maven-assembly-plugin</artifactId>
   137                     <version>2.4</version>
   138                     <executions>
   139                         <execution>
   140                             <id>distro-assembly</id>
   141                             <phase>package</phase>
   142                             <goals>
   143                                 <goal>single</goal>
   144                             </goals>
   145                             <configuration>
   146                                 <descriptors>
   147                                     <descriptor>src/main/assembly/fxbrwsr.xml</descriptor>
   148                                 </descriptors>
   149                             </configuration>
   150                         </execution>
   151                     </executions>                
   152                 </plugin>      
   153             </plugins>
   154           </build>
   155           <dependencies>
   156               <dependency>
   157                   <groupId>org.apidesign.html</groupId>
   158                   <artifactId>ko-fx</artifactId>
   159                   <version>${net.java.html.version}</version>
   160               </dependency>
   161           </dependencies>
   162       </profile>
   163   </profiles>
   164 </project>