Today I decided to try out the new version of Mevenide for NetBeans 4.0
beta 1.
It is a very cool plug-in: once you open the root project, Mevenide
automatically parses the subprojects and "mounts" them in the IDE and
sets the classpaths based on declared dependencies. This greatly makes
life easier for Maven projects especially when using the Multiproject
pattern.
However when I use the AndroMDA tool , which uses multiprojects and use
2 types of source directories per project (one for always-re-generated
code , and one for generated but to-be-tailored code), Mevenide only
picks up the source directory declared in the project.xml (seems
logical). I'm trying to figure out how to setup Maven/Mevenide so that
both directories will be mounted in NetBeans.
Does anyone have experience with this?
Thanks in advance.
Philippe
PS - Milos, I'm copying you since you are involved in Mevenide. I'm not
sure if you're familiar with AndroMDA ( http://team.andromda.org).
In case you are not, AndroMDA uses subprojects and XDoclet to generate
various artifacts like EJBs, common components, etc.
If I have a root project called mysvc in C:\mysvc, the full directory
structure looks as follow:
project.properties - root
project.xml
.\ejb - subproject for the EJB components
.\ejb\project.xml
.\ejb\src\java --contains source code to be tailored by
the developer (generated only once by AndroMDA through XDoclet )
.\ejb\src\java\org\mddtut\mddtut2\MySvcBeanImpl.java
.\ejb\target
.\ejb\target\classes
...
.\ejb\target\classes\org\mddtut\mddtut2\MySvcBean.class
.\ejb\target\classes\org\mddtut\mddtut2\MySvcBeanImpl.class
...
.\ejb\target\src\ - contains source code always re-/generated
by AndroMDA through XDoclet
...
.\ejb\target\src\org\mddtut\mddtut2\MySvcBean.java
...
.\ejb\target\xdoclet\
.\mda - subproject containing the UML model
driving the AndroMDA generation
.\mda\project.xml
.\mda\src\uml\mddtut2a-model.xmi
..
If you look at the ejb subproject, you will notice the 2 source code
directories:
.\ejb\src\java --contains source code to be tailored by
the developer (generated only once by AndroMDA through XDoclet )
.\ejb\target\src\ - contains source code always re-/generated
by AndroMDA through XDoclet
In .\ejb\project.xml, the sourceDirectory points to src\java.
However, since we also have code in target\java, that directory does not
get mounted in NetBeans.
I have tried to add a <sourceModifications> section but I must not know
how to set that up properly:
<build>
<sourceDirectory>src/java</sourceDirectory>
<sourceModifications>
<sourceModification>
<className>MySvcBean</className>
<includes>
<include>target/src/**/*.java</include>
</includes>
</sourceModification>
</sourceModifications>
</build>
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Andromda-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-user