Wednesday, October 1, 2008

terraform java project to maven


This is a hack i put togetther to convert texai from netbeans to maven, with some success.

terraform java and netbeans project to maven


what it is:

a shell script, which includes a few gnu-specific MacPorts shell env amenities to take advantage of gnu tools

what it does: converts multiple java projects to maven 'parent' and 'parent-child' directories

syntax:

$ cd projectRoot
$ DEBUG=t terraform.sh subprj1 subprj2 ...

Features:
if present, this will read netbeans project info and add some metadata

runs the basic archetype to create a relatively sane project.
creates parent/module links
this one is HUGE--
*** converts lib/*.jar to LOCAL MAVEN REPO entries in the poms ***
tries to infer packages it can reuse from the default repos with a small set of presets (such as in texai)
converts src/** to maven convention defaults of src/main/java
converts **/test/** to maven convention defaults of src/test/java
other stuff.


No comments: