2017-10-16 18 views
0

Je suis l'exemple d'application dukes-age de https://javaee.github.io/firstcup/creating-example002.html, et je suis confronté à un problème en essayant de construire le dukes-age.war.Problème avec jbake-maven-plugin

L'erreur reçue sur la construction est:

Failed to execute goal from com.blazebit:jbake-maven-plugin:1.0.0:build (build-site) on project dukes-age: Failure when running: Error: Source folder must exist: ... -> [Help 1] 

J'ai changé le fichier pom.xml comme suit:

<?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/maven-v4_0_0.xsd"> 
<modelVersion>4.0.0</modelVersion> 

<parent> 
    <artifactId>firstcup</artifactId> 
    <groupId>org.glassfish.docs</groupId> 
    <version>8.0</version> 
</parent> 

<groupId>com.mycompany</groupId> 
<artifactId>dukes-age</artifactId> 
<packaging>war</packaging> 
<name>dukes-age</name> 

<version>1.0-SNAPSHOT</version> 
<dependencies> 
    <dependency> 
     <groupId>javax.ws.rs</groupId> 
     <artifactId>javax.ws.rs-api</artifactId> 
     <version>2.0.1</version> 
     <scope>provided</scope> 
    </dependency> 
    <dependency> 
     <groupId>com.blazebit</groupId> 
     <artifactId>jbake-maven-plugin</artifactId> 
     <version>1.0.0</version> 
    </dependency> 
</dependencies> 

<build> 
    <plugins> 
     <plugin> 
      <groupId>com.blazebit</groupId> 
      <artifactId>jbake-maven-plugin</artifactId> 
      <version>1.0.0</version> 
      <executions> 
       <execution> 
        <phase>generate-resources</phase> 
        <goals> 
         <goal>build</goal> 
        </goals> 
        <configuration> 
         <properties> 
          <site.url>http://localhost:8820/</site.url> 
         </properties> 
        </configuration> 
       </execution> 
      </executions> 
     </plugin> 
    </plugins> 
</build> 

Qu'est-ce que je fais mal?

Merci beaucoup

Répondre

0

Vous n'avez pas besoin de la version BlazeBit du JBake Maven Plugin pour construire le duc-ages.war je vous suggère de commenter la dépendance et la section de plug-in pour cela et essayer à nouveau .