Hi All,

I am trying to create new project from scratch using maven.

Lets assume my desired  dir structure is

project
    -----main
           ----mod1
         

I am issuing following commands from command prompt :

c:\project\ >mvn archetype:create -DgroupId=com.company.project 
-DartifactId=main

Then I get the whole maven dir structure created for project

But
I want main to have packaging of type "pom" but by default, it defines
packaging type as "jar" . I manually over write it "pom" and delete
whole src dir because main would not have any src dir in itself. Can I
issue some command to ask maven to define packaging of type pom and not
create src dir at all in first place.

Now I go to main dir and issue following command

c:\project\main >mvn archetype:create -DgroupId=com.company.project 
-DartifactId=mod1

Now
the whole structure is created for mod1 but the pom file does not
define packaging type at all :-( . Though it adds parent detail in pom
file and also add module detail in pom file of main's pom file. How can
I ask maven to add packaging statement with "jar"


Any help would be really really appreciated.



Have a great week end.


Thanks,



Petr


      

Reply via email to