In the previous section, we talked about the installation and configuration of Maven, and in this section we'll learn to create a simple MAVEN project
1. Create a simple MAVEN project with the MAVEN command
Run the following command in CMD: C code mvn archetype:generate-dgroupid=com.mycompany.app-dartifactid=my-app-sim
Maven default cycle and plug-in, Maven default cycle plug-in
Run cmd
mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
This archetype (Template) is a plug-in, and generate is the target command (goal)
The plug-in integrates several goal collections.
Maven Dependencies and mavendependencies cannot be found in Maven projects of eclipse.I have come back for food. Stupid birds do not have to fly first, but they must stick to it.
Record a primary error today
For example, we create a maven project in eclipse to run our web project.
After the project is built, all javax-servlet packages report errors.
I don
First, the Environment preparationTwo serversJenkins Server yum install and configure MavenTomcat Server Tomcat version apache-tomcat-8.0.33.tar.gzJDK version jdk-8u77-linux-x64.tar.gzTomcat to deploy the manager project with Tomcat rights supportTomcat Tomcat-users.xml as configured650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/8B/02/wKiom1hBIXOTwpTqAAAMEXLlYZM251.png "title=" Tomcat Configuration "alt=" Wkiom1hbixotwptqaaamexllyzm251.png "/>The username and password here are consis
Delivery dependency is one of the most distinctive and convenient features of Maven, and can save a lot of configuration. such as a dependent b,b dependency C default A will also depend on C. But there are also pitfalls, such as version conflicts. Of course, MAVEN also considers the solution, you can use exclusions to exclude the corresponding repeat dependency.But we also have a serious problem, and that i
1: Configure MavenDownload from the official website and add the bin directory to the system variable path.In the cmd window, enter MVN, and the execution feedback is configured successfully.Configure the Conf/settings.xml file to specify the repository center to download to a local directory2: Experience maven in IntelliJCreate a new Java project and choose Maven, all the way next.Build a good root directo
http://blog.csdn.net/u013177446/article/details/53944424************************************************************The jar generated by the MAVEN default package is not able to run directly because of the meta-inf/manifest in the jar file. There is no Main-class line in MF, in order to generate the executable jar file, you need to use Maven's plugin, Maven-shade-plugin, configure the plugin as follows:Prop
http://blog.csdn.net/u013177446/article/details/54134394******************************************************The Maven build tool can be used to package the project to generate a generic jar package, a runnable jar package, or to package all dependencies together to generate a jar;One, ordinary jar packageThe ordinary jar package contains only the class files compiled by the project source code and the resource files, and does not contain any depende
The general process is:First, use the MVN command to create a simple set of Java packages below the specified path.Then, use Jidea to import the MAVEN project to load the created package into the IDE environment. ‘Next, modify the Pom.xml file in the IDE environment, under the associated tag, depending on the needs,Writes the value of the latest version of Netty.The Netty Series function package is then detected in the. java file by invoking the impor
One of my classmates needs to collaborate on the development of the MAVEN project from his computer to the eclipse in My computer, appearing in the Pom.xml file
"Missing Artifact Org.springframework:spring-jdbc:jar:3.2.4.release" error
Workaround: (answer found on StackOverflow)
In case you haven ' t already do it, try updating the project with regard to Maven.
In Eclipse Kepler, right-click on the
Drive Jar Package Capture method:
1) automatically obtained through Maven;
2 to the Maven warehouse to search for downloads: http://search.maven.org/
3) to the database to download the official website.
MySQL driver source download: http://repo1.maven.org/maven2/mysql/mysql-connector-Java/5.1.25/src/
Db
DRIVERCLASS/JDBCURL/JDBC Download
Maven
Let's start by saying what Maven is. Often listen to the MAVEN project looks like a tall, in fact maven is just a jar download tool. MAVEN configuration of the project, in the program Ape's development machine can be networked, you can download the program ape the jar package, save the program ape himself on the variou
Build Maven private server and maven
Recently, the company's personnel revolution has resulted in the departure of a group of employees. I feel a sudden increase in pressure. I am working on android and want to work on the background interface. It's a little hard. It's already 30 minutes, there are still various kinds of hard work, but as a technical control, such happiness cannot be understood by others. I
Errors frequently encountered in maven and maven
1. eclipse cocould not resolve archetype. This occurs when you select archetype when creating a project in eclipse:
An error occurred when creating a maven project:
Cocould not resolve archetype org. apache. maven. archetypes: maven
Maven Repository Information Analysis site recommendation, maven repository information site
Maven is a dependency of java. It is a packaging and management tool. maven is required for a slightly larger java project.
As java grows, maven repositories become larger and larg
MAVEN Configuration Environment PC Environment :windows (Linux configuration is similar) JDK: Requires more than 1.5 versions ide:myeclipse (using the same as other, for example IntelliJ, here I take myeclipse for example)Maven Download Download the latest version of Maven at www.apache.org. (I'm using maven3.3.1.) After the download is complete, unzip and place
Actually in the work, I used maven for a long time, but the recent development environment without MAVEN, so again. For later convenience, write down the general steps in this.1. Download the MAVEN installation packageDownload Apache-maven-3.2.3-bin.zip and unzip to the specified installation directory2. Configuring th
First spit, I stepped on a lot of pits, tears, ah, because not familiar with Maven, there are eclipse bugs, online article information asymmetry ... Well, back to the point, we need to be like this: A project is made up of multiple projects. Because the project is complex and large, it is better to divide it into multiple subprojects (or engineering). So the question is, how do the dependencies of the parent and child engineering work? What to do wit
There are 2 cases where you need to issue the MAVEN command manually including a jar to Maven's local repository.
The jar to be used does not exist in the central repository of Maven.
You have created a custom jar, and another Maven project needs to be used.
PS, or there are many jars that do not support Maven.Case studyFor example, Kaptcha, whi
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.