Skip to content

Commit

Permalink
Shift to new maven repositories (OSGeo) (#4700)
Browse files Browse the repository at this point in the history
* shift to new maven repositories

Signed-off-by: Jody Garnett <[email protected]>

* Setup geonetwork-cache repository

Signed-off-by: Jody Garnett <[email protected]>

* Add additional project information

Signed-off-by: Jody Garnett <[email protected]>

* revise based on feedback

Signed-off-by: Jody Garnett <[email protected]>

* exclude mapfish transitive dependencies for web

Signed-off-by: Jody Garnett <[email protected]>

* allowing print-libs to pull in com.codahale.metrics pending feedback

Signed-off-by: Jody Garnett <[email protected]>

* revise based on feedback

Signed-off-by: Jody Garnett <[email protected]>

* revise based on feedback

Signed-off-by: Jody Garnett <[email protected]>

* Additional print-lib exclusions

* Replace print.lib.version with use of dependency management

* Revised based on feedback

use of dependency management to handle mapfish print version

Signed-off-by: Jody Garnett <[email protected]>

* restore codahale transitive dependencies for mapfish print

Signed-off-by: Jody Garnett <[email protected]>

* list additional camptocamp developers

Details reverse engineered from github and public emails, please review.

Signed-off-by: Jody Garnett <[email protected]>

* remove list of developers to seperate isse

Signed-off-by: Jody Garnett <[email protected]>
  • Loading branch information
jodygarnett authored and josegar74 committed May 28, 2020
1 parent 07fa5ef commit e541680
Show file tree
Hide file tree
Showing 3 changed files with 107 additions and 35 deletions.
1 change: 0 additions & 1 deletion core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,6 @@
<dependency>
<groupId>org.mapfish.print</groupId>
<artifactId>print-lib</artifactId>
<version>${print-lib.version}</version>
<exclusions>
<exclusion>
<groupId>commons-httpclient</groupId>
Expand Down
92 changes: 59 additions & 33 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
resources through the web.
</description>
<url>http://geonetwork-opensource.org</url>
<organization>
<name>Open Source Geospatial Foundation</name>
<url>https://www.osgeo.org/</url>
</organization>
<scm>
<connection>
scm:git:https://github.com/geonetwork/core-geonetwork
Expand Down Expand Up @@ -86,21 +90,6 @@
</mailingList>
</mailingLists>

<!-- TODO developer part-->
<developers>
<developer>
<name/>
<id/>
<organization/>
<organizationUrl/>
<email/>
<roles>
<role/>
</roles>
<timezone/>
</developer>
</developers>

<licenses>
<license>
<name>General Public License (GPL)</name>
Expand Down Expand Up @@ -141,7 +130,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>2.6.1</version>
<version>3.1.0</version>
</plugin>
<plugin>
<groupId>net.alchim31.maven</groupId>
Expand Down Expand Up @@ -270,6 +259,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
Expand Down Expand Up @@ -644,13 +634,13 @@
<version>1.3</version> <!-- TODO check version -->
</dependency>
<!-- May be required to register connection unwrappers with
geotools
geotools
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>2.5.3</version>
</dependency>
-->
-->
<dependency>
<groupId>org.eclipse.core</groupId>
<artifactId>org.eclipse.core.runtime</artifactId>
Expand Down Expand Up @@ -679,7 +669,7 @@
<version>1.0</version>
</dependency>

<!-- Geotools and spatial search stuff -->
<!-- GeoTools and spatial search stuff -->
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-api</artifactId>
Expand Down Expand Up @@ -849,18 +839,17 @@
<version>1.7.8</version>
</dependency>

<!-- Databased stuff -->
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>1.3.174</version>
</dependency>
<!-- Other stuff -->
<dependency>
<groupId>dlib</groupId> <!--FIXME Handled by local repository -->
<artifactId>dlib</artifactId>
<version>1.0</version> <!-- FIXME totally unknown -->
</dependency>
<dependency>
<groupId>org.mapfish.print</groupId>
<artifactId>print-lib</artifactId>
<version>${print-lib.version}</version>
</dependency>

<!-- Lib utils -->
<dependency>
Expand Down Expand Up @@ -890,6 +879,7 @@
<artifactId>metrics-log4j</artifactId>
<version>${metrics.version}</version>
</dependency>

<!-- Tests -->
<dependency>
<groupId>junit</groupId>
Expand Down Expand Up @@ -928,7 +918,12 @@
<scope>test</scope>
</dependency>

<!-- db -->
<!-- Databased stuff -->
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>1.3.174</version>
</dependency>
<dependency>
<groupId>org.postgis</groupId>
<artifactId>postgis-jdbc</artifactId>
Expand Down Expand Up @@ -956,7 +951,7 @@
<artifactId>ojdbc</artifactId>
<version>14</version>
</dependency>
-->
-->
<dependency>
<groupId>org.codehaus.izpack</groupId>
<artifactId>izpack-standalone-compiler</artifactId>
Expand Down Expand Up @@ -1141,11 +1136,13 @@
<artifactId>elasticsearch</artifactId>
<version>${es.version}</version>
</dependency>-->

<!--Require Lucene 5 <dependency>
<groupId>org.elasticsearch.client</groupId>
<artifactId>transport</artifactId>
<version>${es.version}</version>
</dependency>-->

<dependency>
<groupId>io.searchbox</groupId>
<artifactId>jest</artifactId>
Expand Down Expand Up @@ -1204,18 +1201,25 @@
<url>https://repo.osgeo.org/repository/release/</url>
</repository>

<repository>
<!-- managed by repo.osgeo.org k-int-cache -->
<!-- /marcxml/marcxml/* -->
<!-- /marc4j/marc4j/* -->
<!--repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>k-int</id>
<name>Developer k-int repository</name>
<url>http://maven.k-int.com/content/repositories/releases/</url>
</repository>
</repository-->

<!-- managed by repo.osgeo.org geonetwork-cache -->
<!-- third party jar upload -->
<!-- TODO: move this content to geonetwork-releases -->
<!--
<repository>
<snapshots>
<enabled>true</enabled>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
Expand All @@ -1224,20 +1228,27 @@
<name>GeoNetwork remote repository</name>
<url>https://raw.githubusercontent.com/geonetwork/core-maven-repo/master</url>
</repository>

-->
<!-- managed by repo.osgeo.org seasar-cache -->
<!-- /net.arnx.jsonic/jsonic/* -->
<!-- seasar repo, has jsonic - used by langdetect -->
<!--
<repository>
<id>maven.seasar.org</id>
<name>The Seasar Foundation Maven2 Repository</name>
<url>http://maven.seasar.org/maven2</url>
</repository>

-->
<!-- managed by repo.osgeo.org geonetwork-releases -->
<!-- third party jar upload -->
<!-- org.mapfish.print:print-lib-2.1.6.jar -->
<!--
<repository>
<id>georchestra-mfprint</id>
<name>build-releases</name>
<url>https://packages.georchestra.org/artifactory/mapfish-print</url>
</repository>

-->
</repositories>


Expand Down Expand Up @@ -1315,13 +1326,28 @@
</profile>
</profiles>

<distributionManagement>
<repository>
<id>osgeo</id>
<name>OSGeo GeoNetwork Release Repository</name>
<url>https://repo.osgeo.org/repository/geonetwork-releases/</url>
</repository>
<snapshotRepository>
<id>osgeo</id>
<name>OSGeo GeoNetwork Snapshot Repository</name>
<url>https://repo.osgeo.org/repository/geonetwork-snapshots/</url>
</snapshotRepository>
</distributionManagement>

<!--
<distributionManagement>
<snapshotRepository>
<id>scp-repository.geonetwork-opensource.org</id>
<name>GeoNetwork opensource repositories</name>
<url>scpexe://TO DEFINED</url>
</snapshotRepository>
</distributionManagement>
-->

<properties>
<db.properties>WEB-INF/config-db/jdbc.properties</db.properties>
Expand Down
49 changes: 48 additions & 1 deletion web/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,54 @@
<dependency>
<groupId>org.mapfish.print</groupId>
<artifactId>print-lib</artifactId>
<version>${print-lib.version}</version>
<exclusions>
<exclusion>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
</exclusion>
<!--
<exclusion>
<groupId>com.codahale.metrics</groupId>
<artifactId>metrics-core</artifactId>
</exclusion>
<exclusion>
<groupId>com.codahale.metrics</groupId>
<artifactId>metrics-log4j</artifactId>
</exclusion>
<exclusion>
<groupId>com.codahale.metrics</groupId>
<artifactId>metrics-servlet</artifactId>
</exclusion>
<exclusion>
<groupId>com.codahale.metrics</groupId>
<artifactId>metrics-servlets</artifactId>
</exclusion>
<exclusion>
<groupId>com.codahale.metrics</groupId>
<artifactId>metrics-httpclient</artifactId>
</exclusion>
-->
<exclusion>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
</exclusion>
<exclusion>
<groupId>xalan</groupId>
<artifactId>xalan</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>batik-transcoder</artifactId>
</exclusion>
</exclusions>
</dependency>

<!-- ====================== -->
Expand Down

0 comments on commit e541680

Please sign in to comment.