gpt4 book ai didi

java - org.apache.camel :camel-maven-plugin is missing (Windows 10)

转载 作者:行者123 更新时间:2023-12-02 12:06:56 26 4
gpt4 key购买 nike

在 IntelliJ 中我可以看到这个图像: enter image description here

当我尝试运行我的程序时,我看到此错误:

[WARNING] Some problems were encountered while building the effective model for com.domain.subdomain:06-sprint-currency-route:jar:1.0-SNAPSHOT [WARNING] 'build.plugins.plugin.version' for org.apache.camel:camel-maven-plugin is missing. @ line 75, column 21

我的 Pom 文件:

<?xml version="1.0" encoding="UTF-8"?>
<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>

<groupId>com.domain.subdomain</groupId>
<artifactId>06-sprint-currency-route</artifactId>
<version>1.0-SNAPSHOT</version>


<dependencies>
<!-- https://mvnrepository.com/artifact/org.apache.camel/camel-core -->
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-core</artifactId>
<version>2.20.0</version>
</dependency>

<!-- https://mvnrepository.com/artifact/org.apache.camel/camel-spring -->
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-spring</artifactId>
<version>2.20.0</version>
</dependency>

<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>spi-annotations</artifactId>
<version>2.20.0</version>
</dependency>

<!-- https://mvnrepository.com/artifact/org.apache.camel/camel-jms -->
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-jms</artifactId>
<version>2.20.0</version>
</dependency>

<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-http4</artifactId>
<version>2.20.0</version>
</dependency>

<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-quartz</artifactId>
<version>2.20.0</version>
</dependency>


<!-- https://mvnrepository.com/artifact/org.apache.activemq/activemq-all -->
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-all</artifactId>
<version>5.15.0</version>
</dependency>

<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-log4j12 -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.25</version>
<scope>test</scope>
</dependency>


</dependencies>


<build>
<plugins>
<!-- Allows the routes to be run via 'mvn camel:run' -->
<plugin>
<groupId>org.apache.camel</groupId>
<artifactId>camel-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>

有人知道如何解决这个问题吗?

最佳答案

警告

'build.plugins.plugin.version' for org.apache.camel:camel-maven-plugin is missing

意味着 org.apache.camel:camel-maven-plugin 的 'build.plugins.plugin.version' 丢失。

所以添加

<version>2.20.0</version>

进入 pom 中的 build.plugins.plugin 部分。

关于java - org.apache.camel :camel-maven-plugin is missing (Windows 10),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46837896/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com