You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ben Alex <be...@acegi.com.au> on 2007/01/16 09:05:11 UTC
Compiling without javac
Hi everyone
I can't get maven-compiler-plugin to work with AspectJ or Jikes. I've
followed the official directions at http://tinyurl.com/woqoa but always
receive:
[INFO] No such compiler 'aspectj'.
Or:
[INFO] No such compiler 'jikes'.
This error is from the following line of AbstractCompilerMojo source:
compilerManager.getCompiler(compilerId);
I have registered the plugin as follows:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.1-SNAPSHOT</version>
<configuration>
<compilerId>aspectj</compilerId>
<verbose>true</verbose>
<failOnError>false</failOnError>
<source>1.3</source>
<target>1.3</target>
</configuration>
<dependencies>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-compiler-aspectj</artifactId>
<version>1.3</version>
</dependency>
</dependencies>
</plugin>
BTW I know I can use the AspectJ plugin instead, but I need
<failOnError>false</failOnError> support with AspectJ and/or Jikes.
Any suggestions appreciated.
Cheers
Ben
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Compiling without javac
Posted by Ben Alex <be...@acegi.com.au>.
Carlos Sanchez wrote:
> strange, please file an issue with test project
I have figured it out. The instructions (http://tinyurl.com/woqoa) state
1.5.3 is the version for plexus-compiler-*. There is no 1.5.3 for
plexus-compiler-aspectj or plexus-compiler-jikes. So I used 1.3, which
there is (under <groupdId>plexus</groupId>, not
<groupId>org.codehaus.plexus</groupId>). 1.3 simply doesn't work, at
least with maven-compiler-plugin version 2.1-SNAPSHOT.
I couldn't locate a 1.6-SNAPSHOT of plexus-compiler-aspectj (or jikes
for that matter), only plexus-compiler-javac and plexus-compiler-csharp
at http://snapshots.repository.codehaus.org/org/codehaus/plexus/.
This led me to the Subversion repository for plexus-components, where I
checked out http://svn.codehaus.org/plexus/plexus-components/trunk/ and
was able to mvn install from the plexus-compiler directory. Great!
Except plexus-compiler/pom.xml includes as a module
plexus-compiler/plexus-compilers/pom.xml, and the latter does NOT
include either plexus-compilers-aspectj or plexus-compilers-jikes or
plexus-compilers-eclipse (it only includes plexus-compilers-javac and
plexus-compilers-csharp). When I changed into the
plexus-compilers-aspectj directory, I could mvn install it successfully.
I was unable to build plexus-compilers-jikes. A test failed.
I was able to build plexus-compilers-eclipse.
Would the following be possible?:
1. Add plexus-compilers-aspectj, plexus-compilers-eclipse (and hopefully
plexus-compilers-jikes despite its error and requirement for jikes in
the path to run the test) included in the <modules> of
plexus-compiler/plexus-compilers/pom.xml.
2. Have their builds published to
http://snapshots.repository.codehaus.org/org/codehaus/plexus/ like
happens for plexus-compilers-javac and plexus-compilers-csharp.
3. Maybe update the instructions (http://tinyurl.com/woqoa) to note that
1.6-SNAPSHOT should be used if compilation with
plexus-compilers-aspectj, plexus-compilers-eclipse or
plexus-compilers-jikes is desired.
Thanks
Ben
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Compiling without javac
Posted by Carlos Sanchez <ca...@apache.org>.
strange, please file an issue with test project
On 1/16/07, Ben Alex <be...@acegi.com.au> wrote:
> Hi everyone
>
> I can't get maven-compiler-plugin to work with AspectJ or Jikes. I've
> followed the official directions at http://tinyurl.com/woqoa but always
> receive:
>
> [INFO] No such compiler 'aspectj'.
>
> Or:
>
> [INFO] No such compiler 'jikes'.
>
> This error is from the following line of AbstractCompilerMojo source:
>
> compilerManager.getCompiler(compilerId);
>
> I have registered the plugin as follows:
>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <version>2.1-SNAPSHOT</version>
> <configuration>
> <compilerId>aspectj</compilerId>
> <verbose>true</verbose>
> <failOnError>false</failOnError>
> <source>1.3</source>
> <target>1.3</target>
> </configuration>
> <dependencies>
> <dependency>
> <groupId>org.codehaus.plexus</groupId>
> <artifactId>plexus-compiler-aspectj</artifactId>
> <version>1.3</version>
> </dependency>
> </dependencies>
> </plugin>
>
> BTW I know I can use the AspectJ plugin instead, but I need
> <failOnError>false</failOnError> support with AspectJ and/or Jikes.
>
> Any suggestions appreciated.
>
> Cheers
> Ben
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
-- The Princess Bride
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org