码迷,mamicode.com
首页 > Web开发 > 详细

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

时间:2015-04-12 06:39:32      阅读:295      评论:0      收藏:0      [点我收藏+]

标签:

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 (‘/‘).

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

标签:

原文地址:http://www.cnblogs.com/gcg0036/p/4418864.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!