Maven常见错误(一)

在使用Maven install进行打包时

OS=Windows and the assembly descriptor contains a *nix-specific root-relativ

报出来如上的错误。

解决方案:
在打包项目的xml中加上下面的代码即可。

<fileSets>
    <fileSet>
        <directory>${basedir}/src/main/resources</directory>
        <outputDirectory></outputDirectory>
    </fileSet>
</fileSets>

猜你喜欢

转载自www.cnblogs.com/liliHexiaogou/p/11478602.html
今日推荐