Commit 45ff34e4 authored by Philippe Merle's avatar Philippe Merle
Browse files

* Added a new parent pom for all modules requiring to compile SCA composites...

* Added a new parent pom for all modules requiring to compile SCA composites with OW2 Fractal Juliac.
* Copied src/main/resources/* into target/classes/* before executing OW2 Juliac Maven plugin.
* Excluded src/main/resources from the class loader used by the OW2 FraSCAti SCA Parser.
parent f5dd2a1f
......@@ -2,7 +2,7 @@
<!--
* OW2 FraSCAti: Assembly Factory with Juliac, JDT and Tinfi OO
*
* Copyright (c) 2007-2010 INRIA
* Copyright (c) 2007-2010 INRIA, University of Lille 1
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
......@@ -30,7 +30,7 @@
<parent>
<groupId>org.ow2.frascati</groupId>
<artifactId>frascati-modules</artifactId>
<artifactId>frascati-sca-compiler-parent</artifactId>
<version>1.3-SNAPSHOT</version>
</parent>
......@@ -79,23 +79,21 @@
<plugins>
<!-- Force to copy src/main/resources/* to target/classes/* before executing the Juliac Tinfi SCA Parser plugin. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
<!-- Compile the Fractal architecture of the OW2 FraSCAti assembly factory with JuliaC. -->
<plugin>
<groupId>org.objectweb.fractal.juliac</groupId>
<artifactId>maven-juliac-plugin</artifactId>
<configuration>
<adls>
<adl>org.ow2.frascati.bootstrap.FraSCAtiJDT</adl>
</adls>
<adlParser>org.ow2.frascati.tinfi.FrascatiTinfiScaParser</adlParser>
</configuration>
<dependencies>
<dependency>
<groupId>org.ow2.frascati</groupId>
<artifactId>frascati-tinfi-sca-parser</artifactId>
<version>${frascati.version}</version>
</dependency>
</dependencies>
<groupId>org.objectweb.fractal.juliac</groupId>
<artifactId>maven-juliac-plugin</artifactId>
<configuration>
<adls>
<adl>org.ow2.frascati.bootstrap.FraSCAtiJDT</adl>
</adls>
</configuration>
</plugin>
</plugins>
......
......@@ -37,7 +37,7 @@
<parent>
<groupId>org.ow2.frascati</groupId>
<artifactId>frascati-modules</artifactId>
<artifactId>frascati-sca-compiler-parent</artifactId>
<version>1.3-SNAPSHOT</version>
</parent>
......@@ -82,6 +82,12 @@
<plugins>
<!-- Force to copy src/main/resources/* to target/classes/* before executing the Juliac Tinfi SCA Parser plugin. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
<!--
Compile the architecture of the OW2 FraSCAti assembly factory
with OW2 Fractal JuliaC.
......@@ -94,15 +100,7 @@
<adl>org.ow2.frascati.bootstrap.FraSCAti</adl>
<adl>org.ow2.frascati.assembly.factory.EmptyComposite</adl>
</adls>
<adlParser>org.ow2.frascati.tinfi.FrascatiTinfiScaParser</adlParser>
</configuration>
<dependencies>
<dependency>
<groupId>org.ow2.frascati</groupId>
<artifactId>frascati-tinfi-sca-parser</artifactId>
<version>${frascati.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
......
......@@ -2,7 +2,7 @@
<!--
* OW2 FraSCAti: Component Factory with Juliac and JDT
*
* Copyright (c) 2007-2010 INRIA
* Copyright (c) 2007-2010 INRIA, University of Lille 1
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
......@@ -30,7 +30,7 @@
<parent>
<groupId>org.ow2.frascati</groupId>
<artifactId>frascati-modules</artifactId>
<artifactId>frascati-sca-compiler-parent</artifactId>
<version>1.3-SNAPSHOT</version>
</parent>
......@@ -76,6 +76,11 @@
<defaultGoal>install</defaultGoal>
<plugins>
<!-- Force to copy src/main/resources/* to target/classes/* before executing the Juliac Tinfi SCA Parser plugin. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
<!-- Compile the OW2 FraSCAti component factory Juliac SCA composite with OW2 Fractal JuliaC. -->
<plugin>
......@@ -85,15 +90,7 @@
<adls>
<adl>org.ow2.frascati.component.factory.juliac.Juliac</adl>
</adls>
<adlParser>org.ow2.frascati.tinfi.FrascatiTinfiScaParser</adlParser>
</configuration>
<dependencies>
<dependency>
<groupId>org.ow2.frascati</groupId>
<artifactId>frascati-tinfi-sca-parser</artifactId>
<version>${frascati.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
......
......@@ -2,7 +2,7 @@
<!--
* OW2 FraSCAti: Component Factory with Juliac and Tinfi Object-Oriented Membranes Generator
*
* Copyright (c) 2007-2010 INRIA
* Copyright (c) 2007-2010 INRIA, University of Lille 1
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
......@@ -30,7 +30,7 @@
<parent>
<groupId>org.ow2.frascati</groupId>
<artifactId>frascati-modules</artifactId>
<artifactId>frascati-sca-compiler-parent</artifactId>
<version>1.3-SNAPSHOT</version>
</parent>
......@@ -76,6 +76,11 @@
<defaultGoal>install</defaultGoal>
<plugins>
<!-- Force to copy src/main/resources/* to target/classes/* before executing the Juliac Tinfi SCA Parser plugin. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
<!-- Compile the OW2 FraSCAti component factory Juliac SCA composite with OW2 Fractal JuliaC. -->
<plugin>
......@@ -85,15 +90,7 @@
<adls>
<adl>org.ow2.frascati.component.factory.juliac.Juliac</adl>
</adls>
<adlParser>org.ow2.frascati.tinfi.FrascatiTinfiScaParser</adlParser>
</configuration>
<dependencies>
<dependency>
<groupId>org.ow2.frascati</groupId>
<artifactId>frascati-tinfi-sca-parser</artifactId>
<version>${frascati.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
......
......@@ -2,7 +2,7 @@
<!--
* OW2 FraSCAti: Component Factory with Juliac
*
* Copyright (c) 2007-2010 INRIA
* Copyright (c) 2007-2010 INRIA, University of Lille 1
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
......@@ -30,7 +30,7 @@
<parent>
<groupId>org.ow2.frascati</groupId>
<artifactId>frascati-modules</artifactId>
<artifactId>frascati-sca-compiler-parent</artifactId>
<version>1.3-SNAPSHOT</version>
</parent>
......@@ -75,6 +75,11 @@
<defaultGoal>install</defaultGoal>
<plugins>
<!-- Force to copy src/main/resources/* to target/classes/* before executing the Juliac Tinfi SCA Parser plugin. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
<!-- Compile the OW2 FraSCAti component factory Juliac SCA composite with OW2 Fractal JuliaC. -->
<plugin>
......@@ -84,15 +89,7 @@
<adls>
<adl>org.ow2.frascati.component.factory.juliac.Juliac</adl>
</adls>
<adlParser>org.ow2.frascati.tinfi.FrascatiTinfiScaParser</adlParser>
</configuration>
<dependencies>
<dependency>
<groupId>org.ow2.frascati</groupId>
<artifactId>frascati-tinfi-sca-parser</artifactId>
<version>${frascati.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
......
......@@ -2,7 +2,7 @@
<!--
* OW2 FraSCAti: Component Factory with Tinfi Object-Oriented Membranes
*
* Copyright (c) 2007-2010 INRIA
* Copyright (c) 2007-2010 INRIA, University of Lille 1
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
......@@ -29,7 +29,7 @@
<parent>
<groupId>org.ow2.frascati</groupId>
<artifactId>frascati-modules</artifactId>
<artifactId>frascati-sca-compiler-parent</artifactId>
<version>1.3-SNAPSHOT</version>
</parent>
......@@ -74,6 +74,11 @@
<defaultGoal>install</defaultGoal>
<plugins>
<!-- Force to copy src/main/resources/* to target/classes/* before executing the Juliac Tinfi SCA Parser plugin. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
<!-- Compile the OW2 FraSCAti component factory Tinfi SCA composite with OW2 Fractal JuliaC. -->
<plugin>
......@@ -83,15 +88,7 @@
<adls>
<adl>org.ow2.frascati.component.factory.ComponentFactory</adl>
</adls>
<adlParser>org.ow2.frascati.tinfi.FrascatiTinfiScaParser</adlParser>
</configuration>
<dependencies>
<dependency>
<groupId>org.ow2.frascati</groupId>
<artifactId>frascati-tinfi-sca-parser</artifactId>
<version>${frascati.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
......
......@@ -2,7 +2,7 @@
<!--
* OW2 FraSCAti: Component Factory
*
* Copyright (c) 2007-2010 INRIA
* Copyright (c) 2007-2010 INRIA, University of Lille 1
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
......@@ -29,7 +29,7 @@
<parent>
<groupId>org.ow2.frascati</groupId>
<artifactId>frascati-modules</artifactId>
<artifactId>frascati-sca-compiler-parent</artifactId>
<version>1.3-SNAPSHOT</version>
</parent>
......@@ -74,6 +74,11 @@
<defaultGoal>install</defaultGoal>
<plugins>
<!-- Force to copy src/main/resources/* to target/classes/* before executing the Juliac Tinfi SCA Parser plugin. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
<!-- Compile the OW2 FraSCAti component factory SCA composite with OW2 Fractal JuliaC. -->
<plugin>
......@@ -83,15 +88,7 @@
<adls>
<adl>org.ow2.frascati.component.factory.ComponentFactory</adl>
</adls>
<adlParser>org.ow2.frascati.tinfi.FrascatiTinfiScaParser</adlParser>
</configuration>
<dependencies>
<dependency>
<groupId>org.ow2.frascati</groupId>
<artifactId>frascati-tinfi-sca-parser</artifactId>
<version>${frascati.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
......
......@@ -2,7 +2,7 @@
<!--
* OW2 FraSCAti: SCA Implementation Fractal
*
* Copyright (c) 2010 INRIA, USTL
* Copyright (c) 2010 INRIA, University of Lille 1
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
......@@ -36,7 +36,7 @@
<parent>
<groupId>org.ow2.frascati</groupId>
<artifactId>frascati-modules</artifactId>
<artifactId>frascati-sca-compiler-parent</artifactId>
<version>1.3-SNAPSHOT</version>
</parent>
......@@ -87,6 +87,12 @@
<defaultGoal>install</defaultGoal>
<plugins>
<!-- Force to copy src/main/resources/* to target/classes/* before executing the Juliac Tinfi SCA Parser plugin. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
<!-- Compile the OW2 FraSCAti composite with OW2 Fractal JuliaC. -->
<plugin>
<groupId>org.objectweb.fractal.juliac</groupId>
......@@ -95,15 +101,7 @@
<adls>
<adl>org.ow2.frascati.bootstrap.FraSCAtiFractal</adl>
</adls>
<adlParser>org.ow2.frascati.tinfi.FrascatiTinfiScaParser</adlParser>
</configuration>
<dependencies>
<dependency>
<groupId>org.ow2.frascati</groupId>
<artifactId>frascati-tinfi-sca-parser</artifactId>
<version>${frascati.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
......
<?xml version="1.0"?>
<!--
* OW2 FraSCAti: Assembly Factory Module
*
* Copyright (c) 2010 INRIA, University of Lille 1
*
* 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
*
* Contact: frascati@ow2.org
*
* Author: Philippe Merle
*
* Contributor(s):
*
-->
<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>
<!-- ===================== -->
<!-- General Information -->
<!-- ===================== -->
<parent>
<groupId>org.ow2.frascati</groupId>
<artifactId>frascati-modules</artifactId>
<version>1.3-SNAPSHOT</version>
</parent>
<groupId>org.ow2.frascati</groupId>
<artifactId>frascati-sca-compiler-parent</artifactId>
<packaging>pom</packaging>
<name>OW2 FraSCAti: SCA Compiler (with Juliac/Tinfi SCA ADL/SCA Parser) Parent</name>
<url>http://frascati.ow2.org/</url>
<inceptionYear>2007</inceptionYear>
<developers>
<developer>
<id>merle</id>
<name>Philippe Merle</name>
<email>Philippe.Merle@inria.fr</email>
<organization>INRIA</organization>
<organizationUrl>http://www.inria.fr</organizationUrl>
<roles>
<role>Architect</role>
<role>Developer</role>
</roles>
</developer>
</developers>
<!-- ======= -->
<!-- Build -->
<!-- ======= -->
<build>
<defaultGoal>install</defaultGoal>
<pluginManagement>
<plugins>
<!--
Compile the SCA composite with OW2 Fractal Juliac and the OW2 FraSCAti Tinfi SCA Parser plugin.
-->
<plugin>
<groupId>org.objectweb.fractal.juliac</groupId>
<artifactId>maven-juliac-plugin</artifactId>
<configuration>
<adlParser>org.ow2.frascati.tinfi.FrascatiTinfiScaParser</adlParser>
<modules>
<module>org.ow2.frascati.tinfi:frascati-tinfi-oo:${tinfi.version}</module>
<module>org.ow2.frascati:frascati-tinfi-sca-parser:${frascati.version}</module>
</modules>
</configuration>
<dependencies>
<dependency>
<groupId>org.ow2.frascati</groupId>
<artifactId>frascati-tinfi-sca-parser</artifactId>
<version>${frascati.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<!-- Force to copy src/main/resources/* to target/classes/* before executing the Juliac Tinfi SCA Parser plugin. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-resources</id>
<phase>generate-sources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target/classes</outputDirectory>
<resources>
<resource>
<directory>${basedir}/src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<!-- ============ -->
<!-- Dependencies -->
<!-- ============ -->
<dependencies>
</dependencies>
<!-- ============= -->
<!-- Repositories -->
<!-- ============= -->
<repositories>
</repositories>
</project>
......@@ -97,7 +97,9 @@ public class FrascatiTinfiScaParser
List<URL> urls = new ArrayList<URL>();
for(URL url : juliacClassLoaderUrls) {
if(!parentClassLoaderUrls.contains(url)) {
urls.add(url);
if(!url.toString().endsWith("src/main/resources/")) {
urls.add(url);
}
}
}
......
......@@ -93,10 +93,6 @@
<mixin>org.ow2.frascati.tinfi:frascati-tinfi-mixins:${tinfi.version}:sources</mixin>
<mixin>org.objectweb.fractal.julia:julia-mixins:${julia.version}:sources</mixin>
</mixins>
<modules>
<module>org.ow2.frascati.tinfi:frascati-tinfi-oo:${tinfi.version}</module>
<module>org.ow2.frascati:frascati-tinfi-sca-parser:${frascati.version}</module>
</modules>
<compileGenerated>false</compileGenerated>
<compilationWarnings>true</compilationWarnings>
<!--
......@@ -198,7 +194,9 @@
<!-- ======= -->
<modules>
<!--
<module>frascati-all</module>
-->
<!-- TODO
<module>frascati-all-jdt</module>
......@@ -209,8 +207,10 @@
<module>frascati-binding-factory</module>
<module>frascati-binding-http</module>
<!-- -->
<module>frascati-binding-jms</module>
<module>frascati-binding-jms/tests</module>
<!-- -->
<module>frascati-binding-jsonrpc</module>
<module>frascati-binding-rest</module>
<module>frascati-binding-rmi</module>
......@@ -223,7 +223,9 @@
<module>frascati-component-factory-juliac-tinfi-oo</module>
<module>frascati-component-factory-tinfi-oo</module>
<!-- -->
<module>frascati-implementation-bpel</module>
<!-- -->
<module>frascati-implementation-fractal</module>
<module>frascati-implementation-osgi</module>
<module>frascati-implementation-osgi-equinox</module>
......@@ -243,7 +245,10 @@
<module>frascati-property-jaxb</module>
<module>frascati-sca-compiler-parent</module>
<!-- -->
<module>frascati-sca-parser</module>
<!-- -->
<module>frascati-tinfi-sca-parser</module>
<module>frascati-servlet-cxf</module>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment