Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在<;中的quartz web.xml中设置项目版本值;ejblink>;标签_Xml_Quartz Scheduler_Web.xml - Fatal编程技术网

如何在<;中的quartz web.xml中设置项目版本值;ejblink>;标签

如何在<;中的quartz web.xml中设置项目版本值;ejblink>;标签,xml,quartz-scheduler,web.xml,Xml,Quartz Scheduler,Web.xml,在调度的quarcz作业中,在web.xml中指定了应该运行webservice的哪个webmethod <ejb-local-ref> <ejb-ref-name>ejb/LoanClaimTransferWS</ejb-ref-name> <ejb-ref-type>Session</ejb-ref-type> <local>com.khb.portal.backend.i

在调度的quarcz作业中,在web.xml中指定了应该运行webservice的哪个webmethod

<ejb-local-ref>
        <ejb-ref-name>ejb/LoanClaimTransferWS</ejb-ref-name>
        <ejb-ref-type>Session</ejb-ref-type>
        <local>com.khb.portal.backend.internal.loandatatransfer.services.LoanClaimTransferWSLocal</local>
        <ejb-link>internal-ejb3-ws-2.1.7-SNAPSHOT.jar#LoanClaimTransferWS</ejb-link>
</ejb-local-ref>

ejb/LoanClaimTransferWS
一场
com.khb.portal.backend.internal.loandataransfer.services.LoanClaimTransferWSLocal
internal-ejb3-ws-2.1.7-SNAPSHOT.jar#LoanClaimTransferWS
但是在ejb链接标记中,jar的一个版本会随着每个版本的发布而变化。如何在web.xml中设置版本号以跟踪版本更改?我试过:

<ejb-link>internal-ejb3-ws-${project.version}.jar#LoanClaimTransferWS</ejb-link>
internal-ejb3-ws-${project.version}.jar#LoanClaimTransferWS

但是它会生成那里给出的确切文本。

需要在pom.xml中设置资源筛选:

  <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <configuration>
                    <webResources>
                        <webResource>
                            <directory>/src/main/webapp/WEB-INF</directory>
                            <includes>
                                <include>web.xml</include>
                            </includes>
                            <filtering>true</filtering>
                            <targetPath>WEB-INF</targetPath>
                        </webResource>
                    </webResources>
                </configuration>
            </plugin>
        </plugins>
  </build>

org.apache.maven.plugins
maven战争插件
/src/main/webapp/WEB-INF
web.xml
符合事实的
WEB-INF