2017-10-19 83 views
0

在的IntelliJ我可以看到這個圖片: enter image description hereorg.apache.camel:駱駝Maven的插件丟失(視窗10)

,當我嘗試運行我的節目,我看到這個錯誤:

[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> 

任何人都知道如何解決這個問題?

+0

您必須定義插件的版本... – khmarbaise

回答

1

警告

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

意味着,爲org.apache.camel 'build.plugins.plugin.version':駱駝Maven的插件缺失。

所以加

<version>2.20.0</version> 

到您的POM build.plugins.plugin部分。