once the maven-compiler-plugin is installed you'll need pom and the jar (and the .sha1 for ssh access) for example here is my local repostory
Directory of $MAVEN_PLUGIN/org/apache/maven/plugins/maven-compiler-plugin/2.0 08/18/2009 11:49 AM 13,954 maven-compiler-plugin-2.0.jar 06/10/2009 08:32 AM 1,099 maven-compiler-plugin-2.0.jar.old 08/18/2009 11:49 AM 40 maven-compiler-plugin-2.0.jar.sha1 04/09/2009 01:35 PM 1,184 maven-compiler-plugin-2.0.pom 04/09/2009 01:35 PM 181 maven-compiler-plugin-2.0.pom.sha1 did you install maven-compiler-plugin with -DgroupId and -Dversion and -DartifactId specified? http://maven.apache.org/plugins/maven-compiler-plugin/ example repository http://www.jarvana.com/jarvana/browse?path=/org/apache/maven/plugins/maven-compiler-plugin/2.0/ Martin Gainty ______________________________________________ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Subject: maven-compiler-plugin does not exist or no valid version could be > found > Date: Thu, 3 Sep 2009 13:05:35 +0100 > From: [email protected] > To: [email protected] > > Hi All > > > > I am attempting to fix a Hudson build failure with Maven. > > Now on my workstation I can type "mvn site:stage" and the whole project. > > > > However, when I use PuTTY in order to remote into Hudson UNIX server and > manually invoke the same command, I get a failure. > > > > > > [INFO] > ------------------------------------------------------------------------ > > [INFO] Building BOS Summit DealPublisher MASTER project > > [INFO] task-segment: [site:stage] > > [INFO] > ------------------------------------------------------------------------ > > [INFO] > ------------------------------------------------------------------------ > > [ERROR] BUILD ERROR > > [INFO] > ------------------------------------------------------------------------ > > [INFO] The plugin 'org.apache.maven.plugins:maven-compiler-plugin' does > not exist or no valid version could be found > > [INFO] > ------------------------------------------------------------------------ > > [INFO] Trace > > org.apache.maven.lifecycle.LifecycleExecutionException: The plugin > 'org.apache.maven.plugins:maven-compiler-plugin' does not exist or no > valid version could be found > > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyReportPlugin(D > efaultLifecycleExecutor.java:1651) > > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReportExecutions( > DefaultLifecycleExecutor.java:928) > > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReportExecutions( > DefaultLifecycleExecutor.java:904) > > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default > LifecycleExecutor.java:599) > > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa > l(DefaultLifecycleExecutor.java:569) > > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL > ifecycleExecutor.java:539) > > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle > Failures(DefaultLifecycleExecutor.java:387) > > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( > DefaultLifecycleExecutor.java:348) > > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec > ycleExecutor.java:180) > > at > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) > > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) > > at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) > > at > org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav > a:39) > > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor > Impl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:597) > > at > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > > at > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > > Caused by: > org.apache.maven.plugin.version.PluginVersionNotFoundException: The > plugin 'org.apache.maven.plugins:maven-compiler-plugin' does not exist > or no valid version could be found > > at > org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePlugi > nVersion(DefaultPluginVersionManager.java:229) > > at > org.apache.maven.plugin.version.DefaultPluginVersionManager.resolveRepor > tPluginVersion(DefaultPluginVersionManager.java:98) > > at > org.apache.maven.plugin.DefaultPluginManager.verifyReportPlugin(DefaultP > luginManager.java:599) > > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyReportPlugin(D > efaultLifecycleExecutor.java:1622) > > ... 20 more > > [INFO] > ------------------------------------------------------------------------ > > [INFO] Total time: 1 second > > [INFO] Finished at: Thu Sep 03 13:02:58 BST 2009 > > [INFO] Final Memory: 3M/17M > > [INFO] > ------------------------------------------------------------------------ > > > > I verified that maven-compiler-plugin does exist in the shared internal > repository. In the ROOT pom.xml, I even set the version of the plugin. > > > > <reporting> > > <plugins> > > <plugin> > > > <groupId>org.apache.maven.plugins</groupId> > > > <artifactId>maven-compiler-plugin</artifactId> > > <configuration> > > > <source>1.6</source> > > > <target>1.6</target> > > > <encoding>UTF-8</encoding> > > </configuration> > > </plugin> > > > > > > So what gives? > > > > TIA > > > > > > > > -- > > Peter Pilgrim | E-Channel Services Technical Lead, Products & Markets > > Lloyds TSB Bank plc, Corporate Markets, 10 Gresham Street, London, EC2V > 7AE, UK > > ' +44 (0)207 158 6135 | ( +44 (0)1234 567 8901 > > * [email protected] > > * www.lloydstsbcorporatemarkets.com > <http://www.lloydstsbcorporatemarkets.com/> > > > > > > This e-mail is private and confidential and may contain privileged material. > If you have received this e-mail in error, please notify the sender and > delete it immediately. You must not copy, distribute, disclose or use any of > the information in it or any attachments. > > Lloyds TSB Bank plc. Registered Office: 25 Gresham Street, London EC2V 7HN. > Registered in England and Wales, number 2065. Telephone: 020 7626 1500. > > Lloyds TSB Scotland plc. Registered Office: Henry Duncan House, 120 George > Street, Edinburgh EH2 4LH. Registered in Scotland, number 95237. Telephone: > 0131 225 4555. > > Cheltenham & Gloucester plc. Registered Office: Barnett Way, Gloucester GL4 > 3RL. Registered in England and Wales, number 2299428. Telephone: 01452 372372. > > Cheltenham & Gloucester Savings is a division of Lloyds TSB Bank plc. > Lloyds TSB Bank plc, Lloyds TSB Scotland plc and Cheltenham & Gloucester plc > are authorised and regulated by the Financial Services Authority. > > Lloyds Banking Group plc. Registered Office: Henry Duncan House, 120 George > Street, Edinburgh EH2 4LH. Registered in Scotland, number 95000. Telephone: > 0131 225 4555. > > Lloyds Banking Group plc is a signatory to the Banking Codes. > > Telephone calls may be monitored or recorded. > > > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > ______________________________________________________________________ _________________________________________________________________ Get back to school stuff for them and cashback for you. http://www.bing.com/cashback?form=MSHYCB&publ=WLHMTAG&crea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1
