When Maven was packaged into a war, error: Failed to execute goal Org.apache.maven.plugins:maven-war-plugin:2.1.1:war (Default-war) on project Web_nanchang:error assembling War:webxml attribute is requiredReason: Could not find we
Apache Maven WAR Plugin
The WAR Plugin is responsible to collecting all artifact dependencies, classes and the Web application and P Ackaging them into a Web application archive.
The word "pack" sounds more earthy, a more formal version of this should be "building a project
In the project release, you may encounter this situation, I hope that the project source code to maintain the same premise, you want to be able to target different operating environment to obtain the corresponding running package. (e.g. War pack)Basic Configuration : (including the configuration of the jar that does not want to enter the war package ) Reference: http://nileader.blog.51cto.com/1381108/4499
Reproduced in: http://nileader.blog.51cto.com/1381108/449956
In the project release, you may encounter this situation, I hope that the project source code to maintain the same premise, you want to be able to target different operating environment to obtain the corresponding running package. (e.g. War pack)
It is possible to use a configuration file to solve this problem. You can put some parameters in the project and the running environment in the co
1, first download maven it as: http://maven.apache.org/download.html download Apache-maven-3.0.3-bin.zipenvironment variable is configured as variable name m2 value of%m2_home%\bin variable named M2_home value is C:\Program files\apache-maven-3.0.3 add%m2% in Variable name pathThen launch eclipse, select Install new software in Help and enter http://m2eclipse.son
Requirements:
When Maven compiles a project, the amount of statistical code, that is, the number of files in the project, the number of lines of code, including Java files and configuration files Two, where the configuration file (SQL, XML, properties) code lines/4 processing.
To Create a project:
First make sure that the M2eclipse plugin is installed: http://eclipse.org/m2e/
Eclipse-new-
Requirements:
When Maven compiles the project, the amount of code, that is, the number of files in the project, the number of lines of code, including the Java files and configuration files Two, where the configuration file (SQL, XML, properties) lines/4 processing.
To Create a project:
First make sure that the M2eclipse plugin is installed: http://eclipse.org/m2e/
Eclipse-new-
In this tutorial, we will learn how to use the Maven Tomcat plugin to package and deploy a war file to Tomcat (Tomcat 6 and 7.To use the tool:
Maven 3
Tomcat 6.0.37
Tomcat 7.0.53
Tomcat 7Publish URL =Http://localhost:8080/manager/textCommand = MVN Tomcat7:deployTomcat 6Publish URL = http://localho
Failed to execute goal on Project: cocould not resolve dependencies for project cs2c. nkscloudweb: nkscloudweb3: War: 3.0: The following artifacts cocould not be resolved:Maven-plugins: Maven-cobertura-plugin: Plugin: 1.3, Maven-plugins:
The Spring boot maven plugin (Spring boot maven plugin) provides spring boot support for applications in Maven, which provides the possibility for the spring boot application to perform MAVEN operations.Spring Boot
Reprint please indicate the source: http://blog.csdn.net/qq_26525215This article originates from "University trip------familiar with the blog of Memory"
First, the project must be a MAVEN-configured project.
Added a publishing plug-in to implement it.Add the following code to the Pom.xml of the project:
Added a packaged plug-in: Spring-boot-maven-plugin, and ad
The Perfect solution:Http://stackoverflow.com/questions/18442753/a-required-class-was-missing-while-executing-org-apache-maven-pluginsmaven-warThis happened to me too after adding the version tag, that is missing, to the Maven-war-plugin (notsure what version is using by default, I changed to the latest, and 2.6 in myc
to 2.12.4.
The maven-compiler-plugin exception, which is also caused by the plug-in version, adjusts version to 2.3.2.
Maven-war-plugin exception, change version to 2.1.1.
Maven-jar-
of which is called a target of a plugin. When executing the MVN install command, the plug-in and execution plug-in targets are called as follows:
What are the targets for each plug-in, and the official documentation has a more detailed description: Maven Plugins
3. Binding a plug-in to the life cycle
The life cycle of MAVEN is abstract and actually requires a
IntelliJ idea package into a war (including Maven project) Click the Open linkThe first thing to do in the MAVEN project is the POM. Configure the desired configuration in XML: 1 2 3 4 5 6 1 // mvnrepository.com/artifact/org.apache.maven.plugins/maven-war-
Common commandsTomcat7:deployDescription: Deploy WAR to TomcatTomcat7:helpDescription: View plug-in Help informationTomcat7:runDescription: Sub-branch current projectConfigurationProject> ... Build> To define the plugin version in your parent POM - pluginmanagement> Plugins> plugin> groupId>Org.apache.tomcat.mavengroupId> Art
We used to publish a Java Web program as a common practice is to make it into a war package, and then use the SSH tool to upload it to the server, and put it in the corresponding directory, let Tomcat automatically unpack, complete the deployment.Obviously, it's not easy to do this, and we're probably going to get it wrong when we pull the file up with SSH. (Of course, the manufacturers will not have such a problem, because they have the OPS team dedi
output folder to include in the jar. site builds a web for the current project Surefire running JUnit unit tests in an isolated class loader verifier Useful for integration testing-verifying the existence of specific environments The Type/tool responsible for packaging ear generates an ear for the current project jar to build a jar from the current project rar constructs a RAR from the current project War builds a
Tags: Maven Tomcat web
Maven automatically deploys war to Tomcat
Software Versions: tomcat6 and maven3
1. Configure the following information in the pom of the Maven project:
Tomcat-Maven-Plugin
Tomcat-Deploy
We sometimes refer to local third-party packages in the development of MAVEN projects, for example: Dependency> groupId>Org.artofsolving.jodconvertergroupId> Artifactid>Jodconverter-coreArtifactid> version>3.0-beta-4version> Scope>SystemScope> Systempath>${project.basedir}\lib\jodconverter-core-3.0-beta-4.jarSystempath> Dependency>When we
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.