Maven 3.0.3 archetype creation: from multiple module project -


I am using Maven 3.0.3 and I have a lot of module Maven project, which I have to create a mirror I want to use. Like Strawant:

  main project ---- pom.xml ---- modules_1 ---- pom.xml ---- source ---- main ---- java - --- com ---- mycompany ---- Domains ----DomainT.java ---- Repo ---- Resource ---- Webpage ---- Examination ---- Module_2 --- - Pom.xml ------------------ Java ---- Com ---- Mikipedia ---- Web ----WebT.java ---- Resources ---- WebAp Now, when I use the following CMD in Module_2, it is basically created successfully and correctly.  
  c: \ Main_Project \ module2 & gt; Mvn archetype: create-from-project   

However, when I run the same command from the main folder (i.e. c: \ Main_Project ), then the package structure is not Is created (to generate 'CMD') and still the original package structure exists in both modules. What do I mean in Java is the package name and other files are replaced with the correct variable but the package folder structure is not created. Eg

The original structure was:

  - --- series ---- main---- java ---- com ---- mikempany --- - Domain ---- Domanet.Java   

After I run CMD, mn: archetype: generating -DarchetypeCatalog = local

  Define the value for the property 'groupId': com.sample Define the value for the property 'artifactId': test_project Define the value for the 'package': com.sample ::   

still when the folder structure occurs inside Module_1 \ src, then for the asset 'version' Define the following: 1.0-SNAPSHOT: \ Main \ java folder is similar to above (i.e. Module_1 \ src \ main \ java \ com \ mycompany ) and Module_1 \ src \ Main \ java \ com \ sample

to make sure that I can do it for work

now fixed.

In parent pom.xml, the module was within decla ration profile.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -