[Geoserver-devel] teradata downgrade to community breaks the build on empty local m2 repo

Hi,

I’m getting a build failure on main, apparently only if the old teradata jar is not in the local maven repo (e.g. rm -rf ~/.m2/repository/org/geoserver first).

And wonder why the builds didn’t fail for https://github.com/geoserver/geoserver/pull/5688

Maybe it’s getting it from the maven cache.

In any case I’ve checked there’s no other pom under community having extension as parent just to make sure I’m not missing anything, and created this pr: https://github.com/geoserver/geoserver/pull/5696

mvn clean install -DskipTests -PallExtensions,communityRelease
[INFO] Scanning for projects…
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[WARNING] ‘parent.relativePath’ of POM org.geoserver.community:gs-teradata:2.21-SNAPSHOT (/data2/groldan/git/geoserver/geoserver/master/src/community/teradata/pom.xml) points at org.geoserver:community instead of org.geoserver:extension, please verify your project structure @ line 10, column 11
[FATAL] Non-resolvable parent POM for org.geoserver.community:gs-teradata:2.21-SNAPSHOT: Could not find artifact org.geoserver:extension:pom:2.21-SNAPSHOT and ‘parent.relativePath’ points at wrong local POM @ line 10, column 11
@
[ERROR] The build could not read 1 project → [Help 1]
[ERROR]
[ERROR] The project org.geoserver.community:gs-teradata:2.21-SNAPSHOT (/data2/groldan/git/geoserver/geoserver/master/src/community/teradata/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for org.geoserver.community:gs-teradata:2.21-SNAPSHOT: Could not find artifact org.geoserver:extension:pom:2.21-SNAPSHOT and ‘parent.relativePath’ points at wrong local POM @ line 10, column 11 → [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

···

Gabriel Roldán

Hi,

I’m getting a build failure on main, apparently only if the old teradata jar is not in the local maven repo (e.g. rm -rf ~/.m2/repository/org/geoserver first).

And wonder why the builds didn’t fail for https://github.com/geoserver/geoserver/pull/5688

The jars are still available in the OSGeo snapshot repository, so … how did it fail for you? It should not have :smiley:

https://repo.osgeo.org/#browse/search=keyword%3Dgs-teradata:geoserver-snapshots%3Aorg.geoserver.extension%3Ags-teradata%3A2.21-SNAPSHOT

Maybe it’s getting it from the maven cache.

In any case I’ve checked there’s no other pom under community having extension as parent just to make sure I’m not missing anything, and created this pr: https://github.com/geoserver/geoserver/pull/5696

Yep, thanks for the fix!

Cheers
Andrea

···

GeoServer Professional Services from the experts!

Visit http://bit.ly/gs-services-us for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions Group
phone: +39 0584 962313

fax: +39 0584 1660272

mob: +39 333 8128928

https://www.geosolutionsgroup.com/

http://twitter.com/geosolutions_it


Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail