Java

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • classpath error when using maven2 aspectj plugin

    1 answers - 2080 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    hi all,
    i am using in my project maven2 aspectj plugin.
    of my aspect uses classes from acegisecurity framework and while
    aspectj is compiling / weaving classes, it gives me error that it cannot
    found some acegisecurity classes
    here's excerpt of exception
    error at import *;
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    C:\Sw\TestJSFAppM2\Framework\src\main\java\com\mya pp\aop\JSFItemAspect.java:14:0
    ::0 The import cannot be resolved
    error at import *;
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    and here's my pom.xml (only relevant part)
    <dependency>
    <groupId>org.acegisecurity</groupId>
    <artifactId>acegi-security</artifactId>
    <version>1.0.1</version>
    <exclusions>
    <!-- Maven thinks 2.0 is newer than 2.1
    <exclusion>
    <groupId>commons-lang</groupId>
    <artifactId>commons-lang</artifactId>
    </exclusion>
    <!-- exclude older versions of Spring
    <exclusion>
    <groupId>org.springframework</groupId>
    <artifactId>spring-remoting</artifactId>
    </exclusion>
    <exclusion>
    <groupId>org.springframework</groupId>
    <artifactId>spring-jdbc</artifactId>
    </exclusion>
    <exclusion>
    <groupId>org.springframework</groupId>
    <artifactId>spring-support</artifactId>
    </exclusion>
    </exclusions>
    </dependency>
    <plugins>
    <plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>aspectj-maven-plugin</artifactId>
    <executions>
    <execution>
    <configuration>
    <showWeaveInfo>true</showWeaveInfo>
    </configuration>
    <goals>
    <goal>compile</goal>
    </goals>
    </execution>
    </executions>
    </plugin>
    can anyone tell me how can i fix this?
    thanks in advance and regards
    marco
  • No.1 | | 2510 bytes | |

    have you run it with the -X option on so that we could se what the
    classpath is ?

    btw questions about the aspectJ plugin is faster answered in the mojo
    user group than in the maven user group.

    best regards
    Kaare

    23/09/06, Marco Mistroni <mmistroni (AT) gmail (DOT) comwrote:
    hi all,
    i am using in my project maven2 aspectj plugin.
    of my aspect uses classes from acegisecurity framework and while
    aspectj is compiling / weaving classes, it gives me error that it cannot
    found some acegisecurity classes
    here's excerpt of exception

    error at import *;
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    C:\Sw\TestJSFAppM2\Framework\src\main\java\com\mya pp\aop\JSFItemAspect.java:14:0
    ::0 The import cannot be resolved
    error at import *;
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    --
    and here's my pom.xml (only relevant part)

    <dependency>
    <groupId>org.acegisecurity</groupId>
    <artifactId>acegi-security</artifactId>
    <version>1.0.1</version>
    <exclusions>
    <!-- Maven thinks 2.0 is newer than 2.1
    <exclusion>
    <groupId>commons-lang</groupId>
    <artifactId>commons-lang</artifactId>
    </exclusion>
    <!-- exclude older versions of Spring
    <exclusion>
    <groupId>org.springframework</groupId>
    <artifactId>spring-remoting</artifactId>
    </exclusion>
    <exclusion>
    <groupId>org.springframework</groupId>
    <artifactId>spring-jdbc</artifactId>
    </exclusion>
    <exclusion>
    <groupId>org.springframework</groupId>
    <artifactId>spring-support</artifactId>
    </exclusion>
    </exclusions>
    </dependency>

    <plugins>
    <plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>aspectj-maven-plugin</artifactId>
    <executions>
    <execution>
    <configuration>
    <showWeaveInfo>true</showWeaveInfo>
    </configuration>
    <goals>
    <goal>compile</goal>
    </goals>
    </execution>
    </executions>
    </plugin>

    can anyone tell me how can i fix this?

    thanks in advance and regards
    marco
    --

    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org

Re: classpath error when using maven2 aspectj plugin


max 4000 letters.
Your nickname that display:
In order to stop the spam: 0 + 9 =
QUESTION ON "Java"

EMSDN.COM