Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<blockquote> <p>m2eclipse requires a "flat" eclipse project structure. </p> </blockquote> <p>Hmm, m2eclipse supports nested projects AFAIK (or at least importing a nested project structure). I don't use Eclipse wizards to create my projects though so maybe I'm not aware of something.</p> <blockquote> <p>Does that mean I should create a subversion repository for each module? </p> </blockquote> <p>No, no, absolutely not and I wouldn't do that (this will be hard to maintain). However, depending on your projects release cycles, you might have to think about the layout of your repository (single vs multiple trunk/tags/branches), especially if you plan to use the maven release plugin. If some pieces have independent release cycles, then I'd go for several trunk/tags/branches. If you always release them all together (as a single product), then a single trunk/tags/branches should do it. I wrote several answers on the topic that may be of interest:</p> <ul> <li><a href="https://stackoverflow.com/questions/1581877/migrating-to-maven-from-an-unusual-svn-directory-structure/1583343#1583343">Migrating to maven from an unusual svn directory structure?</a> </li> <li><a href="https://stackoverflow.com/questions/1992213/maven-parent-pom-vs-modules-pom/2002304#2002304">Maven parent pom vs modules pom</a> </li> <li><a href="https://stackoverflow.com/questions/4036693/how-to-handle-maven-versions-in-a-multi-module-project/4038606#4038606">How to handle maven versions in a multi module project?</a></li> </ul> <blockquote> <p>If I do one repository and try to check in from the parent project I'm having a difficult time setting the svn:ignore property on the nested project target (and other) directories.</p> </blockquote> <p>What is the particular problem?</p> <blockquote> <p>If I do a module per repository, I seem to be able to check them in ok. The question then is what is the best way to check out via subclipse? Is there a best order? Parent or child project(s) first? Do I need to checkout the parent project and modify the checkout path of the children project to be nested in the file directory that will allow me to then "clean install" from the parent project?</p> </blockquote> <p>Whatever choice you'll make (multiple repositories or not, multiple trunk/tags/branches or not), it should be possible to checkout the whole project structure in one time (using <code>svn:externals</code> if required). At least, you should try to make it possible (and it is, see the links posted above). </p> <p>But I repeat, I do not recommend using multiple <strong>repositories</strong> (unless you want independent revision numbers) and nothing forces you to do that.</p> <blockquote> <p>Or, should I abandon subclipse and m2eclipse and checkout and run my maven goals from the command line.</p> </blockquote> <p>I use Eclipse, m2eclipse, subclipse successfully, all well integrated (at least for the build and "check in" part). But I do the initial import and the initial checkout on the command line and then imported</p> <blockquote> <p>Or, should I just being using the SCM integration with Maven. </p> </blockquote> <p>I don't use it, I don't have the need for it.</p> <blockquote> <p>Or, maybe just not even try to get a multi-module project setup.</p> </blockquote> <p>There is no reason to forbid the use of a multi-modules project setup, <a href="https://stackoverflow.com/questions/2050241/2050617#2050617">multi-modules builds</a> are one of the key part of Maven.</p> <blockquote> <p>What do others do? Does anyone have some documentation (I missed) or some links (Google didn't recommend)?</p> </blockquote> <p>Have a look at the links I posted :)</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload