Apache Tomcat Maven Plugin 参数大全(Tomcat 6)

tomcat6:deploy/deploy-only/redeploy/exploded/inplace
  1.Deploy a WAR to Tomcat.

  2.Deploy a WAR to Tomcat witjout forking the package lifecycle

  3.Redeploy a WAR in Tomcat. Deploy with forcing update flag to true

  4.Deploy an exploded WAR to Tomcat.

  5.Deploy a WAR in-place to Tomcat.

 

  Available parameters:

    charset (Default: ISO-8859-1)
      The URL encoding charset to use when communicating with Tomcat manager.

   contextFile

      The path of the Tomcat context XML file. This is not used for war
      deployment mode.

    ignorePackaging (Default: false)
      If set to true ignore if packaging of project is not 'war'.

    mode (Default: war)
      The deployment mode to use. This must be either war to deploy the war,
      context to deploy the context XML file, or both to deploy the war with the
      context XML file.

    password
      The password to use for deployment

    path (Default: /${project.artifactId})默认为项目名
      The webapp context path to use for the web application being run. This
      must always start with a forward-slash ('/').

    server
      The server id in settings.xml to use when authenticating with Tomcat
      manager, or null to use defaults of username admin and no password.

    tag
      The Tomcat webapp tag name to use.

    update (Default: false)
      Whether Tomcat should automatically undeploy webapps that already exist
      when deploying.

    url (Default: http://localhost:8080/manager)
      The full URL of the Tomcat manager instance to use.

    username
      The tomcat username to use for deployment

    warFile/warFile/warFile/warDirectory/warDirectory
      The path of the WAR file to deploy.

 

 

tomcat6:run/run-war/run-war-only
  1.Runs the current project as a dynamic web application using an embedded Tomcat
  server.

  2.Runs the current project as a packaged web application using an embedded
Tomcat server.

  3.Runs the current project as a packaged web application using an embedded
Tomcat server without forking the package cycle.

  Available parameters:

    addContextWarDependencies (Default: false)
      Will create a tomcat context for each dependencies of war type. To
      preserve backward compatibility it's false by default.

    additionalConfigFilesDir (Default: ${basedir}/src/main/tomcatconf)
      The directory contains additional configuration Files that copied in the
      Tomcat conf Directory.

    classesDir/无/无
      The classes directory for the web application being run.

    configurationDir
      The directory to create the Tomcat server configuration under.

    contextFile
      The path of the Tomcat context XML file.

    delegate (Default: true)/无/无
      Set the 'follow standard delegation model' flag used to configure our
      ClassLoader.

    fork (Default: false)
      Set this to true to allow Maven to continue to execute after invoking the
      run goal.

    httpsPort (Default: 0)
      The https port to run the Tomcat server on. By default it's 0 this means
      won't be started. The https connector will be started only for value > 0.

    ignorePackaging (Default: false)
      If set to true ignore if packaging of project is not 'war'.

    keystoreFile
      Override the default keystoreFile for the HTTPS connector (if enabled)

    keystorePass
      Override the default keystorePass for the HTTPS connector (if enabled)

    path (Default: /${project.artifactId})
      The webapp context path to use for the web application being run. This
      must always start with a forward-slash ('/').

    pluginArtifacts
      (no description available)

    port (Default: 8080)
      The port to run the Tomcat server on.

    serverXml
      server.xml to use Note if you use this you must configure in this file
      your webapp paths.

    systemProperties
      List of System properties to pass to the Tomcat Server.

    tomcatWebXml
      overriding the providing web.xml to run tomcat

    uriEncoding (Default: ISO-8859-1)
      The character encoding to use for decoding URIs.

    useSeparateTomcatClassLoader (Default: false)
      if true a new classLoader separated from maven core will be created to
      start tomcat.

    warSourceDirectory/warDirectory/warDirectory
      The web resources directory for the web application being run.

 

 

tomcat6:reload
  Reload a WAR in Tomcat.

  Available parameters:

    charset (Default: ISO-8859-1)
      The URL encoding charset to use when communicating with Tomcat manager.

    ignorePackaging (Default: false)
      If set to true ignore if packaging of project is not 'war'.

    password
      The password to use for deployment

    path (Default: /${project.artifactId})
      The webapp context path to use for the web application being run. This
      must always start with a forward-slash ('/').

    server
      The server id in settings.xml to use when authenticating with Tomcat
      manager, or null to use defaults of username admin and no password.

    url (Default: http://localhost:8080/manager)
      The full URL of the Tomcat manager instance to use.

    username
      The tomcat username to use for deployment

 

 

tomcat6:resources/   info/list/roles/    sessions/start/stop/   undeploy

  1.Lists JNDI resources in Tomcat.

  2.Lists information about the Tomcat version, OS, and JVM properties.

  3.Lists all the currently deployed web applications in Tomcat.

  4.Lists security roles in Tomcat.

  5.Lists session information for a WAR in Tomcat.

  Available parameters:

    charset (Default: ISO-8859-1)
      The URL encoding charset to use when communicating with Tomcat manager.

    password
      The password to use for deployment

    path (Default: /${project.artifactId})
      The webapp context path to use for the web application being run. This
      must always start with a forward-slash ('/').

    server
      The server id in settings.xml to use when authenticating with Tomcat
      manager, or null to use defaults of username admin and no password.

    url (Default: http://localhost:8080/manager)
      The full URL of the Tomcat manager instance to use.

    username
      The tomcat username to use for deployment.

    type/后面都无
      The class name of the resources to list, or null for all.

    无/无/无/无/后4个有 ignorePackaging (Default: false)
      If set to true ignore if packaging of project is not 'war'.

    最后1个有 failOnError (Default: true)
      Whether to fail the build if the web application cannot be undeployed.

 

 

tomcat6:shutdown
  Shuts down all possibly started embedded tomcat servers. This will be
  automatically down through a shutdown hook or you may call this Mojo to shut
  them down explictly.

  By default the shutdown goal is not bound to any phase. For integration tests
  you might want to bind it to post-integration-test.

  Available parameters:

    path (Default: /${project.artifactId})
      The webapp context path to use for the web application being run. This
      must always start with a forward-slash ('/').

转载于:https://www.cnblogs.com/gcg0036/p/4418864.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
引用\[1\]、\[2\]和\[3\]中提到了三个不同版本的tomcat-maven-plugin插件配置。根据你提供的引用内容,可以看出这三个配置分别是: 1. 引用\[1\]中的配置使用的是org.apache.tomcat.maven:tomcat7-maven-plugin:2.2版本的插件,没有指定具体的配置信息。 2. 引用\[2\]中的配置使用的是org.apache.tomcat.maven:tomcat7-maven-plugin:2.1版本的插件,指定了端口号(port)为80,路径(path)为/WeiXinApply,URI编码(uriEncoding)为UTF-8,最终名称(finalName)为WeiXinApply,服务器(server)为tomcat7。 3. 引用\[3\]中的配置使用的是org.codehaus.mojo:tomcat-maven-plugin:1.1版本的插件,指定了路径(path)为/wp,端口号(port)为8080,URI编码(uriEncoding)为UTF-8,服务器(server)为tomcat6。 根据你的问题"tomcat-maven-plugin",可以看出你想了解关于tomcat-maven-plugin插件的信息。根据提供的引用内容,可以得出结论,tomcat-maven-plugin是一个用于在Maven项目中集成Tomcat服务器的插件。它可以帮助开发人员在开发过程中方便地启动、停止和部署Tomcat服务器。根据不同的配置,可以实现不同的功能,如指定端口号、路径、URI编码等。具体使用哪个版本的插件以及如何配置取决于你的项目需求和Maven配置。 #### 引用[.reference_title] - *1* [Maven插件tomcat7-maver-plugin](https://blog.csdn.net/weixin_45856470/article/details/117000567)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* *3* [tomcat-maven-plugin 插件使用](https://blog.csdn.net/weixin_34205826/article/details/92281180)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值