V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
twm
V2EX  ›  Java

maven打包问题,如何打包配置文件?

  •  
  •   twm · 2012-08-30 18:14:43 +08:00 · 4398 次点击
    这是一个创建于 4250 天前的主题,其中的信息可能已经有所发展或是发生改变。
    src/main/java
    --xx.java
    src/main/resources
    --log4j.properties

    pom.xml
    <resources>
    <resource>
    <directory>src/main/resources</directory>
    <includes>
    <include>**/*.properties</include>
    </includes>
    </resource>
    </resources>

    已经配置了包含.properties文件,并且打的包里面也有了,但执行java -jar xx.jar时貌似没用到这个配置文件。
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3102 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 10:58 · PVG 18:58 · LAX 03:58 · JFK 06:58
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.