9 Replies Latest reply on Dec 28, 2017 5:46 AM by 3562183

    Developer Cloud service will support for jdeveloper 12.2.1.2 and Later to Build and deployment?

    3562183

      Hi,

       

      Whether developer cloud service will support for Jdev12.2.1.2 and later versions to do continuous build and deployment?

       

       

      Thank you in advance.

       

      Regards,

      Brahma.

        • 2. Re: Developer Cloud service will support for jdeveloper 12.2.1.2 and Later to Build and deployment?
          3562183

          Thank you Timo.

           

          But when I am trying to build through maven am getting below error. Did I missed any configuration? I fallowed below link to create Maven project.

           

           

          http://www.oracle.com/webfolder/technetwork/tutorials/obe/cloud/developer/BuildWithMaven/build_with_maven.html#overview and

          https://www.youtube.com/watch?v=ht8JgEAmrI8

           

          Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar

          Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar (165 KB at 29.0 KB/sec)

          [INFO] [C:\Oracle\Middleware/jdeveloper/jdev/bin/ojmake.exe, C:\JDeveloper\mywork\TestDCSApp\Model/Model.jpr]

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

          [INFO] Reactor Summary:

          [INFO]

          [INFO] Model .............................................. FAILURE [01:39 min]

          [INFO] ViewController ..................................... SKIPPED

          [INFO] TestDCSApp ......................................... SKIPPED

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

          [INFO] BUILD FAILURE

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

          [INFO] Total time: 01:39 min

          [INFO] Finished at: 2017-12-20T16:38:57+05:30

          [INFO] Final Memory: 11M/148M

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

          [ERROR] Failed to execute goal com.oracle.adf.plugin:ojmake:12.2.1-2-0:compile (default) on project Model: Cannot run program "C:\Oracle\Middleware/jdeveloper/jdev/bin/ojmake.exe": CreateProcess error=2, The system cannot find the file specified -> [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/MojoExecutionException

          C:\JDeveloper\mywork\TestDCSApp>

           

          Thank you in Advance.

           

          Regards,

          Brahma

          • 3. Re: Developer Cloud service will support for jdeveloper 12.2.1.2 and Later to Build and deployment?
            Timo Hahn

            [ERROR] Failed to execute goal com.oracle.adf.plugin:ojmake:12.2.1-2-0:compile (default) on project Model: Cannot run program "C:\Oracle\Middleware/jdeveloper/jdev/bin/ojmake.exe"

            This looks like you are building it on a local machine. The DCS runs on Linux and there is no drive 'C:/...'.

            You can use maven to build applications in JDev on your local machine. I guess this is a configuration problem. To build the app in the DCS you follow http://www.oracle.com/webfolder/technetwork/tutorials/obe/cloud/developer/BuildWithMaven/build_with_maven.html

            To build it locally look at https://docs.oracle.com/middleware/1213/core/MAVEN/adf_maven_project.htm#MAVEN8987 or When Maven builds ADF Part I - How-to series for Oracle JDeveloper

             

            Timo

            • 4. Re: Developer Cloud service will support for jdeveloper 12.2.1.2 and Later to Build and deployment?
              Shay Shmeltzer-Oracle

              At the moment it seems there is a bug with the Oracle Maven repository and versions 12.2.1.2 and 12.2.1.1 of FMW.

              (Bug 27283610)

              Try to build this with JDeveloper and ADF 12.2.1.3 and it should work.

              • 5. Re: Developer Cloud service will support for jdeveloper 12.2.1.2 and Later to Build and deployment?
                3562183

                Hi,

                 

                As mentioned the first one was from local. Now local mechine am able to. But as per the given link i tried build in cloud. I am getting below error. I think am missing some thing related to settings.xml

                 

                 

                [WARNING] Some problems were encountered while building the effective settings

                [WARNING] 'proxies.proxy.id' must be unique but found duplicate proxy with id default @ /home/builder/.m2/settings.xml

                [WARNING]

                [WARN] o.h.m.e.EventSpyProcessor - Unhandled event: org.apache.maven.toolchain.building.DefaultToolchainsBuildingRequest@4248ed58 (org.apache.maven.toolchain.building.DefaultToolchainsBuildingRequest)

                [WARN] o.h.m.e.EventSpyProcessor - Unhandled event: org.apache.maven.toolchain.building.DefaultToolchainsBuildingRequest@4248ed58 (org.apache.maven.toolchain.building.DefaultToolchainsBuildingRequest)

                [INFO] Scanning for projects...

                [ERROR] [ERROR] Some problems were encountered while processing the POMs:

                [FATAL] Non-readable POM /home/builder/hudson/workspace/developer33362-XXXXXXX_maventest_22412.ADF_Maven_Build/TestAppMaven9/pom.xml: /home/builder/hudson/workspace/developer33362-dazsi_maventest_22412.ADF_Maven_Build/TestAppMaven9/pom.xml (No such file or directory) @

                @

                [INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with exception(s)

                [INFO] o.h.m.e.h.MavenExecutionResultHandler - [1] org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:

                [FATAL] Non-readable POM /home/builder/hudson/workspace/developer33362-dazsi_maventest_22412.ADF_Maven_Build/TestAppMaven9/pom.xml: /home/builder/hudson/workspace/developer33362-dazsi_maventest_22412.ADF_Maven_Build/TestAppMaven9/pom.xml (No such file or directory) @

                 

                Thank you in Advance.

                 

                Regards,

                Brahma

                 

                • 7. Re: Developer Cloud service will support for jdeveloper 12.2.1.2 and Later to Build and deployment?
                  Shay Shmeltzer-Oracle

                  This looks like an issue with how your build is configured.

                  Have you set your build to be connected to the Git repository? Is your pom there?

                  If you issue a shell command to do "ls" for the directory where the build runs - is the pom.xml file indeed there (under TestAppMaven9)?

                  • 8. Re: Developer Cloud service will support for jdeveloper 12.2.1.2 and Later to Build and deployment?
                    3562183

                    Hi,

                     

                    I have connected to GIT and pushed source to cloud as well. When I create application, I choose the maven application which itself created the three pom files. After that I choose the Run Maven and Package then I can see successfully build all. But after I tried the same application in Developer Cloud service which leads to above mentioned error. I thin I am missing some thing here.

                     

                     

                     

                    Thank you in advance.

                     

                    Regards,

                    Brahmaiah

                    • 9. Re: Developer Cloud service will support for jdeveloper 12.2.1.2 and Later to Build and deployment?
                      3562183

                      Hi,

                       

                      After changing POM File path rom TestAppMaven9/pom.xml to pom.xml. I am not getting pom not found issue. But am getting below error.

                       

                      build steps.PNG

                       

                       

                       

                      Download Console Output   

                      Started by user xx@yy.com
                      Building remotely on Builder 6
                      Checkout:developer33362-dazsi_maventest_22412.ADF_Maven_Build / /home/c2c/hudson/workspace/developer33362-dazsi_maventest_22412.ADF_Maven_Build - hudson.remoting.Channel@5630163a:Builder 6
                      Using strategy: Default
                      Last Built Revision: Revision ac129e7ebf6f8c670b2331b247d6d1a73e6031ca (origin/master)
                      Checkout:developer33362-dazsi_maventest_22412.ADF_Maven_Build / /home/c2c/hudson/workspace/developer33362-dazsi_maventest_22412.ADF_Maven_Build - hudson.remoting.LocalChannel@87d9dd5
                      Cloning the remote Git repository
                      Cloning repository origin
                      Fetching upstream changes from https://developer.us2.oraclecloud.com/developer33362-dazsi/s/developer33362-dazsi_maventest_22412/scm/MavenTest.git
                      Commencing build of Revision ac129e7ebf6f8c670b2331b247d6d1a73e6031ca (origin/master)
                      Checking out Revision ac129e7ebf6f8c670b2331b247d6d1a73e6031ca (origin/master)
                      Setting up Oracle Maven repository access on us2z12-dcs-s16-hslave1.developer.z12.usdc2.oraclecloud.com as user xx@yy.com
                      [INFO] Using bundled Maven 3 installation
                      [INFO] Checking Maven 3 installation environment
                      [developer33362-dazsi_maventest_22412.ADF_Maven_Build] $ /home/c2c/hudson/maven/slavebundle/bundled-maven/bin/mvn --help
                      [INFO] Checking Maven 3 installation version
                      [developer33362-dazsi_maventest_22412.ADF_Maven_Build] $ /home/c2c/hudson/maven/slavebundle/bundled-maven/bin/mvn --version
                      [INFO] Detected Maven 3 installation version: 3.3.3
                      [DEBUG] Waiting for connection on port: 36490
                      [developer33362-dazsi_maventest_22412.ADF_Maven_Build] $ /home/c2c/hudson/maven/slavebundle/bundled-maven/bin/mvn clean install -V -B -Dmaven.ext.class.path=/home/c2c/hudson/maven/slavebundle/resources:/home/c2c/hudson/maven/slavebundle/lib/maven3-eventspy-3.1.jar:/opt/c2c/slave.jar -Dhudson.eventspy.port=36490 -f pom.xml
                      Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T11:57:37+00:00)
                      Maven home: /home/c2c/hudson/maven/slavebundle/bundled-maven
                      Java version: 1.8.0_144, vendor: Oracle Corporation
                      Java home: /usr/java/jdk1.8.0_144/jre
                      Default locale: en_US, platform encoding: UTF-8
                      OS name: "linux", version: "2.6.39-400.109.6.el6uek.x86_64", arch: "amd64", family: "unix"
                      SLF4J: Class path contains multiple SLF4J bindings.
                      SLF4J: Found binding in [jar:file:/home/c2c/hudson/maven/slavebundle/lib/maven3-eventspy-runtime.jar!/org/slf4j/impl/StaticLoggerBinder.class]
                      SLF4J: Found binding in [jar:file:/home/c2c/hudson/maven/slavebundle/bundled-maven/lib/slf4j-simple-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
                      SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
                      [DEBUG] Connected to remote
                      [WARNING]
                      [WARNING] Some problems were encountered while building the effective settings
                      [WARNING] 'proxies.proxy.id' must be unique but found duplicate proxy with id default @ /home/builder/.m2/settings.xml
                      [WARNING]
                      [WARN] o.h.m.e.EventSpyProcessor - Unhandled event: org.apache.maven.toolchain.building.DefaultToolchainsBuildingRequest@4248ed58 (org.apache.maven.toolchain.building.DefaultToolchainsBuildingRequest)
                      [WARN] o.h.m.e.EventSpyProcessor - Unhandled event: org.apache.maven.toolchain.building.DefaultToolchainsBuildingRequest@4248ed58 (org.apache.maven.toolchain.building.DefaultToolchainsBuildingRequest)
                      [INFO] Scanning for projects...
                      Downloading: https://maven.oracle.com/com/oracle/adf/adf-parent/12.2.1-2-0/adf-parent-12.2.1-2-0.pom
                      Downloading: https://repo.maven.apache.org/maven2/com/oracle/adf/adf-parent/12.2.1-2-0/adf-parent-12.2.1-2-0.pom
                      [ERROR] [ERROR] Some problems were encountered while processing the POMs:
                      [FATAL] Non-resolvable parent POM for TestAppMaven9:TestAppMaven9:1.0-SNAPSHOT: Could not transfer artifact com.oracle.adf:adf-parent:pom:12.2.1-2-0 from/to maven.oracle.com (https://maven.oracle.com): Not authorized , ReasonPhrase:Unauthorized. and 'parent.relativePath' points    at  no local POM @ line 68, column 11
                      @
                      [INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with exception(s)
                      [INFO] o.h.m.e.h.MavenExecutionResultHandler - [1] org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
                      [FATAL] Non-resolvable parent POM for TestAppMaven9:TestAppMaven9:1.0-SNAPSHOT: Could not transfer artifact com.oracle.adf:adf-parent:pom:12.2.1-2-0 from/to maven.oracle.com (https://maven.oracle.com): Not authorized , ReasonPhrase:Unauthorized. and 'parent.relativePath' points    at  no local POM @ line 68, column 11

                      [DEBUG] Closing connection to remote
                      [ERROR] The build could not read 1 project -> [Help 1]
                      [ERROR]  
                      [ERROR]   The project TestAppMaven9:TestAppMaven9:1.0-SNAPSHOT (/home/builder/hudson/workspace/developer33362-dazsi_maventest_22412.ADF_Maven_Build/pom.xml) has 1 error
                      [ERROR]     Non-resolvable parent POM for TestAppMaven9:TestAppMaven9:1.0-SNAPSHOT: Could not transfer artifact com.oracle.adf:adf-parent:pom:12.2.1-2-0 from/to maven.oracle.com (https://maven.oracle.com): Not authorized , ReasonPhrase:Unauthorized. and 'parent.relativePath' points    at  no local POM @ line 68, column 11 -> [Help 2]
                      [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/ProjectBuildingException
                      [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
                      [DEBUG] Waiting for process to finish
                      [DEBUG] Result: 1
                      Restoring maven settings on us2z12-dcs-s16-hslave1.developer.z12.usdc2.oraclecloud.com
                      Archiving artifacts
                      $ docker ps -a -q
                      Finished: FAILURE

                      Regards,
                      Brahmaiah