pom.xml 5.25 KB
Newer Older
1
<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">
2 3 4
  <modelVersion>4.0.0</modelVersion>

	<parent>
5
		<groupId>org.ow2.frascati.tinfi.osgi.examples</groupId>
Lionel Seinturier's avatar
Lionel Seinturier committed
6
	    <artifactId>frascati-tinfi-helloworld</artifactId>
7
		<version>1.6-SNAPSHOT</version>
Lionel Seinturier's avatar
Lionel Seinturier committed
8
	    <relativePath>../pom.xml</relativePath>
9 10
	</parent>

11
    <artifactId>frascati-tinfi-helloworld-assembly</artifactId>
12
    <packaging>jar</packaging>
13
    <name>Tinfi OSGi Example HelloWorld - Assembly</name>
14 15 16 17 18 19 20 21
 
	<dependencies>
    	<dependency>
      		<groupId>junit</groupId>
      		<artifactId>junit</artifactId>
    	</dependency>

		<dependency>
22 23
			<groupId>org.ow2.frascati.tinfi.osgi.examples</groupId>
			<artifactId>frascati-tinfi-helloworld-interfaces</artifactId>
24 25 26
			<version>${project.version}</version>
		</dependency>
		<dependency>
27 28
			<groupId>org.ow2.frascati.tinfi.osgi.examples</groupId>
			<artifactId>frascati-tinfi-helloworld-client</artifactId>
29 30 31
			<version>${project.version}</version>
		</dependency>
		<dependency>
32 33
			<groupId>org.ow2.frascati.tinfi.osgi.examples</groupId>
			<artifactId>frascati-tinfi-helloworld-server</artifactId>
34 35 36 37
			<version>${project.version}</version>
		</dependency>

		<dependency>
38
			<groupId>org.ow2.fractal.juliac</groupId>
39 40 41 42
			<artifactId>juliac-julia-membranes-oo</artifactId>
			<version>${juliac.version}</version>
		</dependency>
		<dependency>
43
			<groupId>org.ow2.fractal.juliac.osgi</groupId>
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
			<artifactId>juliac-osgi-membranes-oo</artifactId>
			<version>${juliac.version}</version>
		</dependency>
		<dependency>
			<groupId>org.ow2.frascati.tinfi</groupId>
			<artifactId>frascati-tinfi-membranes-oo</artifactId>
			<version>${project.version}</version>
		</dependency>

		<!-- ============================= -->
		<!-- Dependency for generated code -->
		<!-- ============================= -->
		<dependency>
			<groupId>org.ow2.frascati.tinfi</groupId>
			<artifactId>frascati-tinfi-runtime</artifactId>
			<version>${project.version}</version>
		</dependency>
Lionel Seinturier's avatar
Lionel Seinturier committed
61
		<dependency>
62
			<groupId>org.ow2.fractal.juliac.osgi</groupId>
Lionel Seinturier's avatar
Lionel Seinturier committed
63 64 65
			<artifactId>juliac-osgi-runtime-felix</artifactId>
			<version>${juliac.version}</version>
		</dependency>
66 67 68 69 70 71 72 73 74
	</dependencies>
    
    <build>
        <plugins>

			<!-- ==================================== -->
			<!-- Generate and compile the application -->
			<!-- ==================================== -->
			<plugin>
75
				<groupId>org.ow2.fractal.juliac</groupId>
76
				<artifactId>juliac-maven-plugin</artifactId>
77 78 79 80 81
				<version>${juliac.version}</version>
				<executions>
					<execution>
						<id>juliac-compile</id>
						<phase>generate-sources</phase>
82
						<goals><goal>compile</goal></goals>
83 84 85 86 87
					</execution>
				</executions>
				<configuration>
					<adls><adl>example.hw.HelloWorld</adl></adls>
					<modules>
88
						<module>JCAPI</module>
89 90 91 92
						<module>FRACTAL_ADL</module>
						<module>org.ow2.frascati.tinfi.opt.oo.FCOOCtrlSourceCodeGenerator</module>
						<module>org.objectweb.fractal.juliac.osgi.FCOOCtrlSourceCodeGenerator</module>
						<module>OO</module>
93 94
					</modules>
					<compileInput>false</compileInput>
Lionel Seinturier's avatar
Lionel Seinturier committed
95
					<!-- debug>true</debug -->
96
				</configuration>
97 98 99 100 101 102 103 104 105 106 107 108
				<dependencies>
					<dependency>
						<groupId>org.ow2.frascati.tinfi</groupId>
						<artifactId>frascati-tinfi-oo</artifactId>
						<version>${project.version}</version>
					</dependency>
					<dependency>
						<groupId>org.ow2.fractal.juliac.osgi</groupId>
						<artifactId>juliac-osgi-opt-oo</artifactId>
						<version>${juliac.version}</version>
					</dependency>
				</dependencies>
109 110 111 112 113 114 115 116 117 118 119 120
			</plugin>

			<!-- ==================================== -->
			<!-- Copy bundles in target/classes       -->
			<!-- ==================================== -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <executions>
                    <execution>
                        <id>copy-bundles</id>
                        <phase>generate-resources</phase>
121
                        <goals><goal>copy</goal></goals>
122 123 124 125 126
                        <configuration>
							<outputDirectory>${project.build.directory}/classes</outputDirectory>
							<stripVersion>true</stripVersion>  <!-- Remove version number -->
                            <artifactItems>
                                <artifactItem>
127 128
                                    <groupId>org.ow2.frascati.tinfi.osgi.examples</groupId>
                                    <artifactId>frascati-tinfi-helloworld-interfaces</artifactId>
129 130 131
                                    <version>${project.version}</version>
                                </artifactItem>
                                <artifactItem>
132 133
                                    <groupId>org.ow2.frascati.tinfi.osgi.examples</groupId>
                                    <artifactId>frascati-tinfi-helloworld-client</artifactId>
134 135 136 137 138 139 140 141 142 143 144 145
                                    <version>${project.version}</version>
                                </artifactItem>
                            </artifactItems>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
	
        </plugins>
    </build>

</project>