sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject [sis] 02/02: Use EPSG data for "sis-referencing" tests if the "non-free" profile is explicitly enabled.
Date Sun, 31 May 2020 22:31:16 GMT
This is an automated email from the ASF dual-hosted git repository.

desruisseaux pushed a commit to branch geoapi-4.0
in repository https://gitbox.apache.org/repos/asf/sis.git

commit 4534d17c493a0e8e664cd25b5946566a6130b558
Author: Martin Desruisseaux <martin.desruisseaux@geomatys.com>
AuthorDate: Sun May 31 12:50:27 2020 +0200

    Use EPSG data for "sis-referencing" tests if the "non-free" profile is explicitly enabled.
---
 core/sis-referencing/pom.xml | 21 +++++++++++++++++++++
 pom.xml                      |  4 ++--
 2 files changed, 23 insertions(+), 2 deletions(-)

diff --git a/core/sis-referencing/pom.xml b/core/sis-referencing/pom.xml
index 523e2ab..48cd69a 100644
--- a/core/sis-referencing/pom.xml
+++ b/core/sis-referencing/pom.xml
@@ -170,4 +170,25 @@
     </dependency>
   </dependencies>
 
+  <!-- Because the EPSG database is not free, require the user to ask it explicitly. -->
+  <profiles>
+    <profile>
+      <id>non-free</id>
+      <dependencies>
+        <dependency>
+          <groupId>org.apache.sis.non-free</groupId>
+          <artifactId>sis-epsg</artifactId>
+          <version>${sis.non-free.version}</version>
+          <scope>test</scope>
+          <exclusions>
+            <exclusion>
+              <groupId>*</groupId>
+              <artifactId>*</artifactId>
+            </exclusion>
+          </exclusions>
+        </dependency>
+      </dependencies>
+    </profile>
+  </profiles>
+
 </project>
diff --git a/pom.xml b/pom.xml
index 9989505..7a3c6c7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -597,8 +597,8 @@
     </profile>
 
     <!-- ===================================================================
-           If the user has not set the SIS_DATA environment variable, set a
-           default value where we can create a minimalist database.
+           If the user has not set the SIS_DATA environment variable,
+           set a default value where we can create a minimalist database.
          =================================================================== -->
     <profile>
       <id>sis-data</id>


Mime
View raw message