Nicholas, additional thing
if you make it work, would you mind write a wiki here
http://docs.codehaus.org/display/MAVENUSER/Examples
with your example pom.xml? it might help (me :) or anyone that want to do
same
things later on
regards
marco
On 1/30/07, Marco Mistroni <[EMAIL PROTECTED]> wrote:
ah i see, i was betting that that could have been one of the problems....
any reasons why the code below does not work using
<phase>process-classes</phase>?
i had to add extra classes 'manually' to classpath because i had problem
with some jboss versions that were screwing up the wstools task.. so i
couldn't import the whole jboss-all-client, that's why you see all
<include> in sample i gave
<classpath refid="maven.dependency.classpath"/>
there was a message i saw on this list which was talking about using maven
dependencies for classpath..... i m sure is < than 1 month......
good luck
rgds
marco
On 1/30/07, nicolas de loof <[EMAIL PROTECTED]> wrote:
>
> My issue is about building the classpath for the hibernate
> instrumentTask
> using maven dependencies : your sample config uses ${jboss.libdir} to
> build
> the task calsspath. I'd like to set a dependency for the plugin on
> hibernate.
>
> Thanks anyway.
>
> 2007/1/30, Marco Mistroni <[EMAIL PROTECTED]>:
> >
> > Hi,
> > my 2 cents ..... don't know the issue but i went to check
> > what does that instrument task do..
> > i see no reason why you can't just use maven antrun plugin and execute
> > it...
> > dont know if this might help... here i configured a custom ant task
> > (wstools), like this
> >
> > <configuration>
> > <tasks>
> > <taskdef name="wstools" classname="
> > org.jboss.ws.tools.ant.wstools
> > ">
> > <classpath refid="maven.dependency.classpath"/>
> >
> > <classpath>
> > <fileset dir="${jboss.libdir}\client">
> > <include name="activation.jar"/>
> > <include name="javassist.jar"/>
> > <include name="jboss-common-client.jar "/>
> > <include name="jbossretro-rt.jar"/>
> > <include name="jboss-backport-concurrent.jar"/>
> > <include name=" jbossws-client.jar"/>
> > <include name="jboss-xml-binding.jar"/>
> > <include name="concurrent.jar"/>
> > <include name=" log4j.jar"/>
> > <include name="mail.jar"/>
> > <include name="wsdl4j.jar"/>
> >
> > </fileset>
> > <fileset dir="${ jboss.libdir}\lib\endorsed">
> > <include name="*.jar"/>
> > </fileset>
> >
> > </classpath>
> > </taskdef>
> > </tasks>
> > <wstools dest="${project.build.outputDirectory}/META-INF"
> > config="${workspace.dir}/middleware/jboss/wstools-
> > messenger-config.xml "/>
> >
> > but i bet you knew that, i saw your name on this list since long
> >
> > was that hte problem? if you just replace it the above code with the
> ant
> > code listed here
> >
> > http://www.hibernate.org/hib_docs/v3/reference/en/html/performance.html
>
> >
> >
> > now. watching at that ant task for instrumentationTask it says
> > 'depends=compile',
> > so you shoul dinvoke your maven-antrun-plugin in the <process-classes>
> > phase
> >
> > you might encounter problems of classpath...
> >
> > pls let me know if this helps
> >
> > rgds
> > marco
> >
> >
> >
> >
> >
> > On 1/30/07, nicolas de loof < [EMAIL PROTECTED]> wrote:
> > >
> > > Hello,
> > >
> > > Is there any plugin that support hibernate InstrumentTask ?
> > > How to configure the antrun plugin to use it ?
> > >
> > >
> >
> >
>
>