pom.xml 3.83 KB
Newer Older
1 2 3
<?xml version="1.0"?>
<!--
  * OW2 FraSCAti FScript
4
  * Copyright (c) 2009-2011 INRIA, University of Lille 1
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
  *
  * 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
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
-->
<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">
  <modelVersion>4.0.0</modelVersion>

  <groupId>org.ow2.frascati</groupId>
  <artifactId>frascati-fscript-console</artifactId>
  <packaging>jar</packaging>

  <name>OW2 FraSCAti FScript Console</name>
  <inceptionYear>2009</inceptionYear>

  <parent>
    <groupId>org.ow2.frascati</groupId>
32
    <artifactId>frascati-modules</artifactId>
33
    <version>1.5-SNAPSHOT</version>
Christophe Demarey's avatar
Christophe Demarey committed
34
    <relativePath>../../pom.xml</relativePath>
35 36 37 38 39 40 41 42 43 44 45
  </parent>
  
  <!-- ============= -->
  <!-- Dependencies  -->
  <!-- ============= -->

  <dependencies>
    <!-- OW2 FraSCAti FScript core -->
    <dependency>
      <groupId>org.ow2.frascati</groupId>
      <artifactId>frascati-fscript-core</artifactId>
46
      <version>${project.version}</version>
47 48
    </dependency>

49 50 51 52 53 54
    <dependency>
        <groupId>jline</groupId>
        <artifactId>jline</artifactId>
        <version>0.9.92</version>
    </dependency>

55 56 57 58 59
   <!-- FScript -->
    <dependency>
        <groupId>org.objectweb.fractal.fscript</groupId>
        <artifactId>fscript-console</artifactId>
        <version>${fscript.version}</version>
60 61 62 63 64 65 66
        
        <exclusions>
          <exclusion>
            <artifactId>jline</artifactId>
            <groupId>jline</groupId>
          </exclusion>
        </exclusions>
67 68 69 70 71 72 73 74
    </dependency>
  </dependencies>
  
  <!-- ========= -->
  <!-- Profiles  -->
  <!-- ========= -->

  <profiles>
75
    <!-- To execute FraSCAtiScript console type 'mvn -Pconsole'. -->
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
    <profile>
      <id>console</id>
      
      <build>
        <defaultGoal>exec:java</defaultGoal>
        
        <plugins>
          <!-- Run the FraSCAtiScript console --> 
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>exec-maven-plugin</artifactId>            
            <configuration>
            	<mainClass>org.ow2.frascati.fscript.console.Main</mainClass>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117

    <!-- To execute FraSCAtiScript console with FraSCAti Explore type 'mvn -Pconsole-explorer'. -->
    <profile>
      <id>console-explorer</id>
      
      <build>
        <defaultGoal>exec:java</defaultGoal>
        
        <plugins>
          <!-- Run the FraSCAtiScript console --> 
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>exec-maven-plugin</artifactId>            
            <configuration>
            	<mainClass>org.ow2.frascati.fscript.console.Main</mainClass>
            </configuration>
          </plugin>
        </plugins>
      </build>
 
      <dependencies>
        <dependency>
          <groupId>org.ow2.frascati</groupId>
          <artifactId>frascati-explorer-fscript-plugin</artifactId>
118
          <version>${project.version}</version>
119 120 121
        </dependency>
      </dependencies>
    </profile>
122 123 124
  </profiles>

</project>