ko/kosample/client/pom.xml
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Wed, 27 Apr 2016 04:01:39 +0200
changeset 1944 644d4f4bc6e0
parent 1941 621825e167d7
permissions -rw-r--r--
Using lamdas to schedule tasks
     1 <?xml version="1.0"?>
     2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     3   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     4   <modelVersion>4.0.0</modelVersion>
     5 
     6   <parent>
     7       <groupId>org.apidesign.bck2brwsr</groupId>
     8       <artifactId>kosample-pom</artifactId>
     9       <version>1.0-SNAPSHOT</version>
    10   </parent>
    11 
    12   <groupId>org.apidesign.bck2brwsr</groupId>
    13   <artifactId>kosample</artifactId>
    14   <version>1.0-SNAPSHOT</version>
    15   <packaging>bundle</packaging>
    16 
    17   <name>kosample General Client Code</name>
    18 
    19   <properties>
    20     <netbeans.compile.on.save>all</netbeans.compile.on.save>
    21     <project.mainclass>org.apidesign.bck2brwsr.kosample.Main</project.mainclass>
    22     <exec.java.bin>${java.home}/bin/java</exec.java.bin>
    23     <exec.debug.arg>-Ddebug=false</exec.debug.arg>
    24   </properties>
    25   <build>
    26       <plugins>
    27           <plugin>
    28               <groupId>org.apache.felix</groupId>
    29               <artifactId>maven-bundle-plugin</artifactId>
    30               <version>2.4.0</version>
    31               <extensions>true</extensions>
    32               <configuration>
    33                   <instructions>
    34                       <Export-Package>org.apidesign.bck2brwsr.kosample</Export-Package>
    35                       <Bundle-SymbolicName>org.apidesign.bck2brwsr.kosample</Bundle-SymbolicName>
    36                   </instructions>
    37               </configuration>
    38           </plugin>
    39           <plugin>
    40               <groupId>org.apache.maven.plugins</groupId>
    41               <artifactId>maven-compiler-plugin</artifactId>
    42               <version>2.3.2</version>
    43               <configuration>
    44                   <source>1.8</source>
    45                   <target>1.8</target>
    46               </configuration>
    47           </plugin>
    48           <plugin>
    49               <groupId>org.apache.maven.plugins</groupId>
    50               <artifactId>maven-jar-plugin</artifactId>
    51               <version>2.4</version>
    52               <configuration>
    53                   <archive>
    54                       <manifest>
    55                           <mainClass>${project.mainclass}</mainClass>
    56                           <addClasspath>true</addClasspath>
    57                           <classpathPrefix>lib/</classpathPrefix>
    58                           <useUniqueVersions>false</useUniqueVersions>
    59                       </manifest>
    60                   </archive>
    61               </configuration>
    62           </plugin>
    63           <plugin>
    64               <artifactId>maven-source-plugin</artifactId>
    65               <version>2.2.1</version>
    66               <executions>
    67                   <execution>
    68                       <id>attach-sources</id>
    69                       <phase>post-integration-test</phase>
    70                       <goals>
    71                           <goal>jar-no-fork</goal>
    72                       </goals>
    73                   </execution>
    74               </executions>
    75           </plugin>
    76           <plugin>
    77               <groupId>org.codehaus.mojo</groupId>
    78               <artifactId>exec-maven-plugin</artifactId>
    79               <version>1.2.1</version>
    80                 <configuration>
    81                    <executable>${exec.java.bin}</executable>
    82                    <classpathScope>test</classpathScope>
    83                    <arguments>
    84                        <argument>-classpath</argument>
    85                        <classpath/>
    86                        <argument>-javaagent:${project.build.directory}/springloaded.jar</argument>
    87                        <argument>-noverify</argument>
    88                        <argument>-Dbrowser.rootdir=${basedir}/src/main/webapp/</argument>
    89                        <argument>-Dnetbeans.inspect.port=${netbeans.inspect.port}</argument>
    90                        <argument>${exec.debug.arg}</argument>
    91                        <argument>${project.mainclass}</argument>
    92                    </arguments>
    93                 </configuration>
    94           </plugin>
    95           <plugin>
    96               <groupId>org.apache.maven.plugins</groupId>
    97               <artifactId>maven-dependency-plugin</artifactId>
    98               <version>2.10</version>
    99               <executions>
   100                   <execution>
   101                       <id>copy</id>
   102                       <phase>package</phase>
   103                       <goals>
   104                           <goal>copy</goal>
   105                       </goals>
   106                       <configuration>
   107                           <artifactItems>
   108                               <artifactItem>
   109                                   <groupId>org.springframework</groupId>
   110                                   <artifactId>springloaded</artifactId>
   111                                   <version>1.2.3.RELEASE</version>
   112                                   <type>jar</type>
   113                                   <overWrite>false</overWrite>
   114                                   <destFileName>springloaded.jar</destFileName>
   115                               </artifactItem>
   116                           </artifactItems>
   117                           <outputDirectory>${project.build.directory}</outputDirectory>
   118                       </configuration>
   119                   </execution>
   120               </executions>
   121           </plugin>
   122           <plugin>
   123               <artifactId>maven-assembly-plugin</artifactId>
   124               <version>2.4</version>
   125               <executions>
   126                   <execution>
   127                       <id>web-pages</id>
   128                       <phase>package</phase>
   129                       <goals>
   130                           <goal>single</goal>
   131                       </goals>
   132                       <configuration>
   133                           <descriptors>
   134                               <descriptor>src/main/assembly/webpages.xml</descriptor>
   135                           </descriptors>
   136                       </configuration>
   137                   </execution>
   138               </executions>
   139           </plugin>
   140       </plugins>
   141   </build>
   142   <dependencies>
   143     <dependency>
   144         <groupId>org.netbeans.html</groupId>
   145         <artifactId>net.java.html</artifactId>
   146         <version>${net.java.html.version}</version>
   147     </dependency>
   148     <dependency>
   149         <groupId>org.netbeans.html</groupId>
   150         <artifactId>net.java.html.json</artifactId>
   151         <version>${net.java.html.version}</version>
   152     </dependency>
   153     <dependency>
   154         <groupId>org.netbeans.html</groupId>
   155         <artifactId>net.java.html.boot</artifactId>
   156         <version>${net.java.html.version}</version>
   157     </dependency>
   158     <dependency>
   159         <groupId>org.netbeans.html</groupId>
   160         <artifactId>net.java.html.sound</artifactId>
   161         <version>${net.java.html.version}</version>
   162     </dependency>
   163     <dependency>
   164         <groupId>org.netbeans.html</groupId>
   165         <artifactId>ko4j</artifactId>
   166         <version>${net.java.html.version}</version>
   167         <scope>runtime</scope>
   168     </dependency>
   169     <dependency>
   170       <groupId>org.testng</groupId>
   171       <artifactId>testng</artifactId>
   172       <scope>test</scope>
   173     </dependency>
   174     <dependency>
   175       <groupId>org.netbeans.html</groupId>
   176       <artifactId>net.java.html.boot.script</artifactId>
   177       <version>${net.java.html.version}</version>
   178       <scope>test</scope>
   179       <type>jar</type>
   180     </dependency>
   181     <dependency>
   182         <groupId>org.apidesign.bck2brwsr</groupId>
   183         <artifactId>kosample-js</artifactId>
   184         <version>${project.version}</version>
   185     </dependency>
   186     <dependency>
   187         <groupId>org.netbeans.html</groupId>
   188         <artifactId>net.java.html.boot.fx</artifactId>
   189         <version>${net.java.html.version}</version>
   190         <scope>provided</scope>
   191     </dependency>
   192   </dependencies>
   193   <profiles>
   194       <profile>
   195           <id>desktop</id>
   196           <dependencies>
   197               <dependency>
   198                   <groupId>org.netbeans.html</groupId>
   199                   <artifactId>net.java.html.boot.fx</artifactId>
   200                   <version>${net.java.html.version}</version>
   201                   <scope>runtime</scope>
   202               </dependency>
   203           </dependencies>
   204           <build>
   205               <plugins>
   206                   <plugin>
   207                       <artifactId>maven-assembly-plugin</artifactId>
   208                       <version>2.4</version>
   209                       <executions>
   210                           <execution>
   211                               <id>distro-assembly</id>
   212                               <phase>package</phase>
   213                               <goals>
   214                                   <goal>single</goal>
   215                               </goals>
   216                               <configuration>
   217                                   <descriptors>
   218                                       <descriptor>src/main/assembly/javafx.xml</descriptor>
   219                                   </descriptors>
   220                               </configuration>
   221                           </execution>
   222                       </executions>
   223                   </plugin>
   224               </plugins>
   225           </build>
   226       </profile>
   227   </profiles>
   228 </project>