相关疑难解决方法(0)

使用jetty时运行资源过滤器:运行

我正在基于配置文件在jsps上使用资源过滤.我也在使用本地开发mvn jetty:run,但过滤阶段不会运行.

如何使用jetty插件执行过滤?


配置片段:

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.0.2</version>
<configuration>
    <webResources>
        <resource>
            <directory>src/main/webapp</directory>
            <includes>
                <include>error.jsp</include>
            </includes>
            <filtering>true</filtering>
            <targetPath>/</targetPath>
        </resource>
    </webResources>
</configuration>
</plugin>

<profile>
    <id>jci</id>
    <activation>
        <activeByDefault>true</activeByDefault>
        <property>
            <name>jci</name>
        </property>
    </activation>
    <properties>
        <error.title>Some value here</error.title>
    </properties>
</profile>  
Run Code Online (Sandbox Code Playgroud)

maven-2 jetty

9
推荐指数
1
解决办法
3455
查看次数

标签 统计

jetty ×1

maven-2 ×1