Skip to content
Snippets Groups Projects
Commit b4bf930a authored by Guylaine Prat's avatar Guylaine Prat
Browse files

Update pom.xml and distribution philosophy (as done in Orekit)

parent 0ef29fc5
No related branches found
No related tags found
No related merge requests found
Showing
with 204 additions and 100 deletions
...@@ -16,16 +16,11 @@ Building with Maven 3: ...@@ -16,16 +16,11 @@ Building with Maven 3:
Building with Eclipse: Building with Eclipse:
- Eclipse can be downloaded here: - Eclipse can be downloaded here:
http://www.eclipse.org/downloads/ http://www.eclipse.org/downloads/
- extract the rugged source jar in your eclipse workspace - using your operating system tools, unpack the source distribution directly
- create a new java project from existing sources and direct inside your Eclipse workspace
Eclipse to the directory where you unpacked Rugged - using Eclipse, import the project by selecting in the top level "File" menu
- set the source folders to rugged/src/main/java, the entry "Import..."
rugged/src/main/resources, rugged/src/test/java, - in the wizard that should appear, select "Maven -> Existing Maven Projects"
rugged/src/test/resources in - select the folder you just created in your workspace by unpacking the
the source tab of the Configure Build Path dialog source distribution. The "pom.xml" file describing the project will be
- set the external libraries to JRE system library (provided by Eclipse), automatically selected. Click finish
Junit 4.x (provided by Eclipse) orekit (available at Orekit website
https://www.orekit.org/) and Hipparchus (available at
Hipparchus project downloads page https://www.hipparchus.org/downloads.html)
in the libraries tab of the Configure Build Path dialog
...@@ -6,3 +6,6 @@ CS Systèmes d'Information (http://www.c-s.fr/) ...@@ -6,3 +6,6 @@ CS Systèmes d'Information (http://www.c-s.fr/)
This product depends on software developed by This product depends on software developed by
The Apache Software Foundation (http://www.apache.org/) The Apache Software Foundation (http://www.apache.org/)
This product depends on software developed by
The Hipparchus project (https://hipparchus.org/)
\ No newline at end of file
Rugged, a sensor-to-terrain mapping tool, is a free java library
for geolocation and used for satellite imagery.
It is licensed by CS Systèmes d'Information under the
Apache License Version 2.0. A copy of this license is
provided in the LICENSE.txt file.
The BUILDING.txt file explains how the library can be built from sources.
The src/main/java directory contains the library sources.
The src/main/resources directory contains the library data.
The src/test/java directory contains the tests sources.
The src/test/resources directory contains the tests data.
The src/tutorials/java directory contains sources for example use of the library.
The src/design directory contains pieces for a UML model of the library.
Rugged relies on the following free software, all released under
business friendly free licenses.
compile-time/run-time dependency:
- Orekit from CS Systèmes d'Information
https://www.orekit.org/
released under the Apache Software License, version 2
- Hipparchus from the Hipparchus project
https://hipparchus.org/
released under the Apache Software License, version 2
test-time dependency:
- JUnit 4 from Erich Gamma and Kent Beck
http://www.junit.org/
released under the Common Public License Version 1.0
...@@ -35,14 +35,13 @@ ...@@ -35,14 +35,13 @@
<rugged.maven-project-info-reports-plugin.version>2.9</rugged.maven-project-info-reports-plugin.version> <rugged.maven-project-info-reports-plugin.version>2.9</rugged.maven-project-info-reports-plugin.version>
<rugged.maven-resources-plugin.version>3.0.2</rugged.maven-resources-plugin.version> <rugged.maven-resources-plugin.version>3.0.2</rugged.maven-resources-plugin.version>
<rugged.maven-site-plugin.version>3.6</rugged.maven-site-plugin.version> <rugged.maven-site-plugin.version>3.6</rugged.maven-site-plugin.version>
<rugged.maven-source-plugin.version>3.0.1</rugged.maven-source-plugin.version>
<rugged.maven-surefire-plugin.version>2.20</rugged.maven-surefire-plugin.version> <rugged.maven-surefire-plugin.version>2.20</rugged.maven-surefire-plugin.version>
<rugged.maven-surefire-report-plugin.version>2.20</rugged.maven-surefire-report-plugin.version> <rugged.maven-surefire-report-plugin.version>2.20</rugged.maven-surefire-report-plugin.version>
<rugged.jgit.buildnumber.version>1.2.10</rugged.jgit.buildnumber.version> <rugged.jgit.buildnumber.version>1.2.10</rugged.jgit.buildnumber.version>
<!-- orekit.build-helper-maven-plugin.version>3.0.0</orekit.build-helper-maven-plugin.version--> <rugged.build-helper-maven-plugin.version>3.0.0</rugged.build-helper-maven-plugin.version>
<!-- orekit.nexus-staging-maven-plugin.version>1.6.8</orekit.nexus-staging-maven-plugin.version--> <rugged.nexus-staging-maven-plugin.version>1.6.8</rugged.nexus-staging-maven-plugin.version>
<!-- orekit.maven-gpg-plugin.version>1.6</orekit.maven-gpg-plugin.version--> <rugged.maven-gpg-plugin.version>1.6</rugged.maven-gpg-plugin.version>
<!-- orekit.maven-install-plugin.version>2.5.2</orekit.maven-install-plugin.version--> <rugged.maven-install-plugin.version>2.5.2</rugged.maven-install-plugin.version>
<rugged.orekit.version>9.1</rugged.orekit.version> <rugged.orekit.version>9.1</rugged.orekit.version>
<rugged.hipparchus.version>1.2</rugged.hipparchus.version> <rugged.hipparchus.version>1.2</rugged.hipparchus.version>
<rugged.junit.version>4.12</rugged.junit.version> <rugged.junit.version>4.12</rugged.junit.version>
...@@ -253,8 +252,8 @@ ...@@ -253,8 +252,8 @@
<version>${rugged.maven-assembly-plugin.version}</version> <version>${rugged.maven-assembly-plugin.version}</version>
<configuration> <configuration>
<descriptors> <descriptors>
<descriptor>src/assembly/source-assembly.xml</descriptor> <descriptor>src/main/assembly/source-distribution-assembly.xml</descriptor>
<descriptor>src/assembly/binary-assembly.xml</descriptor> <descriptor>src/main/assembly/source-jar-assembly.xml</descriptor>
</descriptors> </descriptors>
</configuration> </configuration>
<executions> <executions>
...@@ -388,7 +387,7 @@ ...@@ -388,7 +387,7 @@
<version>${rugged.plantuml-maven-plugin.version}</version> <version>${rugged.plantuml-maven-plugin.version}</version>
<configuration> <configuration>
<sourceFiles> <sourceFiles>
<directory>${basedir}/design</directory> <directory>${basedir}/src/design</directory>
<includes> <includes>
<include> <include>
*.puml *.puml
...@@ -461,35 +460,6 @@ ...@@ -461,35 +460,6 @@
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
<pluginManagement>
<plugins>
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<versionRange>[${rugged.maven-bundle-plugin.version},)</versionRange>
<goals>
<goal>manifest</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build> </build>
<reporting> <reporting>
...@@ -599,21 +569,119 @@ ...@@ -599,21 +569,119 @@
<id>release</id> <id>release</id>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId> <artifactId>maven-javadoc-plugin</artifactId>
<version>${rugged.maven-source-plugin.version}</version> <version>${rugged.maven-javadoc-plugin.version}</version>
<executions> <executions>
<execution> <execution>
<id>create-source-jar</id> <id>attach-javadocs</id>
<goals> <goals>
<goal>jar</goal> <goal>jar</goal>
</goals> </goals>
<phase>package</phase>
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>${rugged.nexus-staging-maven-plugin.version}</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>false</autoReleaseAfterClose>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>${rugged.build-helper-maven-plugin.version}</version>
<executions>
<execution>
<id>attach-artifacts</id>
<phase>verify</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>${basedir}/target/rugged-${project.version}-sources.jar</file>
<type>source-jar</type>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>${rugged.maven-gpg-plugin.version}</version>
<configuration>
<gpgArguments>
<arg>--digest-algo=SHA512</arg>
</gpgArguments>
</configuration>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>${rugged.maven-install-plugin.version}</version>
<configuration>
<createChecksum>true</createChecksum>
</configuration>
</plugin>
</plugins> </plugins>
</build>
</profile>
<profile>
<id>eclipse</id>
<activation>
<property>
<name>m2e.version</name>
</property>
</activation>
<build>
<pluginManagement>
<plugins>
<plugin>
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<versionRange>[${rugged.maven-bundle-plugin.version},)</versionRange>
<goals>
<goal>manifest</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build> </build>
</profile> </profile>
</profiles> </profiles>
......
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
<id>bin</id>
<formats>
<format>zip</format>
</formats>
<componentDescriptors>
<componentDescriptor>src/assembly/misc-files.xml</componentDescriptor>
<componentDescriptor>src/assembly/jar-files.xml</componentDescriptor>
</componentDescriptors>
</assembly>
\ No newline at end of file
<component>
<fileSets>
<fileSet>
<directory>target</directory>
<outputDirectory></outputDirectory>
<includes>
<include>*.jar</include>
</includes>
</fileSet>
</fileSets>
</component>
\ No newline at end of file
<component>
<fileSets>
<fileSet>
<includes>
<include>LICENSE.txt</include>
<include>NOTICE.txt</include>
</includes>
</fileSet>
</fileSets>
</component>
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
<id>sources</id>
<formats>
<format>zip</format>
</formats>
<componentDescriptors>
<componentDescriptor>src/assembly/misc-files.xml</componentDescriptor>
<componentDescriptor>src/assembly/building-files.xml</componentDescriptor>
</componentDescriptors>
</assembly>
\ No newline at end of file
File moved
<component> <assembly>
<id>sources</id>
<formats>
<format>zip</format>
</formats>
<fileSets> <fileSets>
<fileSet> <fileSet>
<includes> <includes>
<include>BUILDING.txt</include> <include>README.txt</include>
<include>pom.xml</include> <include>LICENSE.txt</include>
<include>checkstyle.xml</include> <include>NOTICE.txt</include>
<include>findbugs-exclude-filter.xml</include> <include>BUILDING.txt</include>
<include>license-header.txt</include> <include>pom.xml</include>
<include>checkstyle.xml</include>
<include>findbugs-exclude-filter.xml</include>
<include>license-header.txt</include>
</includes> </includes>
<useDefaultExcludes>true</useDefaultExcludes> <useDefaultExcludes>true</useDefaultExcludes>
</fileSet> </fileSet>
...@@ -15,4 +22,4 @@ ...@@ -15,4 +22,4 @@
<useDefaultExcludes>true</useDefaultExcludes> <useDefaultExcludes>true</useDefaultExcludes>
</fileSet> </fileSet>
</fileSets> </fileSets>
</component> </assembly>
\ No newline at end of file \ No newline at end of file
<assembly>
<id>sources</id>
<formats>
<format>jar</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<fileSet>
<includes>
<include>LICENSE.txt</include>
<include>NOTICE.txt</include>
</includes>
<outputDirectory>META-INF</outputDirectory>
</fileSet>
<fileSet>
<directory>src/main/java</directory>
<outputDirectory>.</outputDirectory>
<includes>
<include>**/*.java</include>
</includes>
<useDefaultExcludes>true</useDefaultExcludes>
</fileSet>
</fileSets>
</assembly>
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