Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

pom.xml errors

Avatar

Level 4

I seem to often get pom.xml errors in my local when running Maven. Today I attempted a build and got errors for all three pom.xml files. Where should I begin my troubleshooting to fix this?

 

PS C:\project> mvn clean install -Drevision=6401 -Daem.host=localhost -Daem.port=4502 -Dvault.user=admin -Dvault.password=admin -P autoInstallPackage -P adobe-public
[INFO] Scanning for projects...
Downloading from adobe-public-releases: https://repo.adobe.com/nexus/content/groups/public/org/apache/felix/maven-bundle-plugin/3.3.0/maven-bundle-plugin-3.3.0.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/felix/maven-bundle-plugin/3.3.0/maven-bundle-plugin-3.3.0.pom
Downloading from adobe-public-releases: https://repo.adobe.com/nexus/content/groups/public/com/day/jcr/vault/content-package-maven-plugin/0.5.1/content-package-maven-plugin-0.5.1.pom
Downloading from central: https://repo.maven.apache.org/maven2/com/day/jcr/vault/content-package-maven-plugin/0.5.1/content-package-maven-plugin-0.5.1.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: javax.annotation:javax.annotation-api:jar -> duplicate declaration of version 1.3.2 @ com.adobe:badgerstore.core:${revision}, C:\project\core\pom.xml, line 215, column 15
[ERROR] Unresolveable build extension: Plugin org.apache.felix:maven-bundle-plugin:3.3.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.felix:maven-bundle-plugin:jar:3.3.0 @
[ERROR] Unknown packaging: bundle @ com.adobe:badgerstore.core:${revision}, C:\project\core\pom.xml, line 27, column 16
[ERROR] Unresolveable build extension: Plugin com.day.jcr.vault:content-package-maven-plugin:0.5.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for com.day.jcr.vault:content-package-maven-plugin:jar:0.5.1 @
[ERROR] Unknown packaging: content-package @ com.adobe:badgerstore.ui.apps:${revision}, C:\project\ui.apps\pom.xml, line 34, column 16
[ERROR] Unresolveable build extension: Plugin com.day.jcr.vault:content-package-maven-plugin:0.5.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for com.day.jcr.vault:content-package-maven-plugin:jar:0.5.1 @
[ERROR] Unknown packaging: content-package @ com.adobe:badgerstore.ui.content:${revision}, C:\project\ui.content\pom.xml, line 34, column 16
@
[ERROR] The build could not read 3 projects -> [Help 1]
[ERROR]
[ERROR] The project com.adobe:badgerstore.core:6401 (C:\project\core\pom.xml) has 2 errors
[ERROR] Unresolveable build extension: Plugin org.apache.felix:maven-bundle-plugin:3.3.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.felix:maven-bundle-plugin:jar:3.3.0: Could not transfer artifact org.apache.felix:maven-bundle-plugin:pom:3.3.0 from/to adobe-public-releases (https://repo.adobe.com/nexus/content/groups/public): transfer failed for https://repo.adobe.com/nexus/content/groups/public/org/apache/felix/maven-bundle-plugin/3.3.0/maven-bundle-plugin-3.3.0.pom: Connect to repo.adobe.com:443 [repo.adobe.com/13.107.246.51, repo.adobe.com/13.107.213.51] failed: Read timed out -> [Help
2]
[ERROR] Unknown packaging: bundle @ com.adobe:badgerstore.core:${revision}, C:\project\core\pom.xml, line 27, column 16
[ERROR]
[ERROR] The project com.adobe:badgerstore.ui.apps:6401 (C:\project\ui.apps\pom.xml) has 2 errors
[ERROR] Unresolveable build extension: Plugin com.day.jcr.vault:content-package-maven-plugin:0.5.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for com.day.jcr.vault:content-package-maven-plugin:jar:0.5.1: Could not transfer artifact com.day.jcr.vault:content-package-maven-plugin:pom:0.5.1 from/to adobe-public-releases (https://repo.adobe.com/nexus/content/groups/public): transfer failed for https://repo.adobe.com/nexus/content/groups/public/com/day/jcr/vault/content-package-maven-plugin/0.5.1/content-package-maven-plugin-0.5.1.pom: Connect to repo.adobe.com:443 [repo.adobe.com/13.107.246.51, repo.adobe.com/13.107.213.51] failed: Read timed out -> [Help 2]
[ERROR] Unknown packaging: content-package @ com.adobe:badgerstore.ui.apps:${revision}, C:\project\ui.apps\pom.xml, line 34, column 16
[ERROR]
[ERROR] The project com.adobe:badgerstore.ui.content:6401 (C:\project\ui.content\pom.xml) has 2 errors
[ERROR] Unresolveable build extension: Plugin com.day.jcr.vault:content-package-maven-plugin:0.5.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for com.day.jcr.vault:content-package-maven-plugin:jar:0.5.1: Could not transfer artifact com.day.jcr.vault:content-package-maven-plugin:pom:0.5.1 from/to adobe-public-releases (https://repo.adobe.com/nexus/content/groups/public): transfer failed for https://repo.adobe.com/nexus/content/groups/public/com/day/jcr/vault/content-package-maven-plugin/0.5.1/content-package-maven-plugin-0.5.1.pom: Connect to repo.adobe.com:443 [repo.adobe.com/13.107.246.51, repo.adobe.com/13.107.213.51] failed: Read timed out -> [Help 2]
[ERROR] Unknown packaging: content-package @ com.adobe:badgerstore.ui.content:${revision}, C:\project\ui.content\pom.xml, line 34, column 16

 

 

1 Accepted Solution

Avatar

Correct answer by
Level 7

you can try updating your settings.xml in .m2 folder. Refer settings.xml
It already has Adobe Public.

OR try this command 

mvn clean install -P autoInstallPackage -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true

View solution in original post

2 Replies

Avatar

Level 8

try this command-

 

mvn clean install -P autoInstallPackage -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true

 

as mentioned in this post 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/maven-build-error-could-no... 

Avatar

Correct answer by
Level 7

you can try updating your settings.xml in .m2 folder. Refer settings.xml
It already has Adobe Public.

OR try this command 

mvn clean install -P autoInstallPackage -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true