You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by fachhoch <fa...@gmail.com> on 2009/03/26 02:47:25 UTC
hibernate byte code instrumentation
I am using maven-ant-run plugin to call hibernate byte code insturmentation
, i also have maven jetty plugin , every time i run jetty plugin first
all modified java files gets complied and then test cases and finally
deployed , but this ant-run plugin for hibernate byte code instrumentation
does not get called , please tell me how to call hibernate byte code
automatically ?
--
View this message in context: http://www.nabble.com/hibernate-byte-code-instrumentation-tp22714675p22714675.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: hibernate byte code instrumentation
Posted by Rusty Wright <ru...@gmail.com>.
Try this:
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
fachhoch wrote:
> I did not understand this, please explain what should I change in pom to do
> this ?
>
>
> here is my jetty maven plugin
> <plugin>
> <groupId>org.mortbay.jetty</groupId>
> <artifactId>maven-jetty-plugin</artifactId>
> <version>6.1.12.rc4</version>
> <configuration>
> <dependencies>
> <dependency>
> <groupId>commons-logging</groupId>
> <artifactId>commons-logging</artifactId>
> <version>1.0.4</version>
> <type>jar</type>
> </dependency>
> <dependency>
> <groupId>log4j</groupId>
> <artifactId>log4j</artifactId>
> <version>1.2.14</version>
> <type>jar</type>
> </dependency>
> </dependencies>
> </configuration>
> </plugin>
>
> here is my maven ant run plugin
>
> <plugin>
> <artifactId>maven-antrun-plugin</artifactId>
> <version>1.3</version>
> <configuration>
> <tasks>
> <taskdef name="instrument"
> classname="org.hibernate.tool.instrument.javassist.InstrumentTask">
> <classpath>
> <path refid="maven.runtime.classpath" />
> <path refid="maven.plugin.classpath" />
> </classpath>
> </taskdef>
> <instrument verbose="true">
> <fileset dir="${project.build.outputDirectory}">
> <include name="**/model/**/*.class" />
> </fileset>
> </instrument>
> </tasks>
> </configuration>
> </plugin>
>
> please tell me what should I do to my pom to acheieve what you said .
>
>
> Stephen Connolly-2 wrote:
>> attach the execution to the process-classes phase
>>
>> 2009/3/26 fachhoch <fa...@gmail.com>
>>
>>> I am using maven-ant-run plugin to call hibernate byte code
>>> insturmentation
>>> , i also have maven jetty plugin , every time i run jetty plugin first
>>> all modified java files gets complied and then test cases and finally
>>> deployed , but this ant-run plugin for hibernate byte code
>>> instrumentation
>>> does not get called , please tell me how to call hibernate byte code
>>> automatically ?
>>> --
>>> View this message in context:
>>> http://www.nabble.com/hibernate-byte-code-instrumentation-tp22714675p22714675.html
>>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: hibernate byte code instrumentation
Posted by fachhoch <fa...@gmail.com>.
I did not understand this, please explain what should I change in pom to do
this ?
here is my jetty maven plugin
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>6.1.12.rc4</version>
<configuration>
<dependencies>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.0.4</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.14</version>
<type>jar</type>
</dependency>
</dependencies>
</configuration>
</plugin>
here is my maven ant run plugin
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.3</version>
<configuration>
<tasks>
<taskdef name="instrument"
classname="org.hibernate.tool.instrument.javassist.InstrumentTask">
<classpath>
<path refid="maven.runtime.classpath" />
<path refid="maven.plugin.classpath" />
</classpath>
</taskdef>
<instrument verbose="true">
<fileset dir="${project.build.outputDirectory}">
<include name="**/model/**/*.class" />
</fileset>
</instrument>
</tasks>
</configuration>
</plugin>
please tell me what should I do to my pom to acheieve what you said .
Stephen Connolly-2 wrote:
>
> attach the execution to the process-classes phase
>
> 2009/3/26 fachhoch <fa...@gmail.com>
>
>>
>> I am using maven-ant-run plugin to call hibernate byte code
>> insturmentation
>> , i also have maven jetty plugin , every time i run jetty plugin first
>> all modified java files gets complied and then test cases and finally
>> deployed , but this ant-run plugin for hibernate byte code
>> instrumentation
>> does not get called , please tell me how to call hibernate byte code
>> automatically ?
>> --
>> View this message in context:
>> http://www.nabble.com/hibernate-byte-code-instrumentation-tp22714675p22714675.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
>
--
View this message in context: http://www.nabble.com/hibernate-byte-code-instrumentation-tp22714675p22722678.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: hibernate byte code instrumentation
Posted by Stephen Connolly <st...@gmail.com>.
attach the execution to the process-classes phase
2009/3/26 fachhoch <fa...@gmail.com>
>
> I am using maven-ant-run plugin to call hibernate byte code
> insturmentation
> , i also have maven jetty plugin , every time i run jetty plugin first
> all modified java files gets complied and then test cases and finally
> deployed , but this ant-run plugin for hibernate byte code instrumentation
> does not get called , please tell me how to call hibernate byte code
> automatically ?
> --
> View this message in context:
> http://www.nabble.com/hibernate-byte-code-instrumentation-tp22714675p22714675.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>