Hi,

To use JEHA inside Maven you have to configure the JEHA plugin.

Try to add this to your pom.xml:

<build>
  <plugins>
    <plugin>
      <groupId>org.codecompany</groupId>
      <artifactId>jeha-plugin</artifactId>
      <version>1.0.2</version>
      <configuration>
        <sourceDirs>
          <param>${project.build.outputDirectory}</param>
        </sourceDirs>
      </configuration>
      <executions>
        <execution>
          <phase>compile</phase>
          <goals>
            <goal>jeha</goal>
          </goals>
        </execution>
      </executions>
    </plugin>
  </plugins>
</build>

Regards,
Andre

On 14 June 2014 20:28, honey honeyboloorchi@users.sf.net wrote:


Status: open
Group: v1.0_(example)
Created: Sat Jun 14, 2014 10:28 AM UTC by honey
Last Updated: Sat Jun 14, 2014 10:28 AM UTC
Owner: nobody

hi
I want to use jeha in maven.
At first I can not install jeha-plugin.1.0 from maven repository,so I
installed it from its jeha-plugin.jar in my local reposirty.It seems that
jeha-plugin and jeha-core was successfully installed in my maven local
repositury,but when i run this code ,nothing be happend and console dose
not show which i managed in MyHandel.class.

TestException.class:
@ExceptionHandler(handler=MyHandler.class)
private void throwNullPointerException() {
String str = null;
str.charAt(1);//NullPointerException happend

}

MyHandler.class:
public Throwable handle(NullPointerException arg, Object... obj) {

        System.out.println("NullPointerException Occured!");//this message was not shown in my console
return arg;}

please help me how to use jeha in maven in desktop application.
Thanks in advance
honey


Sent from sourceforge.net because you indicated interest in
https://sourceforge.net/p/jeha/support-requests/2/

To unsubscribe from further messages, please visit
https://sourceforge.net/auth/subscriptions/

 

Related

Support Requests: #2


Last edit: Andre Dantas Rocha 2014-06-15