--- /dev/null
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>foo.bar</groupId>
+ <artifactId>aspectj-certificate-problem</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>jar</packaging>
+
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ </properties>
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <compilerVersion>1.6</compilerVersion>
+ <fork>true</fork>
+ <source>1.6</source>
+ <target>1.6</target>
+ <showWarnings>true</showWarnings>
+ <showDeprecation>true</showDeprecation>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>2.2</version>
+ <configuration>
+ <descriptorRefs>
+ <descriptorRef>jar-with-dependencies</descriptorRef>
+ </descriptorRefs>
+ <archive>
+ <manifest>
+ <mainClass>foo.bar.Foo</mainClass>
+ </manifest>
+ </archive>
+ </configuration>
+ <executions>
+ <execution>
+ <id>make-assembly</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jarsigner-plugin</artifactId>
+ <configuration>
+ <keystore>cert/key.store</keystore>
+ <alias>foo</alias>
+ <storepass>foobar</storepass>
+ <archiveDirectory>target</archiveDirectory>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.1</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <executable>java</executable>
+ <!-- optional -->
+ <arguments>
+ <argument>-javaagent:/Users/aclement/installs/aspectj1611/lib/aspectjweaver.jar</argument>
+ <argument>-jar</argument>
+ <argument>target/aspectj-certificate-problem-1.0-SNAPSHOT-jar-with-dependencies.jar</argument>
+ </arguments>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>org.aspectj</groupId>
+ <artifactId>aspectjrt</artifactId>
+ <version>1.6.10</version>
+ </dependency>
+ <dependency>
+ <groupId>org.aspectj</groupId>
+ <artifactId>aspectjweaver</artifactId>
+ <version>1.6.10</version>
+ </dependency>
+ </dependencies>
+</project>
--- /dev/null
+package foo.bar;\r
+\r
+import org.aspectj.lang.ProceedingJoinPoint;\r
+import org.aspectj.lang.annotation.Around;\r
+import org.aspectj.lang.annotation.Aspect;\r
+import org.aspectj.lang.annotation.Pointcut;\r
+\r
+@Aspect\r
+public class BarAspect {\r
+ @SuppressWarnings("unused")\r
+ @Pointcut("execution(* foo.bar.Foo.bar())")\r
+ private void pointcut() {\r
+ }\r
+\r
+ @Around("pointcut()")\r
+ public Object applyAdvice(ProceedingJoinPoint pjp) throws Throwable {\r
+ System.out.print("pre...");\r
+ Object retVal = pjp.proceed();\r
+ System.out.println("...post");\r
+ return retVal;\r
+ }\r
+\r
+}\r