Maven:XML 文件在目标内被跳过。
<profile>
<id>tkweb</id>
<properties>
<file.name>ztweb-ws</file.name>
</properties>
<build>
<finalName>${file.name}</finalName>
<resources>
<resource>
<directory>${basedir}/resources/ztweb/</directory>
<filtering>false</filtering>
<includes>
<include>*.xml</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<includes>
<include>**/Test.java</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
嗨,
这是我的 pom.xml 文件下的配置文件 文件夹 resources/ztweb 有两个 xml 文件,即 cxf-endpoints 和 services
请参阅下面的屏幕截图
http://tinypic.com/view.php?pic=ohn77n&s=7
但是在构建目标时,为什么这两个 xml 文件被跳过 结果是这样的(请参考目标目录结构的屏幕截图) http://tinypic.com/view.php?pic=1znmrsy&s=7
感谢您的阅读。
<profile>
<id>tkweb</id>
<properties>
<file.name>ztweb-ws</file.name>
</properties>
<build>
<finalName>${file.name}</finalName>
<resources>
<resource>
<directory>${basedir}/resources/ztweb/</directory>
<filtering>false</filtering>
<includes>
<include>*.xml</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<includes>
<include>**/Test.java</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
Hi ,
This is my profile under the pom.xml file
The folder resources / ztweb has got two xml files namely cxf-endpoints and services
please refer to the screen shot below of it
http://tinypic.com/view.php?pic=ohn77n&s=7
But while building the target , why these two xml files are being skipped
The result is this (Please refer to the screen shot of target directory structure )
http://tinypic.com/view.php?pic=1znmrsy&s=7
Thank you for reading .
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您将
build.finalName
覆盖为“ztweb-ws”时,应用程序不会构建为target/ztweb-ws-1.0
,如您在截屏。请查看target/ztweb-ws
。As you're overriding
build.finalName
to "ztweb-ws", the app isn't being built totarget/ztweb-ws-1.0
, which you showed in the screenshot. Look intarget/ztweb-ws
instead.