title: Project templates Eclipse / Java
body: <p>I am researching possibilities to create "project templates" for the kind of projects my team is working on (Embedded Java). We want to make it trivial for a new developer to not mess up creating a new project. All the tools we use in our team should be pr</p>
  
  <p>The basic idea is that there should be <b>one command</b> to set up a project and IDE to provide for the following:</p>
  
  <ul>
  <li> Create a new Java project including Eclipse project file.
  <li> Create a Build script (needs to work outside of the IDE).
  <li> Include deploy options in the build script.
  <li> Set up a git project.
  <li> Setup PMD to run with a configured set of rules integrated in the IDE.
  <li> Setup Checkstyle to run with a configured set of rules integrated in the IDE.
  <li> Configure code templates (Eclipse) to match our teams coding guidelines (Javadoc, ...)
  <li> Configure the Eclipse code Formatter.
  <li> The configuration of the command should be upgradeable easily.
  </ul>
  
  <p>So far I see two ways to do this:</p>
  
  <ul>
  <li> <b>Maven 2 Archetype</b>: I basically do not like maven because I have been fighting with it so often. I am not sure that the overhead of trying to make the tool do what I want it to justifies the effort. On the other hand it seems like this is exactly what archetypes are supposed to do. Do you have any experience in how far you can customize the eclipse:eclipse part? I guess that the eclipse configuration with be the most complicated step.
  <li> <b>Eclipse Nature</b>: I could create a project nature. As far as I understand the Eclipse Ecosystem that is the component that would show up, if I would choose to provide for something like right click -> New -> My Java Project Type. Do you know how far I can customize the resulting Eclipse project?
  <li> <b>Shell Script</b>: I could create an empty project with all the configuration in place, introduce some special tokens in the relevant plain text files (like  and then write a shellscript that reads values for these options from a properties file, copy the project template and substitute the values.). While it is maybe a bit fragile, it seems like a easy and quick way of doing it.
  
  </ul>
  
  <p>Do give you a little more context: It is ok, if the result locks us into Eclipse. While the build should run without Eclipse (for our CI), the Team uses eclipse and it is highly unlikely that we will ever switch. Also all developers run more or less the same Hard+Software (Linux). We don't work in the domain of Enterprise Java Apps so we really don't need all the fancy dependency management stuff from maven. As a matter of fact our build process is so special, that it probably is much easier to just call make or ant scripts.</p>
  
  <p>So the Questions are:<b>
  <ol>
  <li> Do you have any experience with this kind of stuff?
  <li> Do you have an opinion towards either the Eclipse Nature way or Maven?
  <li> Do you know other tools that provide for a setup like that? 
  </ol></b></p>
  
  <p>Thank you very much for your input.
  <p>
  Cheers,
  Valentin</p>
  
  <p><p></p>
  
  <p>PS: People seem to be religious about their build tools. Please note that I do not want to start a flamewar here for or against maven. I am sure maven can be a great tool but I think in our context we only need 5% of its functionality and from my experience that remaining 95% can get in your way.</p>