pom.xml 6.34 KB
Newer Older
1 2 3 4
<?xml version="1.0"?>
<!--
  * OW2 FraSCAti Examples: Chat client.
  *
5
  * Copyright (c) 2009-2012 Inria, University of Lille 1
6 7 8 9 10 11 12 13 14 15 16 17 18
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
  * version 2 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
  * License along with this library; if not, write to the Free Software
19 20
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  * USA
21 22 23 24 25 26 27
  *
  * Contact: frascati@ow2.org
  *
  * Author: Christophe Demarey
  *
  * Contributor(s): Philippe Merle
  *
28
-->
29
<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/maven-v4_0_0.xsd">
30 31 32 33 34
  <modelVersion>4.0.0</modelVersion>
  
  <parent>
    <groupId>org.ow2.frascati.examples</groupId>
    <artifactId>chat-parent</artifactId>
35
    <version>1.5</version>
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
  </parent>
  
  <artifactId>chat-client</artifactId>
  <packaging>jar</packaging>  
  <name>OW2 FraSCAti Examples: Chat client</name>
  
  <dependencies>
    <dependency>
      <groupId>org.jdesktop</groupId>
      <artifactId>appframework</artifactId>
      <version>1.0.3</version>
    </dependency>
  </dependencies>
  
  <profiles>
  
    <!-- Run the chat client GUI. -->
    <profile>
      <id>run</id>
      <build>
        <defaultGoal>compile</defaultGoal>
        <plugins>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>exec-maven-plugin</artifactId>
            <executions>
              <execution>
                <goals>
                  <goal>exec</goal>
                </goals>
                <phase>compile</phase>
              </execution>
            </executions>
            <configuration>
              <executable>java</executable>
              <arguments>
                <argument>-classpath</argument>
                <!-- automatically creates the classpath using all project dependencies, 
                     also adding the project build directory -->
75
                <classpath />
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
                <argument>examples.chat.client.gui.ChatGUI</argument>
              </arguments>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
    
    <!-- Run the chat basic command line client. -->
    <!-- Note: This is the same profile as the run profile defined in examples parent pom,
               but we need to redefine it as 'run.cmd' to let the GUI client as default. -->
    <profile>                                             
      <id>run.cmd</id>                                        
                                                          
      <properties>
        <composite.file>chat-cmdline-client</composite.file>
        <service.name>r</service.name>
        <method.name>run</method.name>
      </properties>

      <build>                                             
97
        <defaultGoal>org.ow2.frascati.mojo:frascati-launcher-plugin:exec</defaultGoal>
98 99
        <plugins>                                                                                    
          <plugin>                                                                                                         
100 101
            <groupId>org.ow2.frascati.mojo</groupId>                                                                    
            <artifactId>frascati-launcher-plugin</artifactId>                                                               
102 103 104 105 106 107 108 109 110
            <executions>                                                                                                   
              <execution>                                                                                                  
                <phase>package</phase>                                                                                     
                <goals>                                                                                                    
                  <goal>exec</goal>                                                                                        
                </goals>                                                                                                   
              </execution>                                                                                                 
            </executions>                                                                                                  
            <configuration>                                                                                                
111
              <loggingConfFile>${java.util.logging.config.file}</loggingConfFile>                                                      
112 113 114
              <composite>${composite.file}</composite>                                                                     
              <service>${service.name}</service>                                                                           
              <method>${method.name}</method>                                                                              
115 116 117 118 119 120
              <methodParams>${method.params}</methodParams>
              <systemProperties>
                <org.ow2.frascati.class>${org.ow2.frascati.class}</org.ow2.frascati.class>
                <org.ow2.frascati.bootstrap>${org.ow2.frascati.bootstrap}</org.ow2.frascati.bootstrap>
                <org.ow2.frascati.composite>${org.ow2.frascati.composite}</org.ow2.frascati.composite>
              </systemProperties>                                                                
121 122 123 124 125 126 127 128
            </configuration>                                                                                               
          </plugin>                                                                                                        
        </plugins>                                                                                                         
      </build>  
    </profile>  
  </profiles>
  
</project>