jbake-maven-plugin的问题

时间:2017-10-16 10:13:10

标签: maven java-ee netbeans jbake

我跟随https://javaee.github.io/firstcup/creating-example002.html的dukes-age示例应用程序,并且在尝试构建dukes-age.war时我遇到了问题。

建筑物收到的错误是:

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]

我已按如下方式更改了pom.xml文件:

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

我做错了什么?

非常感谢

1 个答案:

答案 0 :(得分:0)

你不需要使用BlaakeBit版本的JBake Maven插件来构建duke-ages.war我建议你注释掉依赖项和插件部分,然后再试一次。