Regarding spring-boot maven dependencies for enterprise edition

@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]

remove this from pom.xml it will work or find a way to resolve this issue. Without adding this bom, build works fine.

This should be part of <dependencyManagement>

Tried removing that but it throws the below error always. Is that repository specific ? can we avoid this error in anyway ?

Are you using .cert files? This error occurs when .cert files not found or not installed.

To run the application .cert files not required, camunda-license.txt file is enough.

Have n’t configured any .cert files manually. By default probably trying from C:\Program Files\Java\jdk1.8.0_141\jre\lib\security. Imported as a normal maven project and included the dependencies.

image

Have you configured any property in application.properties file related to license file?

application.properties

application.properties
spring.datasource.url= jdbc:h2:file:./camunda-h2-database
server.port=5000

[INFO] ------------------------------------------------------------------------
[INFO] Building sampledocker 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[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

@Rakesh/@Sathish can you upload your project in google drive or github and share the link? I will look into the issue.

Can you provide the complete pom.xml file?

Complete pom.xml

<modelVersion>4.0.0</modelVersion>

<parent>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-parent</artifactId>
	<version>2.2.5.RELEASE</version>
	<relativePath />
</parent>

<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>
	<repository>
		<id>camunda-bpm-ee</id>
		<name>camunda-bpm-nexus</name>
		<url>https://app.camunda.com/nexus/repositories</url>
	</repository>
</repositories>