Forum Stats

  • 3,826,362 Users
  • 2,260,636 Discussions
  • 7,896,916 Comments

Discussions

Mavenizing an existing ADF application

4015909
4015909 Member Posts: 9
edited Jun 14, 2022 7:52AM in JDeveloper and ADF

Hi,

I am facing an issue while I try to migrate an existing ADF application from JDeveloper 11g to Jdeveloper 12c.

When I run the maven package on the model project, I get the below error.

Executing Maven with the following:

[C:\Program Files\Java\jdk1.8.0_181\bin\javaw.exe, -Dclassworlds.conf=C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\bin\m2.conf, -classpath, C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\boot\plexus-classworlds-2.5.2.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\wagon-provider-api-2.8.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\wagon-http-shared-2.8.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\wagon-http-2.8-shaded.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\wagon-file-2.8.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\slf4j-simple-1.7.5.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\slf4j-api-1.7.5.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\sisu-guice-3.2.3-no_aop.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\plexus-utils-3.0.20.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\plexus-sec-dispatcher-1.3.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\plexus-interpolation-1.21.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\plexus-component-annotations-1.5.5.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\plexus-cipher-1.7.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\org.eclipse.sisu.plexus-0.3.0.M1.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\org.eclipse.sisu.inject-0.3.0.M1.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\maven-settings-builder-3.2.5.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\maven-settings-3.2.5.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\maven-repository-metadata-3.2.5.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\maven-plugin-api-3.2.5.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\maven-model-builder-3.2.5.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\maven-model-3.2.5.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\maven-embedder-3.2.5.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\maven-core-3.2.5.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\maven-compat-3.2.5.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\maven-artifact-3.2.5.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\maven-aether-provider-3.2.5.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\jsr250-api-1.0.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\jsoup-1.7.2.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\javax.inject-1.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\guava-18.0.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\commons-lang-2.6.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\commons-io-2.2.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\commons-cli-1.2.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\cdi-api-1.0.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\aopalliance-1.0.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\aether-util-1.0.0.v20140518.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\aether-transport-wagon-1.0.0.v20140518.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\aether-spi-1.0.0.v20140518.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\aether-impl-1.0.0.v20140518.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\aether-connector-basic-1.0.0.v20140518.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\aether-api-1.0.0.v20140518.jar;, -Dmaven.home=C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5, org.codehaus.classworlds.Launcher, --settings, C:\Users\livijayan\.m2\settings.xml, --file, C:\Users\livijayan\Helix_Code_12g\helix-app\Helix\adf\MedNeXtCustomizations_PROFILE21\CustomizationsModel\pom.xml, package, -Denv.ORACLE_HOME=C:\Oracle\Middleware\Oracle_Home12212]

C:\Users\livijayan\Helix_Code_12g\helix-app\Helix\adf\MedNeXtCustomizations_PROFILE21\CustomizationsModel>

"C:\Program Files\Java\jdk1.8.0_181\bin\javaw.exe" -Dclassworlds.conf=C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\bin\m2.conf -classpath C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\boot\plexus-classworlds-2.5.2.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\wagon-provider-api-2.8.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\wagon-http-shared-2.8.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\wagon-http-2.8-shaded.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\wagon-file-2.8.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\slf4j-simple-1.7.5.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\slf4j-api-1.7.5.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\sisu-guice-3.2.3-no_aop.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\plexus-utils-3.0.20.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\plexus-sec-dispatcher-1.3.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\plexus-interpolation-1.21.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\plexus-component-annotations-1.5.5.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\plexus-cipher-1.7.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\org.eclipse.sisu.plexus-0.3.0.M1.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\org.eclipse.sisu.inject-0.3.0.M1.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\maven-settings-builder-3.2.5.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\maven-settings-3.2.5.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\maven-repository-metadata-3.2.5.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\maven-plugin-api-3.2.5.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\maven-model-builder-3.2.5.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\maven-model-3.2.5.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\maven-embedder-3.2.5.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\maven-core-3.2.5.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\maven-compat-3.2.5.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\maven-artifact-3.2.5.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\maven-aether-provider-3.2.5.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\jsr250-api-1.0.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\jsoup-1.7.2.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\javax.inject-1.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\guava-18.0.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\commons-lang-2.6.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\commons-io-2.2.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\commons-cli-1.2.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\cdi-api-1.0.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\aopalliance-1.0.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\aether-util-1.0.0.v20140518.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\aether-transport-wagon-1.0.0.v20140518.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\aether-spi-1.0.0.v20140518.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\aether-impl-1.0.0.v20140518.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\aether-connector-basic-1.0.0.v20140518.jar;C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5\lib\aether-api-1.0.0.v20140518.jar; -Dmaven.home=C:\Oracle\Middleware\Oracle_Home12212\oracle_common\modules\org.apache.maven_3.2.5 org.codehaus.classworlds.Launcher --settings C:\Users\livijayan\.m2\settings.xml --file C:\Users\livijayan\Helix_Code_12g\helix-app\Helix\adf\MedNeXtCustomizations_PROFILE21\CustomizationsModel\pom.xml package -Denv.ORACLE_HOME=C:\Oracle\Middleware\Oracle_Home12212

[INFO] Scanning for projects...

[INFO]                                                                        

[INFO] ------------------------------------------------------------------------

[INFO] Building CustomizationsModel 1.0-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[WARNING] The POM for com.oracle.adf.library:ADF-Library-Dependencies:pom:12.2.1-2-0 is missing, no dependency information available

[WARNING] The POM for com.oracle.adf.library:ADF-Library:pom:12.2.1-2-0 is missing, no dependency information available

[INFO] ------------------------------------------------------------------------

[INFO] BUILD SUCCESS

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 8.701 s

[INFO] Finished at: 2019-06-06T11:38:43+00:00

[INFO] Final Memory: 22M/1840M

[INFO] ------------------------------------------------------------------------

---------------------------------------------------

constituent[0]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/lib/aether-api-1.0.0.v20140518.jar

constituent[1]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/lib/aether-connector-basic-1.0.0.v20140518.jar

constituent[2]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/lib/aether-impl-1.0.0.v20140518.jar

constituent[3]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/lib/aether-spi-1.0.0.v20140518.jar

constituent[4]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/lib/aether-transport-wagon-1.0.0.v20140518.jar

constituent[5]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/lib/aether-util-1.0.0.v20140518.jar

constituent[6]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/lib/aopalliance-1.0.jar

constituent[7]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/lib/cdi-api-1.0.jar

constituent[8]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/lib/commons-cli-1.2.jar

constituent[9]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/lib/commons-io-2.2.jar

constituent[10]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/lib/commons-lang-2.6.jar

constituent[11]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/lib/guava-18.0.jar

constituent[12]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/lib/javax.inject-1.jar

constituent[13]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/lib/jsoup-1.7.2.jar

constituent[14]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/lib/jsr250-api-1.0.jar

constituent[15]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/lib/maven-aether-provider-3.2.5.jar

constituent[16]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/lib/maven-artifact-3.2.5.jar

constituent[17]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/lib/maven-compat-3.2.5.jar

constituent[18]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/lib/maven-core-3.2.5.jar

constituent[19]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/lib/maven-embedder-3.2.5.jar

constituent[20]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/lib/maven-model-3.2.5.jar

constituent[21]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/lib/maven-model-builder-3.2.5.jar

constituent[22]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/lib/maven-plugin-api-3.2.5.jar

constituent[23]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/lib/maven-repository-metadata-3.2.5.jar

constituent[24]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/lib/maven-settings-3.2.5.jar

constituent[25]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/lib/maven-settings-builder-3.2.5.jar

constituent[26]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/lib/org.eclipse.sisu.inject-0.3.0.M1.jar

constituent[27]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/lib/org.eclipse.sisu.plexus-0.3.0.M1.jar

constituent[28]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/lib/plexus-cipher-1.7.jar

constituent[29]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/lib/plexus-component-annotations-1.5.5.jar

constituent[30]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/lib/plexus-interpolation-1.21.jar

constituent[31]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/lib/plexus-sec-dispatcher-1.3.jar

constituent[32]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/lib/plexus-utils-3.0.20.jar

constituent[33]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/lib/sisu-guice-3.2.3-no_aop.jar

constituent[34]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/lib/slf4j-api-1.7.5.jar

constituent[35]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/lib/slf4j-simple-1.7.5.jar

constituent[36]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/lib/wagon-file-2.8.jar

constituent[37]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/lib/wagon-http-2.8-shaded.jar

constituent[38]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/lib/wagon-http-shared-2.8.jar

constituent[39]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/lib/wagon-provider-api-2.8.jar

constituent[40]: file:/C:/Oracle/Middleware/Oracle_Home12212/oracle_common/modules/org.apache.maven_3.2.5/conf/logging/

---------------------------------------------------

Exception in thread "main" java.lang.StackOverflowError

at org.eclipse.aether.util.graph.transformer.ConflictResolver$ConflictContext.isIncluded(ConflictResolver.java:1062)

at org.eclipse.aether.util.graph.transformer.NearestVersionSelector$1.accept(NearestVersionSelector.java:145)

at org.eclipse.aether.util.graph.visitor.PathRecordingDependencyVisitor.visitEnter(PathRecordingDependencyVisitor.java:93)

at org.eclipse.aether.graph.DefaultDependencyNode.accept(DefaultDependencyNode.java:334).

How can this error be resolved?

JDeveloper uses embedded Maven (3.2.5).

I also tried using an eternal Maven (Maven 3.6.0) from JDeveloper.
But, that is giving the error " maven.multiModuleProjectDirectory system property is not set".

Any suggestions would be really appreciated.

«1

Answers

  • Timo Hahn
    Timo Hahn Senior Principal Technical Consultant - Oracle ACE Director Member, Moderator Posts: 38,457 Red Diamond
    edited Jun 6, 2019 8:41AM

    Where did you create the pom.xml files? In 11g or 12c?

    You are using JDK 1.8.0_181, have you installed a patch to run this JDK, as it only works correctly with a patch installed?

    Have you looked at some of the available blogs on how to configure Maven?

    Timo

  • 4015909
    4015909 Member Posts: 9
    edited Jun 10, 2019 2:41AM

    Hi Timo,

    I created the pom.xml in 12c.

    I haven't installed any patch for JDK. But, there is no error related to JDK in the above logs.
    Yes, I have looked at few blogs on how to configure Maven for an ADF project.

    The above error has something to do with the Aether utility that Maven is using.
    I am using Http-Wagon to download some ADF libraries from Oracle Maven repository.
    Could this be because of the Http-Wagon version?

    Looking forward to your reply.

  • Timo Hahn
    Timo Hahn Senior Principal Technical Consultant - Oracle ACE Director Member, Moderator Posts: 38,457 Red Diamond
    edited Jun 10, 2019 5:14AM

    Sorry, but you can't know if the problem is related to hte JDK you are using. All I can say is that running JDev with a JDK 1.8.0 build higher then 101 without a patch is problematic. I know some problems, but not all.

    Your decision.

    As I don't use http wagon I can'T tell if the problem is related to this verison. Try out another verison if you can get one.

    Timo

  • 4015909
    4015909 Member Posts: 9
    edited Jun 10, 2019 5:47AM

    Hi Timo,

    Thanks for the response.
    Can you tell me how to set the system property "maven.multiModuleProjectDirectory" in JDeveloper?

  • Timo Hahn
    Timo Hahn Senior Principal Technical Consultant - Oracle ACE Director Member, Moderator Posts: 38,457 Red Diamond
    edited Jun 10, 2019 6:56AM

    This looks to be a java runtime property. Have you checked under tools->maven?

    Timo

  • 4015909
    4015909 Member Posts: 9
    edited Jun 10, 2019 8:09AM

    Yes.

    In JDeveloper, I have tried adding the parameter to Tools -> Maven -> Phases/Goals and added the parameter to the Goal "Clean".

    Then once I run maven clean, I still have the error.
    But, the error doesn't seem to appear in older versions of Maven.

    But, the older versions of Maven gives me the Aether error.

    It would be great if someone was able to find a resolution to this issue.

  • Timo Hahn
    Timo Hahn Senior Principal Technical Consultant - Oracle ACE Director Member, Moderator Posts: 38,457 Red Diamond
    edited Jun 10, 2019 8:39AM

    Have you tried to call maven through a batch script?

    This way you have full control over which java version and which parameters to use.

    Timo

  • 4015909
    4015909 Member Posts: 9
    edited Jun 10, 2019 9:03AM

    Yes. When I call from batch script, I am getting the Aether error.

  • dvohra21
    dvohra21 Member Posts: 14,573 Gold Crown
    edited Jun 10, 2019 6:40PM

    set maven.multiModuleProjectDirectory in

    the launch configuration

    -Dmaven.multiModuleProjectDirectory=

  • 4015909
    4015909 Member Posts: 9
    edited Jun 12, 2019 8:54AM

    Hi, I did set it.
    But, that didnt work.

This discussion has been closed.