2017-10-19 28 views
0

En IntelliJ je peux voir cette image: enter image description hereorg.apache.camel: camel-maven-plugin est manquant (Windows 10)

Et quand je tente d'exécuter mon programme que je vois cette erreur:

[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

fichier Mon 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> 

Quelqu'un sait comment résoudre ce problème?

+0

Vous devez définir la version du plugin ... – khmarbaise

Répondre

1

Avertissement

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

signifie, que 'build.plugins.plugin.version' pour org.apache.camel: camel-maven-plugin est manquant.

ajouter Alors

<version>2.20.0</version> 

dans votre build.plugins.plugin section pom.