chat/client/pom.xml
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Fri, 22 Apr 2016 05:56:47 +0200
branchNewChat
changeset 238 a0f15cb8c730
parent 144 f784d803f065
permissions -rw-r--r--
Switching to newer version of the libraries
     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.demo</groupId>
     8       <artifactId>chat-pom</artifactId>
     9       <version>1.0-SNAPSHOT</version>
    10   </parent>
    11 
    12   <groupId>org.apidesign.demo</groupId>
    13   <artifactId>chat</artifactId>
    14   <version>1.0-SNAPSHOT</version>
    15   <packaging>bundle</packaging>
    16 
    17   <name>chat General Client Code</name>
    18 
    19   <properties>
    20     <netbeans.compile.on.save>all</netbeans.compile.on.save>
    21     <project.mainclass>org.apidesign.demo.chat.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.demo.chat</Export-Package>
    35                       <Bundle-SymbolicName>org.apidesign.demo.chat</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.7</source>
    45                   <target>1.7</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               <groupId>org.codehaus.mojo</groupId>
    65               <artifactId>exec-maven-plugin</artifactId>
    66               <version>1.2.1</version>
    67                 <configuration>
    68                    <executable>${exec.java.bin}</executable>
    69                    <classpathScope>test</classpathScope>
    70                    <arguments>
    71                        <argument>-classpath</argument>
    72                        <classpath/>
    73                        <argument>-javaagent:${project.build.directory}/springloaded.jar</argument>
    74                        <argument>-noverify</argument>
    75                        <argument>-Dbrowser.rootdir=${basedir}/src/main/webapp/</argument>
    76                        <argument>-Dnetbeans.inspect.port=${netbeans.inspect.port}</argument>
    77                        <argument>${exec.debug.arg}</argument>
    78                        <argument>${project.mainclass}</argument>
    79                    </arguments>
    80                 </configuration>
    81           </plugin>
    82           <plugin>
    83               <groupId>org.apache.maven.plugins</groupId>
    84               <artifactId>maven-dependency-plugin</artifactId>
    85               <version>2.10</version>
    86               <executions>
    87                   <execution>
    88                       <id>copy</id>
    89                       <phase>package</phase>
    90                       <goals>
    91                           <goal>copy</goal>
    92                       </goals>
    93                       <configuration>
    94                           <artifactItems>
    95                               <artifactItem>
    96                                   <groupId>org.springframework</groupId>
    97                                   <artifactId>springloaded</artifactId>
    98                                   <version>1.2.3.RELEASE</version>
    99                                   <type>jar</type>
   100                                   <overWrite>false</overWrite>
   101                                   <destFileName>springloaded.jar</destFileName>
   102                               </artifactItem>
   103                           </artifactItems>
   104                           <outputDirectory>${project.build.directory}</outputDirectory>
   105                       </configuration>
   106                   </execution>
   107               </executions>
   108           </plugin>
   109           <plugin>
   110               <artifactId>maven-assembly-plugin</artifactId>
   111               <version>2.4</version>
   112               <executions>
   113                   <execution>
   114                       <id>web-pages</id>
   115                       <phase>package</phase>
   116                       <goals>
   117                           <goal>single</goal>
   118                       </goals>
   119                       <configuration>
   120                           <descriptors>
   121                               <descriptor>src/main/assembly/webpages.xml</descriptor>
   122                           </descriptors>
   123                       </configuration>
   124                   </execution>
   125               </executions>
   126           </plugin>
   127       </plugins>
   128   </build>
   129   <dependencies>
   130     <dependency>
   131         <groupId>org.apidesign.demo</groupId>
   132         <artifactId>chat-js</artifactId>
   133         <version>${project.version}</version>
   134     </dependency>
   135     <dependency>
   136         <groupId>org.apidesign.demo</groupId>
   137         <artifactId>chat-shared</artifactId>
   138         <version>${project.version}</version>
   139     </dependency>
   140     <dependency>
   141         <groupId>org.netbeans.html</groupId>
   142         <artifactId>net.java.html</artifactId>
   143         <version>${net.java.html.version}</version>
   144     </dependency>
   145     <dependency>
   146         <groupId>org.netbeans.html</groupId>
   147         <artifactId>net.java.html.json</artifactId>
   148         <version>${net.java.html.version}</version>
   149     </dependency>
   150     <dependency>
   151         <groupId>org.netbeans.html</groupId>
   152         <artifactId>net.java.html.boot</artifactId>
   153         <version>${net.java.html.version}</version>
   154     </dependency>
   155     <dependency>
   156         <groupId>org.netbeans.html</groupId>
   157         <artifactId>net.java.html.sound</artifactId>
   158         <version>${net.java.html.version}</version>
   159     </dependency>
   160     <dependency>
   161         <groupId>org.netbeans.html</groupId>
   162         <artifactId>ko4j</artifactId>
   163         <version>${net.java.html.version}</version>
   164         <scope>runtime</scope>
   165     </dependency>
   166     <dependency>
   167       <groupId>org.testng</groupId>
   168       <artifactId>testng</artifactId>
   169       <scope>test</scope>
   170     </dependency>
   171     <dependency>
   172       <groupId>org.netbeans.html</groupId>
   173       <artifactId>net.java.html.boot.script</artifactId>
   174       <version>${net.java.html.version}</version>
   175       <scope>test</scope>
   176       <type>jar</type>
   177     </dependency>
   178     <dependency>
   179         <groupId>org.netbeans.html</groupId>
   180         <artifactId>net.java.html.boot.fx</artifactId>
   181         <version>${net.java.html.version}</version>
   182         <scope>provided</scope>
   183     </dependency>
   184   </dependencies>
   185   <profiles>
   186       <profile>
   187           <id>desktop</id>
   188           <dependencies>
   189               <dependency>
   190                   <groupId>org.netbeans.html</groupId>
   191                   <artifactId>net.java.html.boot.fx</artifactId>
   192                   <version>${net.java.html.version}</version>
   193                   <scope>runtime</scope>
   194               </dependency>
   195           </dependencies>
   196           <build>
   197               <plugins>
   198                   <plugin>
   199                       <artifactId>maven-assembly-plugin</artifactId>
   200                       <version>2.4</version>
   201                       <executions>
   202                           <execution>
   203                               <id>distro-assembly</id>
   204                               <phase>package</phase>
   205                               <goals>
   206                                   <goal>single</goal>
   207                               </goals>
   208                               <configuration>
   209                                   <descriptors>
   210                                       <descriptor>src/main/assembly/javafx.xml</descriptor>
   211                                   </descriptors>
   212                               </configuration>
   213                           </execution>
   214                       </executions>
   215                   </plugin>
   216               </plugins>
   217           </build>
   218       </profile>
   219   </profiles>
   220 </project>