Metasfresh repo build errors


#1

Hi,

While building metasfresh repo from command line I ran into some errors:

[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for de.metas.adempiere.adempiere:de.metas.adempiere.adempiere.patched-ecs:[unknown-version]: Could not find artifact de.metas:de.metas.parent:pom:10.0.0 in metasfresh-repo (https://repo.metasfresh.com/content/groups/mvn-master/) and ‘parent.relativePath’ points at wrong local POM @ line 8, column 10
[FATAL] Non-resolvable parent POM for de.metas.adempiere.adempiere:de.metas.adempiere.adempiere.serverRoot:[unknown-version]: Failure to find de.metas:de.metas.parent:pom:10.0.0 in https://repo.metasfresh.com/content/groups/mvn-master/ was cached in the local repository, resolution will not be reattempted until the update interval of metasfresh-repo has elapsed or updates are forced and ‘parent.relativePath’ points at wrong local POM @ line 11, column 10
[FATAL] Non-resolvable parent POM for de.metas.adempiere.adempiere:de.metas.adempiere.adempiere.client:[unknown-version]: Failure to find de.metas:de.metas.parent:pom:10.0.0 in https://repo.metasfresh.com/content/groups/mvn-master/ was cached in the local repository, resolution will not be reattempted until the update interval of metasfresh-repo has elapsed or updates are forced and ‘parent.relativePath’ points at wrong local POM @ line 8, column 10
[FATAL] Non-resolvable parent POM for de.metas.adempiere.adempiere:de.metas.adempiere.adempiere.migration-sql:[unknown-version]: Failure to find de.metas:de.metas.parent:pom:10.0.0 in https://repo.metasfresh.com/content/groups/mvn-master/ was cached in the local repository, resolution will not be reattempted until the update interval of metasfresh-repo has elapsed or updates are forced and ‘parent.relativePath’ points at wrong local POM @ line 6, column 10
[WARNING] ‘dependencies.dependency.(groupId:artifactId:type:classifier)’ must be unique: com.h2database:h2:jar -> duplicate declaration of version (?) @ line 159, column 15

A quick look at pom.xml files showed incorrectly defined relativePath.

metasfresh/de.metas.adempiere.adempiere/client/pom.xml: …/…/de.metas.parent/pom.xml
metasfresh/de.metas.adempiere.adempiere/migration/pom.xml: …/…/de.metas.parent/pom.xml
metasfresh/de.metas.adempiere.adempiere/serverRoot/pom.xml: …/…/de.metas.parent/pom.xml
metasfresh/de.metas.adempiere.adempiere/tools/pom.xml: …/…/de.metas.parent/pom.xml

Removing /de.metas.parent componet of relativePath fixes the problem.

Thank you,
George


#2

Hi George,
thank you very much for identifying the problem.
I just created this issue for it: https://github.com/metasfresh/metasfresh/issues/3843

It would be great if you contributed the fix to the metasfresh repo. Of course I don’t want to put this as a burden on you.
If you don’t have the time, I’ll commit the fix with a “thx al lot to @gp1864” (i guess that’s also your handle on github?).

Best regards
Tobias


#3

Good Morning @gp1864
thank you very much for the PR.
I just integrated it.

Have a great week :slight_smile:


#4

Hi Tobias,

I’ve created #3858 pull request.
Please let me know if something is not right with the request.

Thank you,
George