I ma struggling to use Maven (JavaEE plug in) with XDoclet.
First question did somebody achieved it already?
If it is so I would be grateful for some advices how it has been done.
As I understand I have to "Prepare Sources"
so I am playing with project.properties
-------------------------------------------------
maven.delegatorBuildFile=build-xdoclet.xml
maven.prepareSourceTarget=ejbdoclet
maven.prepareSourceDirectory=target/generated-src
#########################
# j2ee
#
maven.j2ee.version=13
build.conf.dir=${maven.build.dir}/conf
build.conf.j2ee=${build.conf.dir}/j2ee
build.conf.ejb=${build.conf.dir}/ejb
build.gen.src=${maven.build.dir}/generated-src
...
--------------------------------------------------
And here I have encounterd first problem:
I have build-xdoclet.xml
--------------------------------------------------
<?xml version="1.0"?>
<project name="maven" >
<!-- ========================================= -->
<!-- Prepare build area -->
<!-- ========================================= -->
<target name="prepare">
<echo>
maven.build.dir ---> ${maven.build.dir}
build.conf.dir ---> ${build.conf.dir}
build.conf.j2ee ---> ${build.conf.j2ee}
build.conf.ejb ---> ${build.conf.ejb}
maven.j2ee.version ---> ${maven.j2ee.version}
</echo>
<mkdir dir="${build.conf.dir}" />
<mkdir dir="${build.conf.ejb}" />
<mkdir dir="${build.conf.j2ee}" />
<mkdir dir="${build.gen.src}" />
</target>
<target name="ejbdoclet" depends="prepare">
<ejbdoclet>
...
</ejbdoclet>
</target>
</project>
--------------------------------------------------------------------
And to my surprise output is like follows:
[echo]
prepare:
[echo]
[echo] maven.build.dir ---> C:\projects\myproject/target
[echo] build.conf.dir ---> ${maven.build.dir}/conf
[echo] build.conf.j2ee ---> ${maven.build.dir}/conf/j2ee
[echo] build.conf.ejb ---> ${maven.build.dir}/conf/ejb
[echo] maven.j2ee.version ---> 13
[echo]
Question is why Maven is not resolfing correctly properties:
build.conf.dir
build.conf.j2ee
build.conf.ejb
TIA
Michal
----------------------------------------------------------------------
Czy grozi nam powrot cenzury? >>> http://link.interia.pl/f162a
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>