Maven Parent-child relationship
The parent project must be packaged in a pom such as
Child project inherits most of the properties of the parent project using
Parent Project
Sub-project
maven Specifies the packing method type (Jar,war) and the package name,
Specify the name of the packaged file under some directories, exclude some directories, introduce s
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
Original: http://www.cnblogs.com/guogangj/p/5457959.html#3574439We 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 w
The Java compiler uses maven to create a war package. How can this problem be solved?
When packaging with maven, the following two errors occur:
Error 1: the package javax. servlet does not exist. The package javax. servlet. http does not exist.
Error 2: No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? Failed to exe
pluginSome basic settings for the MAVEN plugin packagingPom.xml in Jar/war/ejb/ejb3/rar; Packaging will be a binding with lifecycle, MVN will call different plug-ins according to the type of packaging to complete the packaging work, such as the jar package will call the Maven-jar-
I found that the plug-in from the eclipse market is still quite useful and installedAfter the m2eclipse-wtp, added support for eclipse web projects, good to use.
The installation sequence should be noted:
InstallM2e, and then installM2eclipse-wtp.
First install the second m2e, and then install the m2eclipse-wtp
Otherwise, errors such as the following are continuously reported:
No plugin found for prefix '
Build> Plugins> Packaging Plugins - plugin> groupId>Org.apache.maven.pluginsgroupId> Artifactid>Maven-war-pluginArtifactid> version>2.2version> Configuration> The point is this configuration, the name of the war package. - Warnam
The maven dependency of the Maven-jar-plugin plugin is:One: Package runnable jarConfigured to:Assuming that the project has dependencies on other jars, it is necessary for the Maven-dependency-plugin
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
The maven dependency of the Maven-jar-plugin plugin is:One: Package the executable jarConfigured to:If the project has dependencies on other jars, the Maven-dependency-plugin plug-in will need to be packaged with other dependencie
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 make the project into a
First Git:http://git.oschina.net/alexgaoyh/mutimodule-parent/tree/master/mutimodule-ueditordemo. We maven project each war package is a line, using Ueditor, and each line to refer to ueditor related js, CSS, and some other image ... Part. In order to take out these repetitive things, I made a war bag and put these things in. The class file is still in the jar pac
1. In the Pom.xml file, introduce the Wro4j-maven-plugin plugin
ro.isdc.wro4j
wro4j-maven-plugin
${wro4j.version}
optimize-web-resources
compile
Run
false
${project.build.directory}/${project.build.finalname}/s
The pom.xml dependency of the Tomcat7-maven-plugin plugin is:One: Run the WebApp project directlyExecute MVN Tomcat7:runAccess Http://127.0.0.1:9090/taobaoII: Deploy the project to TomcatFirst, configure the Conf/tomcat-users.xml file inside theTwo methods of deployment(1)Configure the plugin directly inside the Pom.xm
Maven project-fixed Plugin execution not covered by lifecycle configuration: org. codehaus. mojo: build-helper-maven-plugin: 1.8: add-resource (execution: add-resource, phase: generate-resources) pom. xml error,
1: pom. xml Code
2: the error message is as follows:
Plugin
1. Environment: Eclipse, apache-maven-3.3.3, apache-tomcat-7.0.63
2. Configuration:
(1) Configure Tomcat Manager access: Under F:\software\apache-tomcat-7.0.63\conf\tomcat-users.xml make the following modifications
(2) apache-maven-3.3.3 configuration: To allow MAVEN access to Tomcat, you need to add the user created as above to the settings.xml
(3) Configur
1: Configure the Tomcat Manager User: Re-unzipped a new TOMCAT7, open Tomcat_user.xml in the Conf directory under the Tomcat root directory, add Manager roles and users under Adding Tomcat Server to the 2:maven configuration Open maven's settings.xml file, if it is a locally installed version of MAVEN, the file is installed in the root directory conf/settings.xml, if you are using the eclipse built-in
Scenarios in which a third-party commercialization SDK may be required in some projects may not be included in the MAVEN central repository, so the local Lib package needs to be referenced during the compilation package process.1. Referencing local jar package compilationDependency> groupId>Org. XX (Custom)groupId> Artifactid>XX (Custom)Artifactid> version>1.0version> Scope>SystemScope> Systempath>${project.basedir}/libs/
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.