1

I'm just new to Maven. I'm following the "Maven in 5 Minutes" on this website.

When I run mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false

I find that

enter image description here

is generated. However, where did I got this source code? From website or from downloaded apache-maven-3.2.5-bin.zip. Which command indicates the location to get source?

newuser
  • 8,338
  • 2
  • 25
  • 33
Eugene
  • 10,627
  • 5
  • 49
  • 67

1 Answers1

1

As specified by -DarchetypeArtifactId=maven-archetype-quickstart, the data comes from the Maven Quickstart Archetype.

mvn retrieved it from the Central Repository (org.apache.maven.archetypes:maven-archetype-quickstart:1.1) when you ran that command. The source code is at http://svn.apache.org/viewvc/maven/archetypes/trunk/maven-archetype-quickstart/ .

Joe
  • 29,416
  • 12
  • 68
  • 88
  • Great. Another question. The "mvn package" will compile the entire source code? – Eugene Dec 24 '14 at 01:33
  • Yes. See http://stackoverflow.com/questions/10533828/what-does-mvn-install-in-maven-exactly-do . – Joe Dec 24 '14 at 09:01