The feeling of applying maven

Source: Internet
Author: User

The chaotic Hope Hero

Software development today is much more complex than software development in the past. This includes the number of people involved in development, the size of the code, the complexity of requirements, the complexity of the dependencies, the use of more technology, and the complex dependencies between multiple projects.

Today's developers have more technology than previous developers, and not today's developers are better than the former developers themselves, but with more information, more learning opportunities, more time on a larger scale, and a growing software industry. To say a digression, old programmers, if not with the times, rely on the savings, is unable to compete with a new generation of programmers, of course, the old programmers, have more experience, master the speed of the technology faster, this is another thing.

The technology that developers have is more complex, and the technology used by the project is naturally more complex, such as a Web project that may use many technologies, object-oriented, generics, or-mapping, Dependency Injection (spring-framework), Full-text Search (Lucene), database, cluster , workflows, Web service, and so on.

Because of the use of a variety of technologies, these technologies may be provided by JDK, or by third-party open-source organizations, or by different business companies.

Then there is a new problem, that is, the package relies on complexity. In the past, it was hard to imagine that your code relied on dozens of different open-source organizations and libraries provided by commercial companies. For example, we often use log4j, JUnit, Easymock, Ibatis, springframework, each component has a long history, there are different versions, and they have dependencies between versions.

The complexity of project dependencies, often, 10-30 projects in a larger department are common, there are different versions of dependencies between projects, and there are complex versioning dependencies between departments and departments.

Eclipse itself provides the dependencies of project, but simple dependencies clearly don't solve the problem. For example, Project B relies on project A,project A to rely on a third party jar pack Abc-1.0.jar, so you need to have two project Lib are stored abc-1.0.jar, which results in redundancy, and as project numbers increase, this redundancy creates a management problem, and if you need to upgrade Abc-1.0.jar to Abc-1.1.jar, you need to modify it in two project, if Project quantity is more than 10, and it is maintenance of different project team, this is a very troublesome thing. And if Project a modifies dependencies, why should project B also make the appropriate changes?

To resolve this issue, you need to describe its dependent library information in a package in project A, such as the Abc-1.0.jar since Meta-info Records. Eclipse's plug-in has a similar scenario, but this makes it possible to develop Project B's team, which needs to check out project A's code from the source code base. The project group at the end of the dependency chain is miserable.

Because of the number and complexity of project, the Dailybuild ant script has become a hassle, and using Project dependencies makes writing dailybuild ant script a pain in the way.

Of course, you can not use the way project depends on the way artifact Lib, but the way artifact Lib, is to modify multiple project at the same time, debugging with each other brings pain.

In the past, when we faced these problems, the only feeling was that it was too troublesome and almost out of control.

The emergence of MAVEN, to solve this problem to see the hope. The reason that Maven appears is that the current development management complexity has reached a certain program, the need for specialized development management tools, such tools need to cover all stages of development, including engineering establishment, configuration dependency management, compilation, testing, production analysis reports, deployment, production and other stages. At present, all stages of the tools exist, but is not integrated, the use of a lot of trouble. MAVEN integrates these tools to improve the unified environment and make it easier to use.

Now that Maven is very popular, all Java project on Apache has been build by Maven, and there are many other open source projects to follow, such as Mule, Hibernat, etc., and many commercial companies are using it, and Sun offers Maven2 Repository

Now, in 2007, if you haven't adopted MAVEN project, you might want to think about whether you're using code that's not properly managed, or are you behind the time?

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.