I am trying to use the AspectJ plugin and I want to weave a dependency
jar with a lot of optional and not specified dependencies. These
dependencies are not automatically picked up by the plugin. I see
there is an option: noImportError [1] but when I configure the plugin
like this:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
<version>1.1</version>
<configuration>
<source>1.5</source>
<complianceLevel>1.5</complianceLevel>
<noImportError>true</noImportError>
<weaveDependencies>
<weaveDependency>
<groupId>org.agroup</groupId>
<artifactId>to-weave</artifactId>
</weaveDependency>
<weaveDependency>
<groupId>org.anothergroup</groupId>
<artifactId>gen</artifactId>
</weaveDependency>
</weaveDependencies>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
Maven gives me the following output:
[ERROR] unrecognized single argument: "-noImportError"
[ERROR] AspectJ Compiler 1.6.2
Usage: <options> <source file | @argfile>..
AspectJ-specific options:
-inpath <list> use classes in dirs and jars/zips in
<list> as source
(<list> uses platform-specific path
delimiter)
-injars <jarList> use classes in <jarList> zip files as
source
(<jarList> uses classpath delimiter)
#!
#Skipped a lot of lines for readability
#!
Advanced options:
-log <file> log to a file
-proceedOnError do not stop at first error, dumping class files
with problem methods
-verbose enable verbose output
-referenceInfo compute reference info
-progress show progress (only in -log mode)
-time display speed information
-noExit do not call System.exit(n) at end of
compilation (n==0 if no error)
-repeat <n> repeat compilation process <n> times for perf
analysis
@<file> read command line arguments from file
-? -help print this help message
-v -version print compiler version
-showversion print compiler version and continue
[DEBUG] Compiler took 154ms
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Compiler errors :
error unrecognized single argument: "-noImportError"
Am I doing something wrong? I can't find any information on how to use
the noImportError option.
With regards,
[1]
http://mojo.codehaus.org/aspectj-maven-plugin/compile-mojo.html#noImportError
Nick Stolwijk
~Java Developer~
Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email