Java Web Project Auto-manage subproject, and sub-project packaging

Source: Internet
Author: User

Scenario: A Web project that contains a Java sub-project. The jar packages and code in the subproject are required for deployment. So when you pack, you need to put the project into a jar package and place it under a Web project for invocation.

Method:

1. Associate sub-projects first

Exlipse (Myexlipse), right-click Web Project, Build Path-->projects--add, add in the project.

At this point, the Web project can use the code in the subproject, and there is one more in the. classpath file:

<classpathentry combineaccessrules= "false" kind= "src" path= "/Sub-project name"/>


2, right-click the Web project, Properties-->deployment Assembly-->add-->project, the project add in, you can see the deploy path has a child project jar package. Such deployment and packaging will automatically hit the project.

The second step depending on the IDE or version may be different, the difference is that there are some deployment assembly name is different, some do not need a second step

This article is from the "Perfectionism" blog, please be sure to keep this source http://liangxueming.blog.51cto.com/3911546/1564537

Java Web Project Auto-manage subproject, and sub-project packaging

Related Article

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.