xml 使用Maven构建在JAR中包含JAVA源

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了xml 使用Maven构建在JAR中包含JAVA源相关的知识,希望对你有一定的参考价值。

<project>
    <!-- put the usual packaging, dependencies etc. here.-->
    <build>
        <resources>
            <resource>
                <!-- include JAVA scources in JAR -->
                <!-- this is for development only,
                     the production JAR should not have the sources
                     see http://stackoverflow.com/questions/25779900/how-to-include-source-file-java-file-parallel-to-class-file-in-the-generated -->
                <directory>src/main/java</directory>
            </resource>
        </resources>
    </build>
</project>

以上是关于xml 使用Maven构建在JAR中包含JAVA源的主要内容,如果未能解决你的问题,请参考以下文章