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
. More importantly, Maven joins the concept of scope in dependency relationships, further refining the partitioning of dependencies.What is 2.2 maven?MAVEN positions itself as a project management tool. It is responsible for managing almost everything in the project development process:VersionMAVEN has its own version definition and rulesBuildMAVEN supports many
Some recent projects need to be managed by MAVEN, one of which is to add the previous Eclipse Java Project Project and Web project to MAVEN management, and another scenario is to pull the MAVEN project on SVN locally, Some of the tricky issues encountered in using eclipse, the problem process, and the solution are as follows:1. When you start eclipse after instal
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 Project, select archety
maven builds Javaweb projectCreate a new MAVEN projectDefaultDefaultTo a Web project, right-click Project PropertiesAfter the turn over the folder WebContent, the webcontent under the Web-inf, Meta-inf folder copy to the Src/main/webapp directory (no directory new folder), and delete the WebContent directoryRight-click Project PropertiesRemove/webcontent, add new paths and dependenciesAdd dependencyYou can
I. Pre-conditionsThe system environment is:[Email protected] application]# cat/etc/redhat-releaseCentOS Release 6.7 (Final)[Email protected] application]# uname-r2.6.32-573.el6.x86_64The installation package that needs to be prepared is:Subversion-1.6.1.tar.gzSubversion-deps-1.6.1.tar.gzApache-maven-3.3.3-bin.tar.gzSecond, SVN part[Email protected] application]# pwd/application#上传subversion -1.6.1.tar.gz and subversion-deps-1.6.1.tar.gz to this direct
We all know that Maven is essentially a plug-in framework, and its core does not execute any specific build tasks. All these tasks are handed over to the plug-in for completion, for example, the source code is compiled by Maven-compiler-plugin. Further, each task corresponds to a plug-in target (GOAL), and each plug-in has one or more targets. For example, the compile target of
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 and in the plugin groups [] available from the
Create BitBucket's private maven repository and upload aar to BitBucket's maven repositoryReprint please mark the original address: http://blog.csdn.net/lsyz0021/article/details/52065404When we use the development of Android studio, we can use the compile "" command very conveniently to use someone else's third-party AAR libraryFor example, when we quote okhttp, we can do it in Gradle:dependencies { comp
system, create an issue (select Project: Community Support-Open Source Project Repository Hosting; Issue Type: New Project) and notify the Sonatype administrator, you want to host a project on Sonatype. Note that after the Issue is created, only the Administrator has the permission to change it. Therefore, be careful not to write the error message.
After the creation, you need to wait for the Sonatype administrator to review. Generally, the Resolved will be indicated on the Issue once the revie
Install maven on Windows:
1. First check and install JDK
Run the command echo % java_home % and Java-version through the command line to view the current Java installation folder and Java version number. MAVEN requires that the JDK version number be greater than 1.4.
2. Download MavenGo to the maven download page: Maven
cannot determine which version of Common-logging is under Lib in JBoss, and the only way to do this is to open the MANIFEST.MF in the Meta-inf directory. 3.maven is based on the compilation of a central repository, that is, the resources required for compiling in a central repository, such as JAR,TLD,POM, etc. When compiling, MAVEN will automatically find the appropriate package in the repository, and
manage projectPoints:
Create a new STRUTS2 Web project that you can run
Modular, one parent MAVEN project + two sub maven modules
Build Project Site
Generate Test Reports
Generate Javadoc
First, create a new MAVEN parent project, skip the prototype selection,Select Pakaging as PomThen rig
-indexer-2.0.0-javadoc.jar and Nexus-indexer-2.0.0-sources.jar, through plugins that include Java documentation and source code. At this time, Javadoc and sources are the classifier of these two subordinate components. Such A subordinate member has its own unique coordinate. Note: The classifier of the project cannot be defined directly, because the subordinate artifacts are not generated directly by default, but are generated by the additional plug-
developers to use tools. It can free developers from using a large number of make commands. For those who are not familiar with the make command, they have plenty of reasonsIt indicates that using commands is not the best tool to build a Java project, because it is not platform independent and is not easy to use. Ant solves the above problems. It uses a platform-independent tool.It can parse the xml configuration file, that is, build. xml. Ant has many advantages, but it also has some disadvant
pre-built plugins for you to use, but sometimes you just want to find the plug-in you need, and it's easier to build a custom Maven plugin:
Create a new project with POM packaging, set to " maven-plugin ".
Includes a maven-plugin-plugin call that can define your advertisement plug-in target.
Create a Maven
Maven learning-get started with maven
During Java Development, I came into contact with the Maven build tool. So I spent some time learning about this build tool and the Maven knowledge I learned during the learning process. I will share it with you here.What is Maven?
First
1. What is Maven
Apache Maven is a project management and integration tool. Based on the concept of engineering object Model (POM), through a central information management module, Maven is able to manage project builds, reports, and documentation.
The MAVEN engineering structure and content is defined in an XML file-
First, the basic concept of Maven Maven (translated as "expert", "insider") is a cross-platform project management tool. It mainly serves the project building based on the Java platform, and relies on management and project information management .1.1. Project ConstructionThe project build process consists of "cleanup project" → "Compile project" → "Test Project" → "Generate test Report" → "Package Project
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.