javaquery/demo-twitter/pom.xml
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Mon, 29 Apr 2013 08:37:23 +0200
branchmodel
changeset 1052 546cdcaf3e66
parent 1043 bd80952bfd11
child 1053 f44a970bbc2f
permissions -rw-r--r--
The bck2brwsr assembly has to be used only 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   <parent>
     5     <artifactId>javaquery</artifactId>
     6     <groupId>org.apidesign.bck2brwsr</groupId>
     7     <version>0.7-SNAPSHOT</version>
     8   </parent>
     9 
    10   <groupId>org.apidesign.bck2brwsr</groupId>
    11   <artifactId>demo-twitter</artifactId>
    12   <version>0.7-SNAPSHOT</version>
    13   <packaging>jar</packaging>
    14 
    15   <name>Fx/Bck2Brwsr's Twttr</name>
    16   <description>
    17       Rewrite of knockoutjs example to use model written in Java and
    18       execute using FxBrwsr or Bck2Brwsr.
    19   </description>
    20 
    21   <repositories>
    22       <repository>
    23           <id>java.net</id>
    24           <name>Java.net</name>
    25           <url>https://maven.java.net/content/repositories/releases/</url>
    26           <snapshots>
    27           </snapshots>
    28       </repository>
    29       <repository>
    30           <id>netbeans</id>
    31           <name>NetBeans</name>
    32           <url>http://bits.netbeans.org/maven2/</url>
    33       </repository>
    34   </repositories>
    35   <pluginRepositories>
    36       <pluginRepository>
    37           <id>java.net</id>
    38           <name>Java.net</name>
    39           <url>https://maven.java.net/content/repositories/releases/</url>
    40           <snapshots>
    41           </snapshots>
    42       </pluginRepository>
    43   </pluginRepositories>
    44 
    45   <properties>
    46     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    47     <bck2brwsr.obfuscationlevel>MINIMAL</bck2brwsr.obfuscationlevel>
    48   </properties>
    49   <build>
    50       <plugins>
    51           <plugin>
    52               <groupId>org.apidesign.bck2brwsr</groupId>
    53               <artifactId>bck2brwsr-maven-plugin</artifactId>
    54               <version>${project.version}</version>
    55               <executions>
    56                   <execution>
    57                       <goals>
    58                           <goal>brwsr</goal>
    59                       </goals>
    60                   </execution>
    61               </executions>
    62               <configuration>
    63                   <startpage>org/apidesign/bck2brwsr/demo/twitter/index.html</startpage>
    64                   <launcher>${brwsr}</launcher>
    65               </configuration>
    66           </plugin>
    67           <plugin>
    68               <groupId>org.apache.maven.plugins</groupId>
    69               <artifactId>maven-compiler-plugin</artifactId>
    70               <version>2.3.2</version>
    71               <configuration>
    72                   <source>1.7</source>
    73                   <target>1.7</target>
    74               </configuration>
    75           </plugin>
    76           <plugin>
    77               <groupId>org.apache.maven.plugins</groupId>
    78               <artifactId>maven-surefire-plugin</artifactId>
    79               <version>2.14.1</version>
    80               <configuration>
    81                   <systemPropertyVariables>
    82                       <vmtest.brwsrs>${brwsr}</vmtest.brwsrs>
    83                   </systemPropertyVariables>
    84               </configuration>
    85           </plugin>
    86           <plugin>
    87               <groupId>org.apache.maven.plugins</groupId>
    88               <artifactId>maven-jar-plugin</artifactId>
    89               <version>2.4</version>
    90               <configuration>
    91                   <archive>
    92                       <manifest>
    93                           <addClasspath>true</addClasspath>
    94                           <classpathPrefix>lib/</classpathPrefix>
    95                       </manifest>
    96                   </archive>
    97               </configuration>
    98           </plugin>
    99           <plugin>
   100               <groupId>org.apache.maven.plugins</groupId>
   101               <artifactId>maven-deploy-plugin</artifactId>
   102               <version>2.7</version>
   103               <configuration>
   104                   <skip>true</skip>
   105               </configuration>
   106           </plugin>      
   107       </plugins>
   108   </build>
   109 
   110   <dependencies>
   111     <dependency>
   112       <groupId>org.testng</groupId>
   113       <artifactId>testng</artifactId>
   114       <version>6.5.2</version>
   115       <scope>test</scope>
   116     </dependency>
   117     <dependency>
   118       <groupId>org.apidesign.bck2brwsr</groupId>
   119       <artifactId>vmtest</artifactId>
   120       <version>${project.version}</version>
   121       <scope>test</scope>
   122     </dependency>
   123     <dependency>
   124       <groupId>org.apidesign.html</groupId>
   125       <artifactId>net.java.html.json</artifactId>
   126       <version>0.1-SNAPSHOT</version>
   127       <type>jar</type>
   128     </dependency>
   129   </dependencies>
   130   <profiles>
   131       <profile>
   132           <id>fxbrwsr</id>
   133           <activation>
   134               <activeByDefault>true</activeByDefault>
   135           </activation>
   136           <properties>
   137               <brwsr>fxbrwsr</brwsr>
   138           </properties>
   139           <dependencies>
   140               <dependency>
   141                   <groupId>org.apidesign.html</groupId>
   142                   <artifactId>ko-fx</artifactId>
   143                   <version>0.1-SNAPSHOT</version>
   144               </dependency>
   145               <dependency>
   146                   <groupId>${project.groupId}</groupId>
   147                   <artifactId>launcher.fx</artifactId>
   148                   <version>${project.version}</version>
   149                   <scope>test</scope>
   150               </dependency>
   151           </dependencies>
   152       </profile>
   153       <profile>
   154           <id>bck2brwsr</id>
   155           <activation>
   156               <property>
   157                   <name>brwsr</name>
   158                   <value>bck2brwsr</value>
   159               </property>
   160           </activation>
   161           <build>
   162               <plugins>
   163                   <plugin>
   164                       <groupId>org.apidesign.bck2brwsr</groupId>
   165                       <artifactId>bck2brwsr-maven-plugin</artifactId>
   166                       <executions>
   167                           <execution>
   168                               <goals>
   169                                   <goal>j2js</goal>
   170                               </goals>
   171                           </execution>
   172                       </executions>
   173                       <configuration>
   174                           <javascript>${project.build.directory}/bck2brwsr.js</javascript>
   175                           <obfuscation>${bck2brwsr.obfuscationlevel}</obfuscation>
   176                       </configuration>
   177                   </plugin>
   178                   <plugin>
   179                       <groupId>org.apache.maven.plugins</groupId>
   180                       <artifactId>maven-compiler-plugin</artifactId>
   181                       <configuration>
   182                           <compilerArguments>
   183                               <bootclasspath>netbeans.ignore.jdk.bootclasspath</bootclasspath>
   184                           </compilerArguments>
   185                       </configuration>
   186                   </plugin>
   187                   <plugin>
   188                       <artifactId>maven-assembly-plugin</artifactId>
   189                       <version>2.4</version>
   190                       <executions>
   191                           <execution>
   192                               <id>distro-assembly</id>
   193                               <phase>package</phase>
   194                               <goals>
   195                                   <goal>single</goal>
   196                               </goals>
   197                               <configuration>
   198                                   <descriptors>
   199                                       <descriptor>src/main/assembly/bck2brwsr.xml</descriptor>
   200                                   </descriptors>
   201                               </configuration>
   202                           </execution>
   203                       </executions>                
   204                   </plugin>      
   205               </plugins>
   206           </build>
   207           <dependencies>
   208               <dependency>
   209                   <groupId>org.apidesign.bck2brwsr</groupId>
   210                   <artifactId>emul</artifactId>
   211                   <version>${project.version}</version>
   212                   <classifier>rt</classifier>
   213               </dependency>
   214               <dependency>
   215                   <groupId>org.apidesign.bck2brwsr</groupId>
   216                   <artifactId>javaquery.api</artifactId>
   217                   <version>${project.version}</version>
   218                   <scope>runtime</scope>
   219               </dependency>
   220               <dependency>
   221                   <groupId>${project.groupId}</groupId>
   222                   <artifactId>launcher.http</artifactId>
   223                   <version>${project.version}</version>
   224                   <scope>test</scope>
   225               </dependency>
   226           </dependencies>
   227       </profile>
   228   </profiles>
   229 </project>