fabio.simeoni 11 years ago
commit
78deb69560
  1. 22
      .project
  2. 5
      .settings/org.eclipse.m2e.core.prefs
  3. 8
      .settings/org.maven.ide.eclipse.prefs
  4. 244
      pom.xml

22
.project

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>maven-parent</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.maven.ide.eclipse.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>

5
.settings/org.eclipse.m2e.core.prefs

@ -0,0 +1,5 @@
#Fri Aug 26 19:44:45 BST 2011
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1

8
.settings/org.maven.ide.eclipse.prefs

@ -0,0 +1,8 @@
#Sat Jul 09 20:33:14 BST 2011
activeProfiles=
eclipse.preferences.version=1
fullBuildGoals=process-test-resources
resolveWorkspaceProjects=true
resourceFilterGoals=process-resources resources\:testResources
skipCompilerPlugin=true
version=1

244
pom.xml

@ -0,0 +1,244 @@
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>org.gcube.tools</groupId>
<artifactId>maven-parent</artifactId>
<version>1.0.0</version>
<packaging>pom</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.version>3.0.0</maven.version>
<snapshots.repository.url.deploy>http://maven.research-infrastructures.eu:8081/nexus/content/repositories/gcube-snapshots</snapshots.repository.url.deploy>
<releases.repository.url.deploy>http://maven.research-infrastructures.eu:8081/nexus/content/repositories/gcube-releases</releases.repository.url.deploy>
</properties>
<distributionManagement>
<snapshotRepository>
<id>gcube-snapshots</id>
<name>gCube Snapshots</name>
<url>${snapshots.repository.url.deploy}</url>
</snapshotRepository>
<repository>
<id>gcube-releases</id>
<name>gCube Releases</name>
<url>${releases.repository.url.deploy}</url>
</repository>
</distributionManagement>
<build>
<!-- fixes versions of plugins used in profiles -->
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.1.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.8</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.0.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.1</version>
</plugin>
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<versionRange>[1.0,)</versionRange>
<goals>
<goal>enforce</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<versionRange>[1.0,)</versionRange>
<goals>
<goal>unpack</goal>
<goal>copy-dependencies</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.gcube.tools</groupId>
<artifactId>maven-service-plugin</artifactId>
<versionRange>[1.0,)</versionRange>
<goals>
<goal>stub-gen</goal>
<goal>gar-gen</goal>
<goal>local-deploy</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
<!-- fix compiler plugin's version and JVM targets -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<!-- plugins attached to base life-cycle -->
<plugins>
<!-- enforce or advise on build requirements -->
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<!-- enforce requirements on build environment -->
<execution>
<id>enforce-eager</id>
<phase>validate</phase>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>[${maven.version},)</version>
<message>Check for Maven version &gt;=${maven.version}
failed.Update your Maven install.</message>
</requireMavenVersion>
<requireJavaVersion>
<version>1.6</version>
</requireJavaVersion>
</rules>
</configuration>
</execution>
<!-- later, warn on inclusion of auxiliary resources in artefact -->
<execution>
<id>enforce-lazy</id>
<phase>verify</phase>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<fail>false</fail>
<rules>
<requireFilesExist>
<files>
<file>${project.build.outputDirectory}/META-INF/changelog.xml
</file>
<file>${project.build.outputDirectory}/META-INF/MAINTAINERS
</file>
<file>${project.build.outputDirectory}/META-INF/LICENSE</file>
<file>${project.build.outputDirectory}/META-INF/README</file>
<file>${project.build.outputDirectory}/META-INF/INSTALL</file>
</files>
</requireFilesExist>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<!-- package source jar for installation and deployment -->
<plugin>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- package javadoc jar for installation and deployment -->
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<!-- deploys main artefact and its dependencies in a local container -->
<profile>
<id>deploy</id>
<build>
<plugins>
<plugin>
<groupId>org.gcube.tools</groupId>
<artifactId>maven-service-plugin</artifactId>
<executions>
<execution>
<id>local-deploy</id>
<phase>package</phase>
<goals>
<goal>local-deploy</goal>
</goals>
<configuration>
<location>${env.GLOBUS_LOCATION}/lib</location>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
Loading…
Cancel
Save