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