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
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
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 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 '
the WebApps directory of Tomcat:Eight, start the Tomcat server, and then you can access the Web project in the browser normally:Ix. after changing the project name, MAVEN packaging considerations:Normal packaging, the generated file name is the project name, but if we change the project name, then the package file name is still the previous project name, not changed; for example, I changed the PLANSYSTEM1
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
Environment: Struts 2.3.16.3 + Convention Plugin 2.3.16.3 for Zero ConfigurationSymptom: When deployed as a folder on WebLogic (10.3.3), everything is fine, switch to the war package deployment, and the run-time prompt cannot find the actionWorkaround:1. Check if there is a meta-inf directory under \web-inf\classes\ in the generated war package, and if not, place
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
maven:http://maven.apache.org/Download complete unzip to D disk directory D:\apache-maven-3.5.0\binTo configure the MAVEN environment variable:M2_home D:\apache-maven-3.5.0\Maven_home D:\apache-maven-3.5.0Path;D: \java\apache-maven-3.5.0\binConfiguration cmd Administrator ri
The previous article said the approximate process and the effect we want to achieve. This article is mainly about the detailed configuration.In fact, just once, it feels very simple. Only two files need to be configured.Pom.xml and ${project.artifactid}-maven.pro These two files can be. Where the Pom.xml configuration plugin is used, the true optimization option is configured in the ${project.artifactid}-maven.pro file.Let's take a look at the complet
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
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/
A dependency reference between two Web projects. The Web project is referenced by the way the war package is used. For example, there are two projects, Puzzle-web and Puzzle-web-demo, and two are Web projects, and Puzzle-web-demo depends on Puzzle-web, which is configured as follows.(1) Puzzle-web Configuration of package in Project Pom.xmlA, compile the plug-in version to use 2.4, otherwise, you can appea
A dependency reference between two Web projects. The Web project is referenced by the way the war package is used. For example, there are two projects, Puzzle-web and Puzzle-web-demo, and two are Web projects, and Puzzle-web-demo depends on Puzzle-web, which is configured as follows.(1) Puzzle-web Configuration of package in Project Pom.xmlA, compile the plug-in version to use 2.4, otherwise, you can appe
Note: My eclipse is using the latest version of ADT, and last year Google stopped supporting ADT, and most companies are now switching to Android studio.1, first to the MAVEN official website download Maven,window download "Binary zip" can2, note: The official website has indicated, did not install the JDK environment must first install the JDK3, through help, about eclipse can see the version of EclipseAft
/etc/maven/settings.xml2. Create RepositoryRegistered Account: https://hub.docker.com/DockerHubcreated on the Create Repository , for example: docker-spring-boot-demo-maven-plugin , such as3. Modifying the POMThe project pom.xml is modified as follows: Note that imageName the path is consistent with the path to the re
MAVEN is a project management tool, and if we don't tell it what version of the JDK our code is going to compile with, it will be processed with the default JDK version of Maven-compiler-plugin, which makes it prone to version mismatches. Problems that could lead to a compilation that does not pass. For example, if a n
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.