Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/5.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
Maven 与概要文件相关的web.xml_Maven_Tomcat_Ssl_Config - Fatal编程技术网

Maven 与概要文件相关的web.xml

Maven 与概要文件相关的web.xml,maven,tomcat,ssl,config,Maven,Tomcat,Ssl,Config,我在tomcat的生产服务器上使用强制ssl配置。我想在开发中禁用此功能,并想知道我的选项是什么。配置发生在我的web.xml文件中。我目前使用maven构建我的项目,所以我已经有了一些配置文件,我更喜欢在其中设置设置 在web.xml中的某个地方,您可能有以下设置: <transport-guarantee>CONFIDENTIAL</transport-guarantee> 如果您使用的是maven war插件,则可以通过以下方式从pom文件中启用资源筛选:

我在tomcat的生产服务器上使用强制ssl配置。我想在开发中禁用此功能,并想知道我的选项是什么。配置发生在我的web.xml文件中。我目前使用maven构建我的项目,所以我已经有了一些配置文件,我更喜欢在其中设置设置

在web.xml中的某个地方,您可能有以下设置:

<transport-guarantee>CONFIDENTIAL</transport-guarantee>
如果您使用的是maven war插件,则可以通过以下方式从pom文件中启用资源筛选:

      <configuration>
                <webResources>
                    <resource>
                        <filtering>true</filtering>
                        <directory>src/main/webapp</directory>
                        <includes>
                            <include>**/web.xml</include>
                        </includes>
                    </resource>
                </webResources>
                <warSourceDirectory>src/main/webapp</warSourceDirectory>
                <webXml>src/main/webapp/WEB-INF/web.xml</webXml>
            </configuration>

真的
src/main/webapp
**/web.xml
src/main/webapp
src/main/webapp/WEB-INF/WEB.xml
最后,如果必须使用现有配置文件,请根据激活的配置文件设置transport.guarange的值。一种方法是:

<profiles>
 <profile>
  <id>development</id>
  <properties>
    <transport.guarantee>NONE</transport.guarantee>
  </properties>
</profile>
<profile>
  <id>production</id>
  <properties>
    <transport.guarantee>CONFIDENTIAL</transport.guarantee>
  </properties>
</profile>

发展
没有一个
生产
保密的


您希望将生产配置文件设置为“活动”作为默认设置。使用~/.m2/settings.xml文件覆盖并激活开发配置文件。

在web.xml中的某个地方,您可能具有以下设置:

<transport-guarantee>CONFIDENTIAL</transport-guarantee>
如果您使用的是maven war插件,则可以通过以下方式从pom文件中启用资源筛选:

      <configuration>
                <webResources>
                    <resource>
                        <filtering>true</filtering>
                        <directory>src/main/webapp</directory>
                        <includes>
                            <include>**/web.xml</include>
                        </includes>
                    </resource>
                </webResources>
                <warSourceDirectory>src/main/webapp</warSourceDirectory>
                <webXml>src/main/webapp/WEB-INF/web.xml</webXml>
            </configuration>

真的
src/main/webapp
**/web.xml
src/main/webapp
src/main/webapp/WEB-INF/WEB.xml
最后,如果必须使用现有配置文件,请根据激活的配置文件设置transport.guarange的值。一种方法是:

<profiles>
 <profile>
  <id>development</id>
  <properties>
    <transport.guarantee>NONE</transport.guarantee>
  </properties>
</profile>
<profile>
  <id>production</id>
  <properties>
    <transport.guarantee>CONFIDENTIAL</transport.guarantee>
  </properties>
</profile>

发展
没有一个
生产
保密的

您希望将生产配置文件设置为“活动”作为默认设置。使用~/.m2/settings.xml文件覆盖并激活开发配置文件