Saturday, 28 September 2013

Queries on Maven

Queries on Maven

1) I created a java project using below command. mvn archetype:create
-DgroupId=your.simple.java.gid -DartifactId=maventest After project
creation I checked pom.xml file and only depedecy I found is Junit.So why
doe it download other libraries like asm, antlr, oro, xmlapis,Jdom etc.
2) After this I created a web project by command mvn archetype:generate
-DgroupId=com.mycompany.app -DartifactId=my-webapp
-DarchetypeArtifactId=maven-archetype-webapp. In pom.xml Junit dependecy
is available but in project there is no test folder. Why does not this
creates test folder?
3)If I go to .m2/repository folder there are multiple libary folder
available. For example if I go inside asm directory
.m2/repository/asm/asm/3.2 I found below files.
a)asm-3.2.jar
b)asm-3.2.jar.sha1
c)asm-3.2.pom
d)asm-3.2.pom.sha1
e)_maven.repositories
I am not sure about .pom .sha1 and .repositories files. What are they for?

No comments:

Post a Comment