Shared resources bundle
authorGeorgios Gousios <gousiosg@gmail.com>
Fri, 16 Sep 2011 08:12:13 +0000 (11:12 +0300)
committerGeorgios Gousios <gousiosg@gmail.com>
Fri, 16 Sep 2011 08:12:13 +0000 (11:12 +0300)
The bundle will contain all shared resources required for testing (data,
configuration etc)

model/pom.xml
pom.xml
shared/pom.xml [new file with mode: 0644]
shared/src/main/assembly/resources.xml [new file with mode: 0644]
shared/src/main/resources/shared.txt [new file with mode: 0644]

index 89aa298..9fd4183 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <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/xsd/maven-4.0.0.xsd">
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 
 
   <modelVersion>4.0.0</modelVersion>
       <version>1.4</version>
       <scope>test</scope>
     </dependency>
+    <dependency>
+      <groupId>gr.grnet.aquarium</groupId>
+      <artifactId>shared</artifactId>
+      <version>0.0.1-SNAPSHOT</version>
+      <classifier>resources</classifier>
+      <type>zip</type>
+      <scope>provided</scope>
+    </dependency>
   </dependencies>
 
   <repositories>
       <url>http://www.eclipse.org/downloads/download.php?r=1&amp;nf=1&amp;file=/rt/eclipselink/maven.repo</url>
     </repository>
   </repositories>
+
+  <build>
+    <resources>
+      <resource>
+        <directory>${basedir}/src/main/resources</directory>
+      </resource>
+      <resource>
+        <directory>${project.build.directory}/generated-resources</directory>
+        <filtering>true</filtering>
+      </resource>
+    </resources>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-dependency-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>unpack-shared-resources</id>
+            <goals>
+              <goal>unpack-dependencies</goal>
+            </goals>
+            <phase>generate-resources</phase>
+            <configuration>
+              <outputDirectory>${project.build.directory}/generated-resources
+              </outputDirectory>
+              <includeArtifacIds>shared</includeArtifacIds>
+              <includeGroupIds>${project.groupId}</includeGroupIds>
+              <excludeTransitive>true</excludeTransitive>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+
 </project>
diff --git a/pom.xml b/pom.xml
index 6f4854b..787d1ba 100644 (file)
--- a/pom.xml
+++ b/pom.xml
     <connection>scm:git:https://code.grnet.gr/git/aquarium</connection>
   </scm>
 
+  <issueManagement>
+    <system>redmine</system>
+    <url>http://code.grnet.gr/projects/aquarium/issuses</url>
+  </issueManagement>
+
   <!--Common project settings-->
   <properties>
     <scala.version>2.9.1</scala.version>
           <scmCommentPrefix/>
         </configuration>
       </plugin>
+      <plugin>
+        <groupId>org.nuiton.jredmine</groupId>
+        <artifactId>maven-jredmine-plugin</artifactId>
+        <version>1.2.2</version>
+      </plugin>
       <!-- Produces configuration files for Intellij Idea -->
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
   <modules>
     <module>model</module>
     <module>logic</module>
+    <module>shared</module>
   </modules>
 </project>
diff --git a/shared/pom.xml b/shared/pom.xml
new file mode 100644 (file)
index 0000000..e73924b
--- /dev/null
@@ -0,0 +1,42 @@
+<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>
+
+  <parent>
+    <groupId>gr.grnet</groupId>
+    <artifactId>aquarium</artifactId>
+    <version>0.0.1-SNAPSHOT</version>
+  </parent>
+
+  <groupId>gr.grnet.aquarium</groupId>
+  <artifactId>shared</artifactId>
+  <version>0.0.1-SNAPSHOT</version>
+
+  <packaging>pom</packaging>
+  <name>Aquarium Shared Resources</name>
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-assembly-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>make shared resources</id>
+            <goals>
+              <goal>single</goal>
+            </goals>
+            <phase>package</phase>
+            <configuration>
+              <descriptors>
+                <descriptor>src/main/assembly/resources.xml</descriptor>
+              </descriptors>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+</project>
+
diff --git a/shared/src/main/assembly/resources.xml b/shared/src/main/assembly/resources.xml
new file mode 100644 (file)
index 0000000..dc76377
--- /dev/null
@@ -0,0 +1,13 @@
+<assembly>
+    <id>resources</id>
+    <formats>
+        <format>zip</format>
+    </formats>
+    <includeBaseDirectory>false</includeBaseDirectory>
+    <fileSets>
+        <fileSet>
+            <directory>src/main/resources</directory>
+            <outputDirectory></outputDirectory>
+        </fileSet>
+    </fileSets>
+</assembly>
diff --git a/shared/src/main/resources/shared.txt b/shared/src/main/resources/shared.txt
new file mode 100644 (file)
index 0000000..da61e71
--- /dev/null
@@ -0,0 +1,2 @@
+This Readme is included in ${project.artifactId}-
+${project.version}.${project.packaging}