Java Project becomes MAVEN project

Source: Internet
Author: User

It's still good to get Maven into the project, even though those tags are a pain in the balls, but for the best, it's nice to have a bite

Right-click on the project, Configure this will see convert to Maven, then click on this to give the project an ID

You can use more than one M of things, in the code you may not see the class source code,

Once you've downloaded maven, you can look at the source code, which makes Maven pretty good.

Then is the management jar package aspect, can get something from this net: http://mvnrepository.com/

<dependency><groupId>javax.servlet</groupId><artifactId>jsp-api</artifactId><version>2.0</version></dependency>

This is the format, so the package is in Maven managed jar package, pay special attention to some are dependent on jdk15, under the need to label below

<dependency><groupId>net.sf.json-lib</groupId><artifactId>json-lib</artifactId><version>2.4</version><classifier>jdk15</classifier></dependency>

Java Project becomes MAVEN project

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.