Idea,eclipse creating multi-module projects

Source: Internet
Author: User

Create a new MAVEN project

Iead, new is not to choose archetype, after the new, POM

<packaging>pom</packaging> node is the default, if it is not to change to this

Then select the project, create a new module, and then just like building a normal project.

Eclipse, a new MAVEN project, archetype choose QuickStart that, it should be not selected, but it seems that you cannot choose

then modify the <packaging>pom</packaging> and then select Project Click Add now select Maven Model

And then you want to build a normal project.

<Projectxmlns= "http://maven.apache.org/POM/4.0.0"Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"xsi:schemalocation= "http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">    <Parent>        <Artifactid>Study3</Artifactid>        <groupId>Study.bigdata</groupId>        <version>1.0-snapshot</version>    </Parent>    <modelversion>4.0.0</modelversion>    <Artifactid>Mr</Artifactid>    <Packaging>Jar</Packaging>    <name>Mr</name>    <URL>http://maven.apache.org</URL>    <Properties>        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>    </Properties>    <Dependencies>        <Dependency>            <groupId>Junit</groupId>            <Artifactid>Junit</Artifactid>            <Scope>Test</Scope>        </Dependency>        <Dependency>            <groupId>Org.apache.hadoop</groupId>            <Artifactid>Hadoop-common</Artifactid>        </Dependency>        <Dependency>            <groupId>Org.apache.hadoop</groupId>            <Artifactid>Hadoop-hdfs</Artifactid>        </Dependency>        <Dependency>            <groupId>Org.apache.hadoop</groupId>            <Artifactid>Hadoop-mapreduce-client-core</Artifactid>        </Dependency>        <Dependency>            <groupId>Org.apache.hadoop</groupId>            <Artifactid>Hadoop-mapreduce-client-common</Artifactid>        </Dependency>    </Dependencies></Project>

This is the pom of the Ieda sub-project, some of which are not the same as those generated by eclipse and need to be changed into such

Idea,eclipse creating multi-module projects

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.