Hi! Lets try to follow the logical route. It's either
a.) cannot find the 'compile' mojo or b.) 'or one of its required components' Ad a.): Maven plugins have xdoc annotations which will be used to generate a META-INF/maven/plugin.xml file in the plugins jar. Can you check if this exists and looks good? Did you try other plugins? A plain 'mvn clean' works well? Starting mvn with -X might also give you a bit more clue about whats going on. LieGrue, strub --- On Sat, 8/13/11, Kasun Gajasinghe <[email protected]> wrote: > From: Kasun Gajasinghe <[email protected]> > Subject: Issue in m-compiler-p probably related to maven-toolchain > To: "Maven Developers List" <[email protected]> > Cc: "kiorky" <[email protected]>, "Serkan Kaba" <[email protected]>, > "Alistair Bush" <[email protected]> > Date: Saturday, August 13, 2011, 6:14 AM > Hi devs, > > As you may have probably heard, Maven integration in Gentoo > is fully working > for user-level. Currently, I'm working on getting the > system-level > integration working, which is the main goal of this > project. > > I'm now faced with an issue related to m-compiler-p when > compiling a simple > project at sys-level. I should note that I'm using the > custom-built maven > NOT the official build. I'm asking this question from you > to get a _hint_ to > fix this issue. > > m-compiler-p fails with, > > [INFO] Internal error in the plugin manager executing goal > 'org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile': > Unable to > find the mojo 'compile' (or one of its required components) > in the plugin > 'org.apache.maven.plugins:maven-compiler-plugin' > Can not set > org.apache.maven.toolchain.DefaultToolchainManager field > org.apache.maven.plugin.AbstractCompilerMojo.toolchainManager > to > org.apache.maven.toolchain.DefaultToolchainManager > > Full build stack trace is at [1]. > > I've checked the components.xml file of > maven-toolchain-1.0, but couldn't > figure out the issue. The implementation for the > <role> > org.apache.maven.toolchain.ToolchainManager is > org.apache.maven.toolchain.DefaultToolchainManager. So, it > should work. I've > gone through the source file of AbstractCompilerMojo [2] as > well without any > success. > > Can anyone let me know where I should I look to fix this > issue? I understand > that this is not the official build, so you all don't need > to be concerned > with this. But any help to figure this out is much > appreciated! > > [1] http://pastebin.com/e6E0VtW6 > [2] > http://svn.apache.org/viewvc/maven/plugins/tags/maven-compiler-plugin-2.3.2/src/main/java/org/apache/maven/plugin/AbstractCompilerMojo.java?view=markup > > Thanks, > --Kasun > > -- > ~~~*******'''''''''''''*******~~~ > Kasun Gajasinghe, > University of Moratuwa, > Sri Lanka. > Blog: http://blog.kasunbg.org > Twitter: http://twitter.com/kasunbg > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
