Regarding spring-boot maven dependencies for enterprise edition

Setting up a project with community edition from camunda spring initializr works fine and able to start the app and can go through webapps of embedded process engine but the same does not work with enterprise maven dependencies as mentioned over here –https://docs.camunda.org/get-started/apache-maven/.

Have included camunda-license.txt in resources folder and the dependencies are

 <dependency>
        <groupId>org.camunda.bpm</groupId>
        <artifactId>camunda-bom</artifactId>
        <version>7.13.0-ee</version>
        <scope>import</scope>
        <type>pom</type>
    </dependency>

   <dependency>
      <groupId>org.camunda.bpm.springboot</groupId>
      <artifactId>camunda-bpm-spring-boot-starter-webapp-ee</artifactId>
      <version>7.13.0-ee</version>
    </dependency>

Included repositories and changed settings.xml with server,username,password but the artifact is missing and not able to get the dependencies.

Even followed this video -https://www.youtube.com/watch?v=kCa6QJeyjOQ&list=LLDTR4UC92OhiCE17qhd8lhw&index=2&t=0s

But nothing seems working. can someone let me know about this please

1 Like

What error exactly are you getting?

Even I am also facing the same issue. Provided the enterprise edition dependencies in pom.xml and included the camunda-license.txt in resources folder.

Do I need to change the application.yaml file and add a property .license-file as mentioned here - https://docs.camunda.org/manual/7.13/user-guide/spring-boot-integration/configuration/#license-file

This is the error:

ERROR] Failed to execute goal on project hello-world-demo: Could not resolve dependencies for project com.vodafone.m2m.gdsp:hello-world-demo:jar:1.0.0-SNAPSHOT: The following artifacts could not be resolved: org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter-rest-ee:jar:7.13.0-ee, org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter-webapp-ee:jar:7.13.0-ee, org.camunda.bpm:camunda-bom:pom:7.13.0-ee: Could not find artifact org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter-rest-ee:jar:7.13.0-ee in central (https://repo.maven.apache.org/maven2) -> [Help 1]

@Niall- pom.xml prompts with a error saying Missing artifact org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter-webapp-ee:jar:7.13.0-ee . Those jars required are missing or may be not able to download. This is the error.

[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.camunda.bpm:camunda-bom:pom:7.13.0-ee is missing, no dependency information available
[WARNING] The POM for org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter-webapp-ee:jar:7.13.0-ee is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE

@Rakesh refer this section:

Please find below the known issue in Artifactory while configuring Nexus repository as a Maven remote proxy.

While testing the connection in Artifactory, if you get “Connection failed: Error 404: Not Found” message then you can ignore it, and continue to add the repository. The maven build should be able to download dependencies without any issues.

https://docs.camunda.org/get-started/apache-maven/#enterprise-edition-1

@aravindhrs- I have followed the same way mentioned over link.

 <dependency>
        <groupId>org.camunda.bpm</groupId>
        <artifactId>camunda-bom</artifactId>
        <version>7.13.0-ee</version>
        <scope>import</scope>
        <type>pom</type>
    </dependency>

   <dependency>
      <groupId>org.camunda.bpm.springboot</groupId>
      <artifactId>camunda-bpm-spring-boot-starter-webapp-ee</artifactId>
      <version>7.13.0-ee</version>
    </dependency>
  

    <dependency>
      <groupId>com.h2database</groupId>
      <artifactId>h2</artifactId>
    </dependency>

    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-jdbc</artifactId>
    </dependency>

  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-maven-plugin</artifactId>
      </plugin>
    
      
    </plugins>
  </build>

<repositories>
  <repository>
    <id>camunda-bpm-nexus-ee</id> 
    <name>camunda-bpm-nexus</name>
    <url>
       https://app.camunda.com/nexus/content/repositories/camunda-bpm-ee
     </url>
  </repository>
</repositories> 

</project> 

Here the build fails as the repository is not able to find the dependencies and the changes included settings.xml

<server>
 <id> camunda-bpm-nexus-ee</id>
 <username>Username</username>
 <password>password</password>
</server>

@Rakesh Are you able to browse the dependencies from this nexus path? The user needs to login to the nexus repository before accessing the link.

https://app.camunda.com/nexus/service/rest/repository/browse/camunda-bpm-ee

Try to open this link in browser. Please note that the link will not be accessible if the user didn’t login beforehand.

@aravindhrs This is the reponse received

This app.camunda.com page can’t be found

No webpage was found for the web address: https://app.camunda.com/nexus/service/rest/repository/browse/camunda-bpm-ee/

HTTP ERROR 404

Thank you @aravindhrs
Is the login to nexus repository a manual process to be done or does it happen from maven when all the proxy settings.xml is included. if not, how to login to nexus and access these.

@Rakesh if you want to use camunda spring boot enterprise version, why can’t you download the enterprise version of camunda bpm run?

https://downloads.camunda.cloud/enterprise-release/camunda-bpm/run/7.13/7.13.3/camunda-bpm-run-ee-7.13.3-ee.zip

I was able to setup the project:

@aravindhrs- Is that embedded in spring-boot ? . We need the embedded process engine(Not a separate setup using ZIP file) and the repository URL displays 404 not found even after included in settings.xml

The same way community version works with embedded process engine and no separate setup was done.

@Niall, Dependency version needs to be updated in the docs page.

https://docs.camunda.org/manual/latest/user-guide/spring-boot-integration/

@Rakesh/@Sathish I was able to browse the nexus repo for camunda enterprise.


Finally found the rest artifact from the repository: :smile:


@Niall, Below artifact is needs to be added in docs (missing): Other enterprise artifact name ends with suffix -ee. But for spring-boot-starter-rest artifact there’s no suffix called -ee.


Below is the valid artifact:

<dependency>
    <groupId>org.camunda.bpm.springboot</groupId>
    <artifactId>camunda-bpm-spring-boot-starter-rest</artifactId>
    <version>7.13.0-ee</version>
</dependency>

Solution: It should be camunda-bpm-spring-boot-starter-rest and not camunda-bpm-spring-boot-starter-rest-ee


aravindhr@W8-/c/sts-3.9.1-workspace/camundaenterprise
$ mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO] -----------------< com.bpm.camunda:camundaenterprise >------------------
[INFO] Building camundaenterprise 1.0
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from camunda-bpm-nexus-ee: https://app.camunda.com/nexus/content/repositories/camunda-bpm-ee/org/camunda/bpm/springboot/camunda-bpm-spring-boot-starter-rest/7.13.0-ee/camunda-bpm-spring-boot-starter-rest-7.13.0-ee.pom
Downloaded from camunda-bpm-nexus-ee: https://app.camunda.com/nexus/content/repositories/camunda-bpm-ee/org/camunda/bpm/springboot/camunda-bpm-spring-boot-starter-rest/7.13.0-ee/camunda-bpm-spring-boot-starter-rest-7.13.0-ee.pom (2.0 kB at 911 B/s)
Downloading from camunda-bpm-nexus-ee: https://app.camunda.com/nexus/content/repositories/camunda-bpm-ee/org/camunda/bpm/springboot/camunda-bpm-spring-boot-starter-rest/7.13.0-ee/camunda-bpm-spring-boot-starter-rest-7.13.0-ee.jar
Downloaded from camunda-bpm-nexus-ee: https://app.camunda.com/nexus/content/repositories/camunda-bpm-ee/org/camunda/bpm/springboot/camunda-bpm-spring-boot-starter-rest/7.13.0-ee/camunda-bpm-spring-boot-starter-rest-7.13.0-ee.jar (8.3 kB at 13 kB/s)
[INFO]
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ camundaenterprise ---
[INFO] Deleting C:\sts-3.9.1-workspace\camundaenterprise\target
[INFO]
[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ camundaenterprise ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ camundaenterprise ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to C:\sts-3.9.1-workspace\camundaenterprise\target\classes
[INFO]
[INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ camundaenterprise ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\sts-3.9.1-workspace\camundaenterprise\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ camundaenterprise ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ camundaenterprise ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:3.1.2:jar (default-jar) @ camundaenterprise ---
[INFO] Building jar: C:\sts-3.9.1-workspace\camundaenterprise\target\camundaenterprise-1.0.jar
[INFO]
[INFO] --- spring-boot-maven-plugin:2.2.5.RELEASE:repackage (repackage) @ camundaenterprise ---
[INFO] Replacing main artifact with repackaged archive
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ camundaenterprise ---
[INFO] Installing C:\sts-3.9.1-workspace\camundaenterprise\target\camundaenterprise-1.0.jar to C:\Users\aravindhr\.m2\repository\com\bpm\camunda\camundaenterprise\1.0\camundaenterprise-1.0.jar
[INFO] Installing C:\sts-3.9.1-workspace\camundaenterprise\pom.xml to C:\Users\aravindhr\.m2\repository\com\bpm\camunda\camundaenterprise\1.0\camundaenterprise-1.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  54.500 s
[INFO] Finished at: 2020-08-22T22:59:42+05:30
[INFO] ------------------------------------------------------------------------

Verify in ACT_GE_PROPERTY table for license key:

SELECT * FROM public.act_ge_property


License key will be auto imported, once we have the classpath:

image

Application startup log:

org.camunda.bpm.spring.boot              : STARTER-SB015 create initial filter: id=9c7a4dbd-e4a1-11ea-883c-507b9dc4ed46 name=All
org.camunda.bpm.spring.boot              : STARTER-SB030 Setting up license key: file:/C:/sts-3.9.1-workspace/camundaenterprise/target/classes/camunda-license.txt
JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
o.c.b.s.b.s.w.f.LazyInitRegistration     : lazy initialized org.camunda.bpm.spring.boot.starter.webapp.filter.LazySecurityFilter@1de9d54
o.c.b.s.b.s.w.f.LazyInitRegistration     : lazy initialized org.camunda.bpm.spring.boot.starter.webapp.filter.LazyProcessEnginesFilter@1cb7936c
org.camunda.bpm.container                : ENGINE-08024 Found processes.xml file at file:/C:/sts-3.9.1-workspace/camundaenterprise/target/classes/META-INF/processes.xml
org.camunda.bpm.container                : ENGINE-08023 Deployment summary for process archive 'camundaEnterpriseApplication': 

Hi @ aravindhrs

I am still getting the same error:

[INFO]
[INFO] ---------------< com.vodafone.m2m.gdsp:hello-world-demo >---------------
[INFO] Building hello-world-demo 1.0.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] Downloading from : https://app.camunda.com/nexus/content/repositories/camunda-bpm-ee/org/camunda/bpm/springboot/camunda-bpm-spring-boot-starter-rest/7.13.0-ee/camunda-bpm-spring-boot-starter-rest-7.13.0-ee.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 31.499 s
[INFO] Finished at: 2020-08-23T19:04:11+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project hello-world-demo: Could not resolve dependencies for project com.vodafone.m2m.gdsp:hello-world-demo:jar:1.0.0-SNAPSHOT: Failed to collect dependencies at org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter-rest:jar:7.13.0-ee: Failed to read artifact descriptor for org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter-rest:jar:7.13.0-ee: Could not transfer artifact org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter-rest:pom:7.13.0-ee from/to camunda-bpm-nexus-ee

This is my pom.xml:

<properties>
	<java.version>8</java.version>
</properties>

<groupId>com.vodafone.m2m.gdsp</groupId>
<artifactId>hello-world-demo</artifactId>
<version>1.0.0-SNAPSHOT</version>

<dependencies>
	<dependency>
		<groupId>org.camunda.bpm.springboot</groupId>
		<artifactId>camunda-bpm-spring-boot-starter-rest</artifactId>
		<version>7.13.0-ee</version>
	</dependency>

	<dependency>
		<groupId>org.camunda.bpm.springboot</groupId>
		<artifactId>camunda-bpm-spring-boot-starter-webapp-ee</artifactId>
		<version>7.13.0-ee</version>
		<scope>compile</scope>
	</dependency>

	<dependency>
		<groupId>com.h2database</groupId>
		<artifactId>h2</artifactId>
	</dependency>

	<dependency>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-jdbc</artifactId>
	</dependency>

	<dependency>
		<groupId>org.camunda.bpm</groupId>
		<artifactId>camunda-bom</artifactId>
		<version>7.13.0-ee</version>
		<scope>import</scope>
		<type>pom</type>
	</dependency>
</dependencies>

<build>
	<plugins>
		<plugin>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-maven-plugin</artifactId>
		</plugin>
	</plugins>
	<finalName>hello-world-demo</finalName>
</build>

<repositories>
	<repository>
		<id>camunda-bpm-nexus-ee</id>
		<name>camunda-bpm-nexus</name>
		<url>https://app.camunda.com/nexus/content/repositories/camunda-bpm-ee</url>
	</repository>
</repositories>

Changes included in settings.xml:

camunda-bpm-nexus-ee Username password

Am I missing something here?
Please help.

Thanks,
Sathish

@Sathish are you able to login to nexus with username/password?

https://app.camunda.com/nexus/

This dependency is available in path: https://app.camunda.com/nexus/repository/camunda-bpm-ee/org/camunda/bpm/springboot/camunda-bpm-spring-boot-starter-rest/7.13.0-ee/camunda-bpm-spring-boot-starter-rest-7.13.0-ee.jar

So in your pom.xml, add configure repository like this:

image

How does your settings.xml looks like? It should be like below. The first tag should start with <settings>

image

Hi @aravindhrs,

I have done all the changes as mentioned above.

Yes,I am able to access the nexus url : https://app.camunda.com/nexus/ and able to download the jar also but from my application the required dependencies are not downloading and getting the below error.

ERROR] Failed to execute goal on project hello-world-demo: Could not resolve dependencies for project com.vodafone.m2m.gdsp:hello-world-demo:jar:1.0.0-SNAPSHOT: Failed to collect dependencies at org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter-rest:jar:7.13.0-ee: Failed to read artifact descriptor for org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter-rest:jar:7.13.0-ee: Could not transfer artifact org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter-rest:pom:7.13.0-ee from/to camunda-bpm-nexus-ee (https://app.camunda.com/nexus/content/repositories/camunda-bpm-ee): 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.

Thanks,
Sathish

Did you add repository like this? I was able to run the application and even i had done the setup for optimize too.

Hi @aravindhrs,

I am able to login to nexus with the username and password.

Changes done in the pom.xml as mentioned in the above image. After adding those repositories now the actual issue is :

sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

@Sathish can you provide complete settings.xml? (remove sensitive info)

Did you add the License key file to the classpath?

Path: /src/main/resources/camunda-license.txt

Copy the license key content to the file without editing/formatting.

image

Able to login to nexus repository but mvn install not able to pickup those dependencies

[INFO] Building sampledocker 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] Downloading: https://app.camunda.com/nexus/content/repositories/camunda-bpm-ee/org/camunda/bpm/camunda-bom/7.13.0-ee/camunda-bom-7.13.0-ee.pom
[INFO] Downloading: https://app.camunda.com/nexus/content/repositories/camunda-bpm-ee/org/camunda/bpm/springboot/camunda-bpm-spring-boot-starter-webapp-ee/7.13.0-ee/camunda-bpm-spring-boot-starter-webapp-ee-7.13.0-ee.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14.981 s
[INFO] Finished at: 2020-08-23T23:50:43+05:30
[INFO] Final Memory: 18M/153M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project sampledocker: Could not resolve dependencies for project com.camunda.docker:sampledocker:jar:1.0.0-SNAPSHOT: Failed to collect dependencies at org.camunda.bpm:camunda-bom:pom:7.13.0-ee: Failed to read artifact descriptor for org.camunda.bpm:camunda-bom:pom:7.13.0-ee: Could not transfer artifact org.camunda.bpm:camunda-bom:pom:7.13.0-ee from/to camunda-bpm-nexus-ee (https://app.camunda.com/nexus/content/repositories/camunda-bpm-ee): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]