1

我正在尝试按照 Microsoft 提供的说明运行此示例函数。我目前正在运行 java 版本 10.0.1,我得到了javax.xml.bind.jaxbexception. 我知道它引用了一篇应该为我提供解决方法的 github文章,但我仍然遇到同样的错误。到目前为止,我已经尝试更新我的依赖项,pom.xml并尝试添加命令行参数--add-modules java.xml.bind。执行时如何添加此命令行参数mvn clean package?如果它有助于我在 macOS High Sierra 上运行。

pom.xml

<dependencies>
    <dependency>
        <groupId>com.microsoft.azure</groupId>
        <artifactId>azure-functions-java-core</artifactId>
        <version>1.0.0-beta-3</version>
    </dependency>
    <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.12</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.mockito</groupId>
        <artifactId>mockito-core</artifactId>
        <version>2.4.0</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>javax.xml.bind</groupId>
        <artifactId>jaxb-api</artifactId>
        <version>2.2.11</version>
    </dependency>
    <dependency>
        <groupId>com.sun.xml.bind</groupId>
        <artifactId>jaxb-core</artifactId>
        <version>2.2.11</version>
    </dependency>
    <dependency>
        <groupId>com.sun.xml.bind</groupId>
        <artifactId>jaxb-impl</artifactId>
        <version>2.2.11</version>
    </dependency>
</dependencies>
4

0 回答 0