mvnのインストール後にweblogic.xmlをWEB-INFフォルダに配置する際に問題があります。私のweblogic.xmlファイルは、SRC /メイン/リソース/ weblogic.xmlの下にあり、私はインストール後にWEB-INFの下に置くことにしたい(包装方法によって「戦争」である)Maven 2 Weblogic.xmlの置き換え
私はこの試みた:。
を<resources>
<resource>
<directory>src/main/resources</directory>
<targetPath>../resources</targetPath>
<excludes><exclude>web.xml</exclude><exclude>weblogic.xml</exclude></excludes>
</resource>
<resource>
<directory>src/main/resources/config</directory>
<targetPath>..</targetPath>
<includes><include>weblogic.xml</include></includes>
</resource>
</resources>
は それは私が日食使用してクラスパスをしたい時にインストールしますがと協力して
:リソースパスの場所の種類をネストできません出力フォルダ「ResponseManager /ターゲット/ WEB-INF
説明:日食は、それはエラーになります/ resources '出力フォルダ内 ' ResponseManager/target/WEB-INF '任意のアイデア
<classpathentry kind="src" path="src/main/resources" output="target/WEB-INF/resources" excluding="web.xml|weblogic.xml|**/*.java"/> <classpathentry kind="src" path="src/main/resources/config" output="target/WEB-INF" including="weblogic.xml" excluding="**/*.java"/>
:ResponseManagerがあるため、クラスパスにこのconfので 経路問題
を構築し、パスを構築しますか?
私はそれらがクラスではなくリソースであるため、クラスフォルダの下に置かないようにしています。これは私がMavenに同意しない1つのことです:フォルダ構造。ありがとう、それは働いた – Neron