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

On 23/09/06, Marco Mistroni <[EMAIL PROTECTED]> wrote:
hi all,
i am using in my project maven2 aspectj plugin.
One 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 org.acegisecurity.context.security.*;
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
C:\Sw\TestJSFAppM2\Framework\src\main\java\com\myapp\aop\JSFItemAspect.java:14:0
::0 The import org.acegisecurity.context.security cannot be resolved
error at import org.acegisecurity.context.security.*;
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to