Here's a summary of the many ways to package a jar with idea, and later package packages can refer to the following form:
The package form with idea comes in
Package with Maven plugin maven-shade-plugin
Package with Maven
Add the following code under the Pom.xml File build node:123 45678 9Ten One A - -The user can bind any plug-in target to the stage of any life cycle as needed, such as binding the jar-no-fork target of Maven-source-plugin to the package stage of the default life cycle, so that later execution mvn Package command when packaging a project, source code packaging is performed after the
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: Maven-findbugs-
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
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-
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> Artifactid>Tomcat7-
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/449956Maven-war-plugin Official website: http://m
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
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
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: 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
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-
Maven and Maven plugin installationBenefits of using maven :
I feel the most important is automatic download Jar Packages and the packages it relies on to ensure that multiple people develop Jar different versions of the issue.
Then the file structure is clear, Java files, resource files, and test files a
Preface:today I installed the MAVEN environment in my own environment, and installing the Eclipse plug-in, I did encounter some problems in the process of finding the plug-in, but found a problem.after the plug-in is installed, creating a MAVEN project with Eclipse has two questions, summarizing some of them and making it easier for other friends to solve the problem.one, the installation of the
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 'war 'in the current project a
Tomcat has officially provided a MAVEN plugin for deploying MAVEN-based Web applications, different versions of Tomcat use different plug-ins, different versions of the use of the plug-in is also a certain difference, the details can be consulted http://tomcat.apache.org/maven-plugin.html . The following is the configu
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
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.