I used Hudson to deploy my Web project to tomcat on the test server in my usual work. The Hudson itself is integrated with SVN, Git, MAVEN, and supports the addition of various plugins. But if you use Hudson, I need to configure two tasks: one to package the project into a war, and the other to deploy the packaged war package to Tomcat on the target server. Altho
; Configuration>plugin>Briefly describe:Path is the way to access the appPort is the port number of TomcatUriencoding URL by UTF-8 encoding, this solves the Chinese parameter garbled.The Server specifies the tomcat name.The configuration is so simple, basically fixed, below to see how to use.Plugin RunIf eclipse installs the Maven plugin, select th
From the official documentation http://wiki.eclipse.org/M2E_plugin_execution_not_covered, you can understand that the best solution is to hand over to the project aggregator dedicated to the plug-in for processing,
For example, the aspectj-Maven-plugin commonly used in the project uses a dedicated aggregator. You can use eclipse for online search and installation
dialog box will pop up. Add the following command to the Goals box: Tomcat:run
This will allow the Tomcat plug-in to run.
Here are a few common goal
Command
Describe
Tomcat:deploy
Deploy a Web War package
Tomcat:reload
Reload the Web War package
Tomcat:start
Start Tomcat
Tomcat:stop
Stop Tomcat
Tomcat:undeploy
The Spring boot Maven plugin provides the following steps for using the Spring boot application:RePack: creates a jar or war file that can be executed automatically. It can replace a regular artifact, or it can be attached to the build life cycle using a separate classifier.run: Run your spring-guided application with several options to pass parameters.start and
$ {Project. basedir} srcmainesources
$ {Project. basedir} srcin
In
True
Lib
Runtime
There are many configuration items for assembly. xml, refer to http://maven.apache.org/plugins/
package stage; By default, the process of releasing Dockerfile is included in the MVN deploy phase; can also be directly implemented: MVN Dockerfile:buildMVN Dockerfile:tagMVN Dockerfile:push
You can also support the Dockerfile file that references another Docker project in one Docker project.
3. Dockerfile maven Pre-use
Java 7+ Maven
4. Basic usage of Dockerfile maven
In some cases (which is rarely seen), using MAVEN to build a project requires a sequence number that is not duplicated, for example, when packaged, the package name ends with the current build time, or the jar package that is generated each time contains a unique serial number, and so on;
This time, the use of the BuildNumber plug-in, the official web site:
Http://mojo.codehaus.org/buildnumber-
is not important. For the choice of both, in general, if your project start is very simple, do not need to set the JVM parameters, System Properties, command line parameters, then use Exec:java, you only need to specify the MainClass, everything is OK. For example This section of the configuration:[HTML] view Plaincopy
plugin >
groupId >org.codehaus.mojogroupId>
Artifactid >exec-
does not add any configuration. When Maven uses the core plugin, their version number is determined.Maven-clean-pluginMaven-compiler-pluginMaven-surefire-pluginAssuming that we do not configure the version number of the plugin at the time of configuration, MAVEN iterates through the local repository and the entire rem
been deployed.
The second is a third-party plug-in. You can use the redeploy command to redeploy the plug-in.At the same time, add the repository configuration under the
Iv. set deployment commandsIn eclipse, you can right-click the project to be deployed, Run as-> Run deployments-> maven build-> right-click new to configure a new maven command.
Specific configuration command method:
1. Select your
Tags: des style http color io os using AR strongIntroductionBrief introduction The MAVEN plugin is designed for people who use Apache maven as a build tool. The Maven plugin was designed to be used by people in the first MAVEN bui
package on which the runtime depends.To use the maven Assembly plug-in, you must configure it in the POM file. Add this plug-in.
The execution node is configured to execute some configurations of the maven Assembly plug-in. The descriptor node configuration points to the path of Assembly. xml.Configured in assembly. XML, the packaged directory and corresponding settings
There are many configuration items
Document directory
Maven 2
In Java 1.4
Maven 1 (by Andrew Glover)
First, I will skip where the idea plug-in is. I will try it later.Directory
Maven2 plugin
Prototype
Maven 1 plug-in
Maven 2
Maven2 itself supports testng without the need to download any add
null for all. None/None/None/ none/After 4 ignorepackaging (Default:false)If set to true ignore if packaging of project was not ' war '.last 1 of FailOnError (default:true)Whether to fail the build if the Web application cannot is undeployed. Tomcat6:shutdownShuts down all possibly started embedded tomcat servers. This would beAutomatically down through a shutdown hook or the call this Mojo to shutthem down explictly.By default the shutdown goal are
project into a war file, deploy it to a Web container, and start a container for validation. To help developers save time, Jetty-maven-plugin was born with a fully compatible MAVEN project directory structure that periodically checks the source files and automatically updates to the built-in jetty Web container once c
As you can see from the official documentation http://wiki.eclipse.org/M2E_plugin_execution_not_covered, the best solution is to work with Project Configurator specifically for the plugin,
For example, the Aspectj-maven-plugin used in the project is dedicated to Configurator, and users can use eclipse to find and insta
the runtime dependent jar package.The MAVEN assembly plug-in needs to be configured in the Pom file to add this plugin
Where the execution node, we have configured some configurations to perform the MAVEN assembly plug-in, the descriptor node configuration points to the Assembly.xml path. The is configured in Assembly.xml, the directories we pack
Tags: maven hibernate3 hbm2ddl JDK 1.7 configurationtaskProblem Description:Enter the Simple-webapp directory to runMVN HIBERNATE3:HBM2DDLReport the following error[ERROR]Failed to execute goal org.codehaus.mojo:hibernate3-maven-plugin:2.1:hbm2ddl (DEFAULT-CLI) on project Simple-webapp:Could not get configurationtask. → [help 1]My environment is as follows:Jdk1.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.