Skip to content
Snippets Groups Projects
Commit 3526e506 authored by Luc Maisonobe's avatar Luc Maisonobe
Browse files

improved maven multi-module configuration

parent b47495ab
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,7 @@ bin ...@@ -3,6 +3,7 @@ bin
.project .project
.settings .settings
target target
geotiff/target core/target
geotiff/src/test/resources/org/orekit/rugged/geotiff/ASTGTM2_*.zip aster/target
aster/src/test/resources/org/orekit/rugged/geotiff/ASTGTM2_*.zip
<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>org.orekit</groupId>
<artifactId>rugged-parent</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>rugged-core</artifactId>
<packaging>bundle</packaging>
<name>Rugged Core Engine</name>
<inceptionYear>2014</inceptionYear>
<description>
This module is the core engine for Rugged,
an Orekit add-on handling Digital Elevation Models
contribution to line of sight computation
</description>
<developers>
<developer>
<name>Luc Maisonobe</name>
<id>luc</id>
<roles>
<role>architect</role>
<role>developer</role>
</roles>
</developer>
</developers>
<contributors>
<contributor>
<name>Aude Espesset</name>
</contributor>
</contributors>
<organization>
<name>CS Syst&#232;mes d&#039;Information</name>
<url>http://www.c-s.fr/</url>
</organization>
<dependencies>
<dependency>
<groupId>org.orekit</groupId>
<artifactId>orekit</artifactId>
<version>7.0-SNAPSHOT</version>
<type>jar</type>
<optional>false</optional>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-math3</artifactId>
<version>3.3</version>
<type>jar</type>
<optional>false</optional>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<type>jar</type>
<scope>test</scope>
<optional>false</optional>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>${rugged.maven-bundle-plugin.version}</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Export-Package>org.orekit.rugged.api.*;version=${project.version};-noimport:=true</Export-Package>
<Bundle-DocURL>${project.url}</Bundle-DocURL>
</instructions>
</configuration>
<executions>
<execution>
<id>bundle-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
...@@ -81,6 +81,14 @@ ...@@ -81,6 +81,14 @@
<module>aster</module> <module>aster</module>
</modules> </modules>
<distributionManagement>
<site>
<id>rugged.website</id>
<name>Rugged Website</name>
<url>https://www.orekit.org/rugged/static/</url>
</site>
</distributionManagement>
<build> <build>
<pluginManagement> <pluginManagement>
<plugins> <plugins>
...@@ -89,156 +97,168 @@ ...@@ -89,156 +97,168 @@
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>${rugged.maven-compiler-plugin.version}</version> <version>${rugged.maven-compiler-plugin.version}</version>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId> <artifactId>maven-jar-plugin</artifactId>
<version>${rugged.maven-jar-plugin.version}</version> <version>${rugged.maven-jar-plugin.version}</version>
<configuration> <configuration>
<archive> <archive>
<manifest> <manifest>
<addClasspath>true</addClasspath> <addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix> <classpathPrefix>lib/</classpathPrefix>
</manifest> </manifest>
</archive> </archive>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId> <artifactId>maven-assembly-plugin</artifactId>
<version>${rugged.maven-assembly-plugin.version}</version> <version>${rugged.maven-assembly-plugin.version}</version>
<configuration> <configuration>
<descriptors> <descriptors>
<descriptor>src/main/assembly/source-assembly.xml</descriptor> <descriptor>src/main/assembly/source-assembly.xml</descriptor>
<descriptor>src/main/assembly/binary-assembly.xml</descriptor> <descriptor>src/main/assembly/binary-assembly.xml</descriptor>
</descriptors> </descriptors>
</configuration> </configuration>
<executions> <executions>
<execution> <execution>
<id>make-assembly</id> <id>make-assembly</id>
<phase>package</phase> <phase>package</phase>
<goals> <goals>
<goal>single</goal> <goal>single</goal>
</goals> </goals>
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId> <artifactId>maven-resources-plugin</artifactId>
<version>${rugged.maven-resources-plugin.version}</version> <version>${rugged.maven-resources-plugin.version}</version>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId> <artifactId>maven-clean-plugin</artifactId>
<version>${rugged.maven-clean-plugin.version}</version> <version>${rugged.maven-clean-plugin.version}</version>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.jacoco</groupId> <groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId> <artifactId>jacoco-maven-plugin</artifactId>
<version>${rugged.jacoco-maven-plugin.version}</version> <version>${rugged.jacoco-maven-plugin.version}</version>
<executions> <executions>
<execution> <execution>
<id>prepare-agent</id> <id>prepare-agent</id>
<phase>process-test-classes</phase> <phase>process-test-classes</phase>
<goals> <goals>
<goal>prepare-agent</goal> <goal>prepare-agent</goal>
</goals> </goals>
</execution> </execution>
<execution> <execution>
<id>report</id> <id>report</id>
<phase>site</phase> <phase>site</phase>
<goals> <goals>
<goal>report</goal> <goal>report</goal>
</goals> </goals>
</execution> </execution>
<execution> <execution>
<id>check</id> <id>check</id>
<goals> <goals>
<goal>check</goal> <goal>check</goal>
</goals> </goals>
<configuration> <configuration>
<rules> <rules>
<rule> <rule>
<element>BUNDLE</element> <element>BUNDLE</element>
<limits> <limits>
<limit> <limit>
<counter>CLASS</counter> <counter>CLASS</counter>
<value>COVEREDRATIO</value> <value>COVEREDRATIO</value>
<minimum>1.00</minimum> <minimum>1.00</minimum>
</limit> </limit>
<limit> <limit>
<counter>INSTRUCTION</counter> <counter>INSTRUCTION</counter>
<value>COVEREDRATIO</value> <value>COVEREDRATIO</value>
<minimum>0.90</minimum> <minimum>0.90</minimum>
</limit> </limit>
<limit> <limit>
<counter>METHOD</counter> <counter>METHOD</counter>
<value>COVEREDRATIO</value> <value>COVEREDRATIO</value>
<minimum>0.95</minimum> <minimum>0.95</minimum>
</limit> </limit>
<limit> <limit>
<counter>BRANCH</counter> <counter>BRANCH</counter>
<value>COVEREDRATIO</value> <value>COVEREDRATIO</value>
<minimum>0.85</minimum> <minimum>0.85</minimum>
</limit> </limit>
<limit> <limit>
<counter>COMPLEXITY</counter> <counter>COMPLEXITY</counter>
<value>COVEREDRATIO</value> <value>COVEREDRATIO</value>
<minimum>0.85</minimum> <minimum>0.85</minimum>
</limit> </limit>
<limit> <limit>
<counter>LINE</counter> <counter>LINE</counter>
<value>COVEREDRATIO</value> <value>COVEREDRATIO</value>
<minimum>0.90</minimum> <minimum>0.90</minimum>
</limit> </limit>
</limits> </limits>
</rule> </rule>
</rules> </rules>
<haltOnFailure>false</haltOnFailure> <haltOnFailure>false</haltOnFailure>
</configuration> </configuration>
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin> <plugin>
<groupId>com.github.jeluard</groupId> <groupId>com.github.jeluard</groupId>
<artifactId>maven-plantuml-plugin</artifactId> <artifactId>maven-plantuml-plugin</artifactId>
<version>${rugged.maven-plantuml-plugin.version}</version> <version>${rugged.maven-plantuml-plugin.version}</version>
<configuration> <configuration>
<sourceFiles> <sourceFiles>
<directory>${basedir}</directory> <directory>${basedir}</directory>
<includes> <includes>
<include> <include>
design/**/*.puml design/**/*.puml
</include> </include>
</includes> </includes>
</sourceFiles> </sourceFiles>
<outputDirectory> <outputDirectory>
${basedir}/target/site/images/design ${basedir}/target/site/images/design
</outputDirectory> </outputDirectory>
</configuration> </configuration>
<executions> <executions>
<execution> <execution>
<phase>pre-site</phase> <phase>pre-site</phase>
<goals> <goals>
<goal>generate</goal> <goal>generate</goal>
</goals> </goals>
</execution> </execution>
</executions> </executions>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>net.sourceforge.plantuml</groupId> <groupId>net.sourceforge.plantuml</groupId>
<artifactId>plantuml</artifactId> <artifactId>plantuml</artifactId>
<version>${rugged.plantuml.version}</version> <version>${rugged.plantuml.version}</version>
</dependency> </dependency>
</dependencies> </dependencies>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId> <artifactId>maven-site-plugin</artifactId>
<version>${rugged.maven-site-plugin.version}</version> <version>${rugged.maven-site-plugin.version}</version>
</plugin> </plugin>
</plugins> <plugin>
</pluginManagement> <groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-file</artifactId>
<version>1.0</version>
<dependencies>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.5</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</pluginManagement>
</build> </build>
<reporting> <reporting>
...@@ -289,6 +309,8 @@ ...@@ -289,6 +309,8 @@
</configuration> </configuration>
<reportSets> <reportSets>
<reportSet> <reportSet>
<id>aggregate</id>
<inherited>false</inherited>
<reports> <reports>
<report>checkstyle</report> <report>checkstyle</report>
</reports> </reports>
...@@ -317,6 +339,15 @@ ...@@ -317,6 +339,15 @@
<configuration> <configuration>
<linkJavadoc>false</linkJavadoc> <linkJavadoc>false</linkJavadoc>
</configuration> </configuration>
<reportSets>
<reportSet>
<id>aggregate</id>
<inherited>false</inherited>
<reports>
<report>aggregate</report>
</reports>
</reportSet>
</reportSets>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
...@@ -333,8 +364,10 @@ ...@@ -333,8 +364,10 @@
</configuration> </configuration>
<reportSets> <reportSets>
<reportSet> <reportSet>
<id>aggregate</id>
<inherited>false</inherited>
<reports> <reports>
<report>javadoc</report> <report>aggregate</report>
</reports> </reports>
</reportSet> </reportSet>
</reportSets> </reportSets>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment