Showing posts with label development. Show all posts
Showing posts with label development. Show all posts

Tuesday, April 8, 2008

Keep your copyright/license headers updated with a nice maven2 plug-in

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"

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.

Wednesday, April 2, 2008

The virtuous circle of free licenses for open source developers

Companies that use open source libraries and tools should give free licenses for the development of open source projects. Example: I use Jude Community a lot, it is a pretty good program, but some nice features are available only in the Professional version. This UML modeling software is very useful for open source developers that can't afford paying for the professional version. By doing that, the company that develop Jude would start a virtuous circle: 1. open source developers can use the full featured Jude UML modeling; 2. the open source libraries and tools have their quality improved; 3. Jude UML will be able to use higher quality libraries and tools and improve its own quality; 4. open source developer can use a better Jude UML software to develop their libraries and tools...