Hi Tobi,
This has to do with knowing a little about how maven
works. First of all, if you take a look at the POM
(project.xml) for common you'll see that your
sourceDirectory element specifies that the generated
source directory is the sourceDirectory:
<sourceDirectory>target/src</sourceDirectory> (at
least if you used andromda:genapp to generate your
project structure) .
Since you're adding manual source to the common
module, what you'll need to do is change that
sourceDirectory to the directory where your manual
source exists, so change to:
<sourceDirectory>src/java</sourceDirectory>.
Now since you have multiple source directories
(generated and manual) you'll need to create a
maven.xml file and create a preGoal for the
"java:compile" goal that adds the generated source
directory (target/src) to the "maven.compile.src.set"
path. If you take a look at the maven.xml in the web
module you'll see we do just that to add the generated
source to the maven compile path:
<preGoal name="java:compile">
<!-- add the paths of the generated source to the
maven compile path -->
<ant:path
id="andromda.struts.gen.src"
location="${maven.build.src}"/>
<maven:addPath
id="maven.compile.src.set"
refid="andromda.struts.gen.src"/>
</preGoal>
Chad
Tobi <[EMAIL PROTECTED]> wrote:
> Hi,
>
> where can I put my own classes in the project
> structure?
> For example, I put my BusinessDelegate class (which
> is not in the model) in
> common/src/java/, when I run Maven then I get a
> exception that the value
> objects and home interfaces of the used EJB can�t be
> resolved.
>
> Where I have to put such classes?
>
>
> Thanks,
> Tobi
>
>
>
>
>
>
-------------------------------------------------------
> This SF.Net email is sponsored by the new
> InstallShield X.
> From Windows to Linux, servers to mobile,
> InstallShield X is the one
> installation-authoring solution that does it all.
> Learn more and
> evaluate today!
> http://www.installshield.com/Dev2Dev/0504
> _______________________________________________
> Andromda-user mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/andromda-user
-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Andromda-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-user