Discussions
Categories
- 385.5K All Categories
- 5.1K Data
- 2.5K Big Data Appliance
- 2.5K Data Science
- 453.4K Databases
- 223.2K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 47 Multilingual Engine
- 606 MySQL Community Space
- 486 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3.2K ORDS, SODA & JSON in the Database
- 585 SQLcl
- 4K SQL Developer Data Modeler
- 188K SQL & PL/SQL
- 21.5K SQL Developer
- 46 Data Integration
- 46 GoldenGate
- 298.4K Development
- 4 Application Development
- 20 Developer Projects
- 166 Programming Languages
- 295K Development Tools
- 150 DevOps
- 3.1K QA/Testing
- 646.7K Java
- 37 Java Learning Subscription
- 37.1K Database Connectivity
- 201 Java Community Process
- 108 Java 25
- 22.2K Java APIs
- 138.3K Java Development Tools
- 165.4K Java EE (Java Enterprise Edition)
- 22 Java Essentials
- 176 Java 8 Questions
- 86K Java Programming
- 82 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 208 Java User Groups
- 25 JavaScript - Nashorn
- Programs
- 667 LiveLabs
- 41 Workshops
- 10.3K Software
- 6.7K Berkeley DB Family
- 3.6K JHeadstart
- 6K Other Languages
- 2.3K Chinese
- 207 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 474 Portuguese
Oracle ADF,Jdev 12.2.1.4.0, Maven 3.8.6, BUILD FAILURE

Hello Seniors,
I am all new using Maven in my ADF application. I need little help and guidance.
1-Also please guide as I have chunks application and using all of them as JAR library in main application so all application should have pom.xml file?
2-is there any specific setting in pom.xml file for build and creating EAR process? please share link to follow any tutorial.
I set MAVEN_HOME and used below tutorial for creating EAR file
https://www.youtube.com/watch?v=ht8JgEAmrI8.
I am just trying to run pom.xml file as run maven clean so I am getting below error
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building PlzServiceModel 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.299 s
[INFO] Finished at: 2022-07-25T10:37:21+02:00
[INFO] Final Memory: 10M/238M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to central (https://repo.maven.apache.org/maven2): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]
[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/PluginResolutionException
Process exited with exit code 1.
Answers
-
You can start by looking at this ADF Insider video about JDEV and Maven https://www.youtube.com/watch?v=ht8JgEAmrI8
The documentation like https://docs.oracle.com/en/middleware/developer-tools/jdeveloper/12.2.1.4/user-guide/developing-applications-oracle-jdeveloper.pdf guides you through the process.
Or you can look at by blog here https://blog.virtual7.de/jdeveloper-12-2-1-4-maven-build-and-junit-tests-part-1/ where I give some essential info on how to set up the projects.
Timo
-
Similar to an earlier question by a different user. Rerun with -e as suggested:
To see the full stack trace of the errors, re-run Maven with the -e switch.
-
Thanks For your response Timo,
Should I install local repository in my system to install or to get access https://repo.maven.apache.org/maven2 to install dependent libraries and plugins? if yes so how can I do it. Because every timeI get a BUILD FAILURE to download plugins or libraries.
You can see in below log.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building PlzServiceModel 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.995 s
[INFO] Finished at: 2022-07-26T11:59:44+02:00
[INFO] Final Memory: 12M/300M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6: Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from/to central (https://repo.maven.apache.org/maven2): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]
[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/PluginResolutionException
Process exited with exit code 1.
-
I would install a local repository as it's more reliable.
Your maven configuration has a problem. You should read and work through the documents I posted already.
Timo
-
Dear Timo,
I followed the given documents so it's start compiling but at the end I get below error.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building PlzServiceModel 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for com.oracle.adf.library:ADF-Library:pom:12.2.1-4-0 is missing, no dependency information available
[WARNING] The POM for com.oracle.adf.library:Apache-Commons-IO:pom:12.2.1-4-0 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.392 s
[INFO] Finished at: 2022-08-08T14:57:19+02:00
[INFO] Final Memory: 7M/238M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project PlzServiceModel: Could not resolve dependencies for project dguv.plzservice:PlzServiceModel:war:1.0-SNAPSHOT: The following artifacts could not be resolved: com.oracle.adf.library:ADF-Library:pom:12.2.1-4-0, com.oracle.adf.library:Apache-Commons-IO:pom:12.2.1-4-0: Failure to find com.oracle.adf.library:ADF-Library:pom:12.2.1-4-0 in http://nexus.dguv.de/repository/maven-group/ was cached in the local repository, resolution will not be reattempted until the update interval of nexus.dguv.de has elapsed or updates are forced -> [Help 1]
[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/DependencyResolutionException
Process exited with exit code 1.
-
The error is stating that a needed library or POM is missing.
Have you tried to find the missing library or POM in your nexus by browsing the available artifacts?
Timo
-
The following artifacts could not be resolved: com.oracle.adf.library:ADF-Library:pom:12.2.1-4-0, com.oracle.adf.library:Apache-Commons-IO:pom:12.2.1-4-0
The message means that the following dependencies cannot be resolved:
<dependency> <groupId>com.oracle.adf.library</groupId> <artifactId>ADF-Library</artifactId> <version>12.2.1-4-0</version> <type>pom</type> </dependency> <dependency> <groupId>com.oracle.adf.library</groupId> <artifactId>Apache-Commons-IO</artifactId> <version>12.2.1-4-0</version> <type>pom</type> </dependency>
-
@dvohra21 Yes Sir, why can't it resolve auto as other libraries downloading auto. Do you know any reason or solution?
@Timo Hahn Yes Sir, i can find those, and I am using nexus because of proxy.
-
The url for repo http://nexus.dguv.de/repository/maven-group/ is a page without any repo. Getting
This site can’t be reached