我最近发现我在文件中做的一些更改没有反映在目标版本中 - 只有当我不对java代码进行任何更改时才会发生这种更改,因此编译阶段会被省略。是否有更好的方法来强制编译而不是像重命名变量那样无意义的代码更改,还是有办法更新* .xml内容?
编辑:这是我的pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>hiring</artifactId>
<version>1.0</version>
<packaging>war</packaging>
<dependencies>
<dependency>
<groupId>org.camunda.bpm</groupId>
<artifactId>camunda-engine</artifactId>
<version>7.0.0-Final</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.3</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>camunda-bpm-nexus</id>
<name>camunda-bpm-nexus</name>
<url>https://app.camunda.com/nexus/content/groups/public</url>
</repository>
</repositories>
</project>
所有xml文件位于 src / main / resources
我正在使用Eclipse Keppler Service Release 1和Maven 3.2.1,Java 1.7.0_17
答案 0 :(得分:0)
根据我的经验,如果你已完成所有这些,它应该按预期发布你的目标战争的变化。但是,如果将XML文件用作启动配置的一部分,则可能需要重新启动容器。