Isn't it boring to keep the copyright/licenses headers of your code updated?
I just found a nice Maven2 plug-in that can do the job for you. It scans your code for file types like .java, .xml., .xsd, .ssh, .sql and many others and add the header formatted according to the file type.
There are many configurations available but the defaults for me were OK. I just had to create a file with the text of my license header and change my pom.
The plug-in site is: http://code.google.com/p/maven-license-plugin/
If you want my pom as sample, you can see it here, just search for "START: LICENSE PLUGIN"
Showing posts with label maven2. Show all posts
Showing posts with label maven2. Show all posts
Tuesday, April 8, 2008
Monday, April 7, 2008
Maven2 for Eclipse
Plug-in: http://m2eclipse.codehaus.org/
This plug-in for Eclipse can help you handle Maven2 projects. I'm new to it and I don't know what it can do.
Maven2 has a plug-in that creates Eclipse projects for your. Using a command prompt, go to the folder that contains your pom and execute "mvn eclipse:eclipse".
Note that the project structure of Maven is not straight compatible to the Eclipse project structure. If you have to checkout a project with one or more Eclipse sub-projects, for each Eclipse sub-project you should import it as an "Existing Projects into Workspace" using the Package Explorer.
Subscribe to:
Posts (Atom)