Java 如何使用camunda enterprise edition配置Springboot?

Java 如何使用camunda enterprise edition配置Springboot?,java,spring-boot,camunda,Java,Spring Boot,Camunda,在使用camunda enterprise edition配置springboot时,我遇到了一个问题 project无法解析“camunda bpm spring boot starter webapp ee”的依赖项 如果我错过了什么配置,有人能建议吗 请查找以下配置 在pom.xml中 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-i

在使用camunda enterprise edition配置springboot时,我遇到了一个问题 project无法解析“camunda bpm spring boot starter webapp ee”的依赖项 如果我错过了什么配置,有人能建议吗

请查找以下配置

在pom.xml中

<project xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

    <modelVersion>4.0.0</modelVersion>

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

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

    <groupId>com.example.workflow</groupId>
    <artifactId>my-project-camunda</artifactId>
    <version>1.0.0-SNAPSHOT</version>
    <dependencies>
        <dependency>
            <groupId>org.camunda.bpm.springboot</groupId>
            <artifactId>camunda-bpm-spring-boot-starter-rest</artifactId>
            <version>${camunda.version}</version>
        </dependency>

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

        <dependency>
            <groupId>com.h2database</groupId>
            <artifactId>h2</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-ee</name>
            <url>https://app.camunda.com/nexus/content/repositories/camunda-bpm-ee</url>
        </repository>
        <repository>
            <id>camunda-bpm-nexus</id>
            <name>camunda-bpm-nexus</name>
            <url>https://app.camunda.com/nexus/content/groups/public</url>
        </repository>
    </repositories>

</project>

4.0.0
org.springframework.boot
spring启动程序父级
2.1.10.发布
8.
3.3.6
com.example.workflow
我的卡蒙达计划
1.0.0-SNAPSHOT
org.camunda.bpm.springboot
卡蒙达bpm弹簧防尘套起动机支架
${camunda.version}
org.camunda.bpm.springboot
camunda bpm春季启动webapp ee
${camunda.version}
com.h2数据库
氢
org.springframework.boot
springbootmaven插件
卡蒙达bpm nexus ee
卡蒙达bpm nexus ee
https://app.camunda.com/nexus/content/repositories/camunda-bpm-ee
卡蒙达bpm关系
卡蒙达bpm关系
https://app.camunda.com/nexus/content/groups/public
在src/main/resources中

camunda license.txt

它包含许可证密钥

请尝试以下解决方案: 解决方案1:

如果您使用的是企业版,还可以使用 camunda.bpm.license-file属性,以提供 在应用程序启动时插入。或者在 将camunda-license.txt命名为src/main/resources

更多信息:

解决方案2: 尝试Maven安装:步骤如下:

1.右键单击项目,选择运行方式->Maven安装。观察输出控制台以查看安装进度。安装完成后,您可以继续下一步。
2.右键单击Spring MVC项目,选择Maven->Update project.
3.选择您的项目并单击“确定”。等待更新过程完成。
4.如果错误仍然存在,则执行Project->Clean,然后确保已选择我们的项目目录,然后执行以下操作 项目->构建

解决方案3:

  • 从相应的文件夹中删除上次修改的jar
  • 选择项目

    • 右键单击->Maven
    • 更新项目
  • 它将下载所有丢失的罐子

    解决方案4:

    取消选中“自动生成”。再次勾选并开始下载 罐子


    您未更改的pom在我的环境中运行良好。我们的环境之间的一个区别是Maven配置

    从cmd运行mvn clean package-X来诊断问题。(首先在IDE之外进行诊断以降低复杂性。IDE可以使用自己的Maven、覆盖设置等。)

    您很可能会发现问题与您的凭据、代理配置或防火墙有关,或者您的构建正在使用另一个maven安装/config(另一个setting.xml)。获取存储库凭据的最可靠的方法是在您的user_home\.m2目录中放置一个settings.xml

    例如:

    <?xml version="1.0" encoding="UTF-8"?>
    <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
        <servers>   
            <server>
              <id>camunda-bpm-ee</id>
              <username>myuser.name</username>
              <password><![CDATA[myPassword]]></password>
             </server>
        </servers>
        <profiles>
            <profile>
                <id>camunda-bpm</id>
                <repositories>
                    <!-- spring maven repository -->
                    <repository>
                        <id>springsource-repo</id>
                        <name>SpringSource Repository</name>
                        <url>http://repo.springsource.org/release</url>
                    </repository>
                    <!-- camunda maven repository -->
                    <repository>
                        <id>camunda-bpm-nexus</id>
                        <name>camunda-bpm-nexus</name>
                        <url>https://app.camunda.com/nexus/content/groups/public</url>
                    </repository>
                    <repository>
                        <id>camunda-bpm-ee</id>
                        <name>camunda-bpm-ee</name>
                        <url>https://app.camunda.com/nexus/content/repositories/camunda-bpm-ee</url>
                    </repository>
                </repositories>
            </profile>
        </profiles>
        <activeProfiles>
            <activeProfile>camunda-bpm</activeProfile>
        </activeProfiles>
    </settings>
    
    
    卡蒙达酒店
    myuser.name
    卡蒙达bpm
    springsource回购
    SpringSource存储库
    http://repo.springsource.org/release
    卡蒙达bpm关系
    卡蒙达bpm关系
    https://app.camunda.com/nexus/content/groups/public
    卡蒙达酒店
    卡蒙达酒店
    https://app.camunda.com/nexus/content/repositories/camunda-bpm-ee
    


    一个常见的错误是存储库和凭据之间的ID不匹配(此处:camunda bpm ee)。

    我尝试了两种方法,但我的问题是maven没有下载“camunda bpm spring boot starter webapp ee”。您是否使用eclipse ide?是否尝试安装maven?步骤:1.选择项目并单击“确定”。等待更新过程完成。错误仍然存在,然后执行Project->Clean,然后确保您选择了我们的项目目录,然后执行follow Project->Build。2.右键单击SpringMVC项目,选择Maven->Update项目。3.选择您的项目并单击“确定”。等待更新过程完成。4.如果错误仍然存在,那么执行Project->Clean,然后确保您选择了我们的项目目录,然后执行follow Project->Build。实际上,我还试图手动下载camunda-bpm-spring-boot-starter-webapp-ee.jar,但无法下载是的,我找不到该jar,如果有人可以共享该链接,那将非常有用。您是否提供了nexus ee的凭据?您获得了ee下载的user/pw,并且必须为repo配置这些cred。