Here here! I'm a maven 2 user and I really wish JBoss would expose a full-fledged
maven 2 repo with all artifacts, such as for jboss-aop-1.5, etc.
By the way, I used aopc via the antrun plugin like so:
<!-- run JBoss AOPC so that JBoss doesn't have to do this at load time
-->
| <plugin>
| <artifactId>maven-antrun-plugin</artifactId>
| <executions>
| <execution>
| <phase>process-classes</phase>
| <goals>
| <goal>run</goal>
| </goals>
| <configuration>
| <!--
http://labs.jboss.com/jbossaop/docs/1.5.0.GA/docs/aspect-framework/refere...
-->
| <tasks>
| <path id="classpath">
| <path
refid="maven.plugin.classpath"/>
| <path
refid="maven.compile.classpath"/>
| </path>
| <taskdef name="aopc"
classname="org.jboss.aop.ant.AopC"/>
| <!-- note: use verbose true to check if pointcuts
are matching -->
| <aopc verbose="true"
compilerclasspathref="classpath">
| <classpath
path="${project.build.outputDirectory}"/>
| <src
path="${project.build.outputDirectory}"/>
| <aoppath
path="${project.directory}/../../mrt-aop/src/resources/META-INF/" />
| </aopc>
| </tasks>
| </configuration>
| </execution>
| </executions>
| <dependencies>
| <dependency><!-- in our local repo -->
| <groupId>org.jboss.aop</groupId>
| <artifactId>aopc_jdk15</artifactId>
| <version>1.5.6</version>
| </dependency>
| </dependencies>
| </plugin>
And for the dependency aopc_jdk15, I used a pom like this:
| <?xml version="1.0" encoding="UTF-8"?>
| <project>
| <modelVersion>4.0.0</modelVersion>
| <groupId>org.jboss.aop</groupId>
| <artifactId>aopc_jdk15</artifactId>
| <version>1.5.6</version>
| <dependencies>
| <dependency>
| <groupId>org.jboss.aop</groupId>
| <artifactId>javassist</artifactId>
| <version>${pom.version}</version>
| </dependency>
| <dependency>
| <groupId>org.jboss.aop</groupId>
| <artifactId>trove</artifactId>
| <version>${pom.version}</version>
| </dependency>
| <dependency>
| <groupId>org.jboss.aop</groupId>
| <artifactId>jboss-common</artifactId>
| <version>${pom.version}</version>
| </dependency>
| <dependency>
| <groupId>org.jboss.aop</groupId>
| <artifactId>concurrent</artifactId>
| <version>${pom.version}</version>
| </dependency>
| </dependencies>
| </project>
|
See my xml comments within. I had to manually import things into my local repo, and I
have a direct file path in there which you'd want to change.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130888#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...