Discussions
Categories
- 196.7K All Categories
- 2.2K Data
- 235 Big Data Appliance
- 1.9K Data Science
- 449.8K Databases
- 221.5K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 549 MySQL Community Space
- 477 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3K ORDS, SODA & JSON in the Database
- 532 SQLcl
- 4K SQL Developer Data Modeler
- 186.8K SQL & PL/SQL
- 21.2K SQL Developer
- 295.4K Development
- 17 Developer Projects
- 138 Programming Languages
- 292.1K Development Tools
- 104 DevOps
- 3.1K QA/Testing
- 645.9K Java
- 27 Java Learning Subscription
- 37K Database Connectivity
- 153 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.1K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 17 Java Essentials
- 158 Java 8 Questions
- 85.9K Java Programming
- 79 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.2K Java SE
- 13.8K Java Security
- 203 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 391 LiveLabs
- 37 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.6K Other Languages
- 2.3K Chinese
- 170 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 230 Portuguese
Can't build with Maven anymore?

Hi,
(JDev 12.2.1.4)
I've configured few project to be built using Maven. It all used to work on my machine but not in the build automation tool. When checking logs, I could see it would fail with:
" Could not find artifact com.oracle.adf:adf-parent:pom:12.2.1-4-0 in centralhttps (https://repo1.maven.org/maven2/)"
I went to my local environment where the built used to work and after deleting the .m2 folder, it now fails with the same message:
" Could not find artifact com.oracle.adf:adf-parent:pom:12.2.1-4-0 in centralhttps (https://repo1.maven.org/maven2/)"
I've checed on the repo and there is no trace of com.oracle.adf libraries.
Question - does the local repository get populated using JDeveloper on first attempt or something?
Thanks
Answers
-
You may need to install the Oracle Maven Synchronization Plug-In. What is the OS? Linux or Windows?
The Maven settings file,
settings.xml
, is usually kept in the.m2
directory inside your home directory.After you have configured your Maven Repository Manager, you populate it with Oracle artifacts.
For this reason, a Maven Synhronization plug-in is provided, which allows you to populate a local or shared Maven repository from an Oracle home. When you install a Fusion Middleware 12c product, the Maven archetypes, plug-ins, and POMs are installed with the product so that the synchronization plug-in can find them.
Please refer Fusion Middleware Developing Applications Using Continuous Integration>Installing and Configuring Maven for Build Automation and Dependency Management
-
@dvohra21 thanks for your reply. I did notice that from time to time JDev does 'deploy libraries'. Is there any way for us to manually trigger this process?
-
Run the the push goal in Oracle Maven Synchronization Plug-In.
Detail at https://docs.oracle.com/middleware/1221/core/MAVEN/config_maven.htm#MAVEN314
-
@dvohra21 thanks. After running push and waiting for it to complete, it now fails with:
The following artifacts could not be resolved: com.oracle.weblogic:jms-internal-notran-adp:jar:12.2.1-4-0, com.oracle.weblogic:jms-internal-xa-adp:jar:12.2.1-4-0, com.oracle.weblogic:jms-local-adp:jar:12.2.1-4-0, com.oracle.weblogic:jms-notran-adp:jar:12.2.1-4-0, com.oracle.weblogic:jms-xa-adp:jar:12.2.1-4-0: Could not find artifact com.oracle.weblogic:jms-internal-notran-adp:jar:12.2.1-4-0
I assume jdev does this deploy automatically?
-
Add exclusions for the not found libs in pom.xml:
<dependency>
<groupId>com.oracle.adf.library</groupId>
...
...
<type>pom</type>
<scope>provided</scope>
<exclusions>
<exclusion>
<groupId>com.oracle.weblogic</groupId>
<artifactId>jms-xa-adp</artifactId>
</exclusion>
<exclusion>
<groupId>com.oracle.weblogic</groupId>
<artifactId>jms-internal-notran-adp</artifactId>
</exclusion>
<exclusion>
<groupId>com.oracle.weblogic</groupId>
<artifactId>jms-internal-xa-adp</artifactId>
</exclusion>
<exclusion>
<groupId>com.oracle.weblogic</groupId>
<artifactId>jms-notran-adp</artifactId>
</exclusion>
<exclusion>
<groupId>com.oracle.weblogic</groupId>
<artifactId>jms-local-adp</artifactId>
</exclusion>
</exclusions>
</dependency>