1
jsp 파일에서 빌드 번호를 얻으 려하고 있습니다 만, pom에 몇 가지 항목을 추가 한 후에 어떤 이유로 서버가 제대로 배포하지 않습니다. 빌드 번호가 표시되지만 앱이 올바르게 배포되지 않습니다. 이것이 build.jsp 파일에 대한 필터링을 추가 할 적절한 위치인지 확실하지 않습니다. jsp 파일에 buildNumber 추가하기
은 여기, 그래서이 필드를<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.4</version>
<configuration>
<warName>${project.name}${project.version}</warName>
<webResources>
<webResource>
<directory>WebContent</directory>
<excludes>
<!-- exclude>images/**</exclude> <exclude>scripts/**</exclude> <exclude>styles/**</exclude -->
<exclude>assembly.xml</exclude>
</excludes>
<directory>${project.basedir}/WebContent/jsps</directory>
<targetPath>jsps</targetPath>
<filtering>true</filtering>
<includes>
<include>**/build.jsp</include>
</includes>
</webResource>
</webResources>
</configuration>
</plugin>