Uploaded image for project: 'BxMS Documentation'
  1. BxMS Documentation
  2. BXMSDOC-8629

Need to add steps to configure maven settings.xml before starting to create spring boot based business-application projects.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 7.13
    • Other
    • 2023 Week 03-05 (from Jan 16)

      Following the steps of Chapter 2.1. in Integrating Red Hat Process Automation Manager with other products and components document [1], mvn archetype:generate ... commands in the steps in [1] cause an error like (*1).
      To run the commands in the steps [1] without the error (*1), we need to add Red Hat GA maven repository (https://maven.repository.redhat.com/ga/) to ~/.m2/settings.xml before running the commands.
      We should add the same steps as Chapter 34.1.1. in [2] before the steps [1].

      [1] Red Hat Process Automation Manager > 7.13 > Integrating Red Hat Process Automation Manager with other products and components - 2.1. Creating a Spring Boot business application from Maven archetypes
      https://access.redhat.com/documentation/en-us/red_hat_process_automation_manager/7.13/html-single/integrating_red_hat_process_automation_manager_with_other_products_and_components/index#bus-app-create_business-applications

      Procedure

      Enter one of the following commands to create your Spring Boot business application project. In these commands, replace business-application with the name of your business application:

      • To create a business asset project that contains business processes, rules, and forms:

        mvn archetype:generate -B -DarchetypeGroupId=org.kie -DarchetypeArtifactId=kie-kjar-archetype -DarchetypeVersion=7.67.0.Final-redhat-00017 -DgroupId=com.company -DartifactId=business-application-kjar -Dversion=1.0-SNAPSHOT -Dpackage=com.company

        This command creates a project which generates business-application-kjar-1.0-SNAPSHOT.jar.

      :
      :

      [2] Red Hat Process Automation Manager > 7.13 > Getting started with Red Hat Process Automation Manager - 34.1.1. Configuring the Maven settings.xml file for the online repository
      https://access.redhat.com/documentation/en-us/red_hat_process_automation_manager/7.13/html-single/getting_started_with_red_hat_process_automation_manager/index#con-online-maven_getting-started-optaplanner

      (*1) Result of mvn archetype:generate command

      $ mvn archetype:generate -B -DarchetypeGroupId=org.kie -DarchetypeArtifactId=kie-kjar-archetype -DarchetypeVersion=7.67.0.Final-redhat-00017 -DgroupId=com.company -DartifactId=business-application-kjar -Dversion=1.0-SNAPSHOT -Dpackage=com.company
      [INFO] Scanning for projects...
          :
          :
      [INFO] 
      [INFO] ------------------< org.apache.maven:standalone-pom >-------------------
      [INFO] Building Maven Stub Project (No POM) 1
      [INFO] --------------------------------[ pom ]---------------------------------
      [INFO] 
      [INFO] >>> maven-archetype-plugin:3.2.1:generate (default-cli) > generate-sources @ standalone-pom >>>
      [INFO] 
      [INFO] <<< maven-archetype-plugin:3.2.1:generate (default-cli) < generate-sources @ standalone-pom <<<
      [INFO] 
      [INFO] 
      [INFO] --- maven-archetype-plugin:3.2.1:generate (default-cli) @ standalone-pom ---
          :
          :
      [INFO] Generating project in Batch mode
      [INFO] Archetype repository not defined. Using the one from [org.kie:kie-kjar-archetype:8.27.0.Beta] found in catalog remote
      [INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/kie/kie-kjar-archetype/7.67.0.Final-redhat-00017/kie-kjar-archetype-7.67.0.Final-redhat-00017.pom
      [WARNING] The POM for org.kie:kie-kjar-archetype:jar:7.67.0.Final-redhat-00017 is missing, no dependency information available
      [INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/kie/kie-kjar-archetype/7.67.0.Final-redhat-00017/kie-kjar-archetype-7.67.0.Final-redhat-00017.jar
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time:  52.301 s
      [INFO] Finished at: 2022-10-13T10:43:09+09:00
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate (default-cli) on project standalone-pom: The desired archetype does not exist (org.kie:kie-kjar-archetype:7.67.0.Final-redhat-00017) -> [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/MojoFailureException
      

            emmurphy1@redhat.com Emily Murphy
            rhn-support-myoshida Masato Yoshida
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: