Announcement Announcement Module
Collapse
No announcement yet.
Build-time weaving with @Configurable Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Originally posted by anydoby View Post
    Your solution will also include Spring aspects into the resulting jar file. How do you fix that?
    I'm not sure

    I include part of our pom.xml bellow. You might try to add that and see if it helps.

    btw... feel free to vote for http://jira.codehaus.org/browse/MECLIPSE-270

    Code:
          <dependency>
             <groupId>org.springframework</groupId>
             <artifactId>spring-aspects</artifactId>
             <version>2.5.1</version>
          </dependency>
         
         <dependency>
             <groupId>aspectj</groupId>
             <artifactId>aspectjweaver</artifactId>
             <version>1.5.3</version>
          </dependency>
          <dependency>
             <groupId>aspectj</groupId>
             <artifactId>aspectjrt</artifactId>
             <version>1.5.3</version>
          </dependency>
    
    ...     
         
            <plugin>
              <groupId>org.codehaus.mojo</groupId>
              <artifactId>aspectj-maven-plugin</artifactId>
              <version>1.0-beta-2</version>
                <executions>
                   <execution>
                      <goals>
                         <goal>compile</goal>
                         <goal>test-compile</goal>
                      </goals>
                   </execution>
                </executions>
                <configuration>
                   <source>1.5</source>
                   <target>1.5</target>
                   <encoding>utf-8</encoding>
                   <verbose>true</verbose>
                   <outxml>false</outxml>
    
                   <showWeaveInfo>true</showWeaveInfo>
                   <proceedOnError>true</proceedOnError>
    
                   <weaveDependencies>
                      <weaveDependency>
                         <groupId>org.springframework</groupId>
                         <artifactId>spring-aspects</artifactId>
                      </weaveDependency>
                   </weaveDependencies>
    
                   <aspectLibrarys>
                      <aspectLibrary>
                         <groupId>org.springframework</groupId>
                         <artifactId>spring-aspects</artifactId>
                      </aspectLibrary>
                   </aspectLibrarys>
    
                </configuration>
             </plugin>
    -Kaj

    Comment


    • #17
      new aspectj plugin

      I have investigated the issue of aspectj plugin including 3rd party aspects into my jars and realized that the plugin does not work for me. I was able to write my own plugin http://anydoby.com/jblog/article.htm?id=68&lng=en

      which works as I expect it to work

      Comment

      Working...
      X