Azure函数javax.xml.bind.JAXBException

时间:2018-06-06 03:05:05

标签: java maven azure azure-functions azure-functions-runtime

我尝试按照Microsoft提供的说明运行此sample函数。我目前正在运行java版本10.0.1,我得到javax.xml.bind.jaxbexception。我知道它引用了一个github article,它应该为我提供一个解决方法,但我仍然得到同样的错误。到目前为止,我已尝试更新pom.xml中的依赖项,并且我尝试添加命令行参数--add-modules java.xml.bind。在execvuting 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>

0 个答案:

没有答案
相关问题