Re: [M2]Cannot find jxr plugin
may be this plugin needs to be updated for maven 2.0.4. I saw there is a version Beta-2 for this plugin on codehaus but there is a beta 1 in ibiblio. Which one is in your repository ? may be comes from here... (you can check the versions here: http://www.ibiblio.org/pub/packages/maven2/org/codehaus/mojo/jxr-maven-plugin/ http://snapshots.maven.codehaus.org/maven2/org/codehaus/mojo/jxr-maven-plugin/ ) But a NoClassDefFoundException should not be raised for such problem (well in my opinion)). Did you start maven from the same folder as you did when you had jxr-maven-plugin in your pom ? Sebastien Cesbron a écrit : Sounds strange because if I remove the "jxr-maven-plugin" from my reporting section in my pom.xml file, my site goal works fine. Is it possible that there is some incompabilities between plugin versions ? seb On 4/26/06, Boris Lenzinger <[EMAIL PROTECTED]> wrote: Do you have the maven-model-2.0.4.jar in your classpath ? I think this is your problem here. this is not related to jxr but to site building I would say and your classpath is incorrect (not sure but almost ;) ) or you execute maven from a path that does not allow to access to folder lib of maven... Sebastien Cesbron a écrit : Thanx for your help, I now have this exception when I launche the site goal. If I just launch jxr:jxr everything is ok. Do you have any idea on what the problem is ? java.lang.NoClassDefFoundError: org/apache/maven/model/ReportPlugin at org.apache.maven.plugin.jxr.JxrReport.init(JxrReport.java:281) at org.apache.maven.plugin.jxr.JxrReport.executeReport(JxrReport.java:157) at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:117) at org.apache.maven.plugins.site.SiteMojo.generateReportsPages(SiteMojo.java:802) at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:301) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:589) 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) On 4/26/06, Boris Lenzinger <[EMAIL PROTECTED]> wrote: Have you checked codehaus ? here is my section about jxr: org.codehaus.mojo jxr-maven-plugin Sebastien Cesbron a écrit : Hi, I try to use jxr plugin with maven 2.0.4 but I cannot find it in the maven plugins repository : does somebody know why ? Seb - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2]Cannot find jxr plugin
Have you checked codehaus ? here is my section about jxr: org.codehaus.mojo jxr-maven-plugin Sebastien Cesbron a écrit : Hi, I try to use jxr plugin with maven 2.0.4 but I cannot find it in the maven plugins repository : does somebody know why ? Seb - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with surefire report plugin
try setting lang to en_US (add those to the command line): -Duser.language=en -Duser.country=US it was the workaround and it should still work ;) Sebastien Cesbron a écrit : Hi, I am using Maven 2.0.4 and I am trying to add some reports on my site. I first tried to use the surefire report plugin. I have a NumberFormatException when I try to launch the surefire-report report goal. In the archive I saw this problem and it seems to be solved. But I am using the latest surefire-plugin 2.1.3 and surefire-report-plugin 2.0 and I still have the problem Any idea ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Null pointer when using site goal
I use maven 2.0.2 with this jdepend: org.codehaus.mojo jdepend-maven-plugin 2.0-beta-1-SNAPSHOT and I have no problem. May be it is a little bit old but give it a try to check if you still have the problem with this one. Gianfranco Oldani a écrit : Hello, I experiment a NullPointer exception when I launch : mvn site What I missed? Here is the content of the section of my pom.xml if it can help. If I remove that section the NullPointer exception disapear also and the site is generated. target/site jdepend jdepend 2.9.1 Thnaks for help. Gianfranco OLDANI Mob: +79602726351 _ Faites de MSN Search votre page d'accueil: Toutes les réponses en un clic! http://search.msn.ch/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Location of cobertura-maven-plugin?
I also use 2.0.2 with no problem. Here is my section for the cobertura plugin: org.codehaus.mojo cobertura-maven-plugin 2.0-20060130.214008-3 I have moved my cobertura plugin to check if it downloads the plugin or not and it succeed so it should be the same for you ;) [EMAIL PROTECTED] a écrit : I am using version 2.0.2! On 4/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I changed the version number of the plug-in now I get a different error. All of my configuring I am getting from the doc. at codehaus. But here is the new error. mvn cobertura:cobertura [INFO] Searching repository for plugin with prefix: 'cobertura'. Downloading: http://snapshots.maven.codehaus.org/maven2/org/codehaus/mojo/cobertura-maven-plugin/2.0/cobertura-maven-plugin-2.0.pom [WARNING] Unable to get resource from repository snapshots (http://snapshots.maven.codehaus.org/maven2 ) Downloading: http://repo1.maven.org/maven2/org/codehaus/mojo/cobertura-maven-plugin/2.0/cobertura-maven-plugin-2.0.pom [WARNING] Unable to get resource from repository central ( http://repo1.maven.org/maven2) Downloading: http://repo1.maven.org/maven2/org/codehaus/mojo/cobertura-maven-plugin/2.0/cobertura-maven-plugin-2.0.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2 ) [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: org.codehaus.mojo ArtifactId: cobertura-maven-plugin Version: 2.0 Reason: Unable to download the artifact from any repository org.codehaus.mojo:cobertura-maven-plugin:pom:2.0 from the specified remote repositories: central (http://repo1.maven.org/maven2), snapshots (http://snapshots.maven.codehaus.org/maven2 ) [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 3 seconds [INFO] Finished at: Fri Apr 21 10:31:49 CDT 2006 [INFO] Final Memory: 2M/126M [INFO] Thanks! On 4/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I still get an error for finding this plug-in: [INFO] Searching repository for plugin with prefix: 'cobertura'. [INFO] Ignoring available plugin update: 2.0-20060331.055400-6 as it requires Maven version 2.0.3-SNAPSHOT [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.codehaus.mojo:cobertura-maven-plugin' does not exist or no valid version could be found [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: < 1 second [INFO] Finished at: Fri Apr 21 10:21:51 CDT 2006 [INFO] Final Memory: 2M/126M [INFO] Is there something I am missing here? On 4/20/06, Mark Hewett <[EMAIL PROTECTED] > wrote: No problem. I just tried it out and have a very nice report, so many thanks to the people working on this plugin! I should have mentioned that you can add the following to your POM to enable the snapshot repository, in case you haven't done this before. snapshots http://snapshots.maven.codehaus.org/maven2 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Location of cobertura-maven-plugin?
could you post the version you have set in your pom ? I think the error is coming from this point. May be check the versions that are available in the metadata.xml file in the plugin folder and use it in your tag version for the plugin. [EMAIL PROTECTED] a écrit : I changed the version number of the plug-in now I get a different error. All of my configuring I am getting from the doc. at codehaus. But here is the new error. mvn cobertura:cobertura [INFO] Searching repository for plugin with prefix: 'cobertura'. Downloading: http://snapshots.maven.codehaus.org/maven2/org/codehaus/mojo/cobertura-maven-plugin/2.0/cobertura-maven-plugin-2.0.pom [WARNING] Unable to get resource from repository snapshots ( http://snapshots.maven.codehaus.org/maven2) Downloading: http://repo1.maven.org/maven2/org/codehaus/mojo/cobertura-maven-plugin/2.0/cobertura-maven-plugin-2.0.pom [WARNING] Unable to get resource from repository central ( http://repo1.maven.org/maven2) Downloading: http://repo1.maven.org/maven2/org/codehaus/mojo/cobertura-maven-plugin/2.0/cobertura-maven-plugin-2.0.pom [WARNING] Unable to get resource from repository central ( http://repo1.maven.org/maven2) [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: org.codehaus.mojo ArtifactId: cobertura-maven-plugin Version: 2.0 Reason: Unable to download the artifact from any repository org.codehaus.mojo:cobertura-maven-plugin:pom:2.0 from the specified remote repositories: central (http://repo1.maven.org/maven2), snapshots (http://snapshots.maven.codehaus.org/maven2) [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 3 seconds [INFO] Finished at: Fri Apr 21 10:31:49 CDT 2006 [INFO] Final Memory: 2M/126M [INFO] Thanks! On 4/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I still get an error for finding this plug-in: [INFO] Searching repository for plugin with prefix: 'cobertura'. [INFO] Ignoring available plugin update: 2.0-20060331.055400-6 as it requires Maven version 2.0.3-SNAPSHOT [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.codehaus.mojo:cobertura-maven-plugin' does not exist or no valid version could be found [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: < 1 second [INFO] Finished at: Fri Apr 21 10:21:51 CDT 2006 [INFO] Final Memory: 2M/126M [INFO] Is there something I am missing here? On 4/20/06, Mark Hewett <[EMAIL PROTECTED]> wrote: No problem. I just tried it out and have a very nice report, so many thanks to the people working on this plugin! I should have mentioned that you can add the following to your POM to enable the snapshot repository, in case you haven't done this before. snapshots http://snapshots.maven.codehaus.org/maven2 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Location of cobertura-maven-plugin?
Which version of maven are you using ? Message is saying that this plugin requests maven 2.0.3 SNAPSHOT. Is it the version you are using ? Else check which other versions are available on the site and change the version number of your plugin (if you didn't specify it, then supply a version number). FYI, I use maven 2.0.2 and I have in my repository: 2.0-20060130.214008-3 which is workibng fine. [EMAIL PROTECTED] a écrit : I still get an error for finding this plug-in: [INFO] Searching repository for plugin with prefix: 'cobertura'. [INFO] Ignoring available plugin update: 2.0-20060331.055400-6 as it requires Maven version 2.0.3-SNAPSHOT [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.codehaus.mojo:cobertura-maven-plugin' does not exist or no valid version could be found [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: < 1 second [INFO] Finished at: Fri Apr 21 10:21:51 CDT 2006 [INFO] Final Memory: 2M/126M [INFO] Is there something I am missing here? On 4/20/06, Mark Hewett <[EMAIL PROTECTED]> wrote: No problem. I just tried it out and have a very nice report, so many thanks to the people working on this plugin! I should have mentioned that you can add the following to your POM to enable the snapshot repository, in case you haven't done this before. snapshots http://snapshots.maven.codehaus.org/maven2 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] installing plugins from codehaus repository
Did you try to put a version in your plugin section ? 1.0-SNAPSHOT If I understand well, you have already installed a maven-tomcat-plugin (from compilation of svn) So may be maven sees that you have a tomcat plugin in your repository and does not search for another since you already have it. May be the version can force it to lookup to remote repository and then force the download (since your version should not match this version). If your version (your compiled one) is larger than 1.0-SNAPSHOT, may be try with the syntax [1.0-SNAPSHOT] I've read in previous threads that this points to a uniq version. If your version is greater, then you will never download the plugin until a new version is out ;) Just an idea... Jakub Pawlowicz a écrit : Hi! I would like to install Codehaus tomcat-maven-plugin into my local repository. One way is to download the sources from subversion repository, compile them and install with the 'mvn install:install', which works like a charm (but it's not automatic, though). AFAIK the other way is to use Codehaus snapshots repository (http://snapshots.maven.codehaus.org/maven2/). So how to force maven to download the tomcat-maven-plugin from the Codehaus repository? Do I have to add it as a dependency? I've added section to my settings.xml, but it doesn't work for me. Here are excerpts from my settings.xml and pom.xml: settings.xml: ... codehaus central http://snapshots.maven.codehaus.org/maven2/ ... pom.xml: ... org.codehaus.mojo tomcat-maven-plugin ... Regards, Jakub - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: surefire report plugin
I use this for my surefire-report plugin: org.codehaus.mojo surefire-report-maven-plugin [EMAIL PROTECTED] a écrit : Sorry to beat a dead horse. I added this as a snapshot repository but I get a bunch of problems with dependent projects not being found. If I dont' define a version number I get the following error when I run site:site org.apache.maven.plugins maven-surefire-report-plugin [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-surefire-report-plugin' does n ot exist or no valid version could be found [INFO] If I define the version number to be 2.0-SNAPSHOT: org.apache.maven.plugins maven-surefire-report-plugin 2.0-SNAPSHOT Then I get the following error: [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] A required plugin was not found: Plugin could not be found - check that t he goal name is correct: Unable to download the artifact from any repository Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.maven.plugins -DartifactId=mav en-surefire-report-plugin \ -Dversion=2.0-SNAPSHOT -Dpackaging=maven-plugin -Dfile=/path/to/file org.apache.maven.plugins:maven-surefire-report-plugin:maven-plugin:2.0-SNAPSHO T from the specified remote repositories: Maven Snapshots (http://snapshots.maven.codehaus.org/maven2/), central (http://repo1.maven.org/maven2), apache-plugins (http://cvs.apache.org/repository/), codehaus-plugins (http://dist.codehaus.org/), ibiblio (http://www.ibiblio.org/maven2), cargo m2 snapshot repository (http://cargo.codehaus.org/dist2-snapshot), dotsrc (http://mirrors.dotsrc.org/maven2/) org.apache.maven.plugins:maven-surefire-report-plugin:maven-plugin:2.0-SNAPSHO T from the specified remote repositories: Maven Snapshots (http://snapshots.maven.codehaus.org/maven2/), central (http://repo1.maven.org/maven2), apache-plugins (http://cvs.apache.org/repository/), codehaus-plugins (http://dist.codehaus.org/), ibiblio (http://www.ibiblio.org/maven2), cargo m2 snapshot repository (http://cargo.codehaus.org/dist2-snapshot), dotsrc (http://mirrors.dotsrc.org/maven2/) [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 10 seconds [INFO] Finished at: Wed Apr 19 17:39:08 PDT 2006 [INFO] Final Memory: 10M/19M [INFO] Any help would be GREATLY appreciated. Thanks! -j --- Justin Fung [EMAIL PROTECTED] Sr. Analyst, Business Systems IT Banking Systems, e-Business HSBC Bank Canada http://www.hsbc.ca p: (604) 643-6605 f: (604) 643-6727 "Carlos Sanchez" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 04/12/2006 01:47 PM Please respond to "Maven Users List" To: "Maven Users List" cc: Subject:Re: surefire report plugin Our Ref: Your Ref: http://cvs.apache.org/maven-snapshot-repository/ On 4/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi Carlos, Thanks I've found the relevant JIRA: http://jira.codehaus.org/browse/MSUREFIREREP-6 Are there plans to update this? I'd far rather grab from a repository or snapshot repository than get code from svn and compile myself... Please forgive me if my understanding of how issues/bug management works here. Thanks, -j --- Justin Fung [EMAIL PROTECTED] Sr. Analyst, Business Systems IT Banking Systems, e-Business HSBC Bank Canada http://www.hsbc.ca p: (604) 643-6605 f: (604) 643-6727 "Carlos Sanchez" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 04/12/2006 10:55 AM Please respond to "Maven Users List" To: "Maven Users List" cc: Subject:Re: surefire report plugin Our Ref: Your Ref: there's already a jira issue for that (fixed in svn i think) On 4/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I noticed when there are test failures in the surefire report plugin, that it gives a build error and kicks out without finishing up and generating the remaining reports. Is there a way to have it continue even though the surefire test fails? Or am I missing the point? I tried this, but it didn't work: org.codehaus.mojo surefire-repo
Re: Anybody running m2 and JUnit 4.0?
Is it related to surefire and junit 4 ? then check this thread [M2] surefire plugin and JUnit 4 (was on April, 10th) Ian Shafer a écrit : I tried this, using the JUnit4TestAdapter, but I get this exception: java.lang.IllegalArgumentException: object is not an instance of declaring class I'm using Java 1.5. Ian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: skipping test
Check mails of yesterday in the ml there is the answer I think (I'm pretty sure in fact ;) ) Luca Gmail a écrit : While executing mvn deploy i would like to skip test. Is it possible? Tnx, Luca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: M2 dependency cause null pointer
did you try to use a repository instead to check if it fails the same way ? I'm using download way and it is working fine. I've tried with the system syntax way and I see that maven is downloading the pom file. May be you are missing it. Building the site and compilation is working fine for me if I use compile or system scope (maven 2.0.2). Here is my dependency section for log4j to test the download way (avoids you to rewrite it just copy and paste it): log4j log4j 1.2.13 compile Are you sure it is the generation of the site that causes a nullpointer exception and not when it is running a unit test ? May be it is related to your code. I say this because: * if compilation fails, building the site will remove any interaction with your code (starting unit tests, coverage, etc) and you have no exception. Note that this means that building the site does require log4j version 1.2.13. * if compilaton succeeds, then site cannot be built and a NullPointerException is raised. And what is the difference ? interaction with your code. I would say that the problem is coming from your code (but may be I'm worng). Could you post the stack trace ? I'm not qualified if this a maven error but may be some others on the list are (I don't think that full stack is useful but 50 first lines could be useful so we can see where it is thrown). And we can see at which level the exception happens. Amund Mortensen a écrit : Hey, I'm having a problem with M2, hope you guys can help me. When I run mvn site I get a null pointer exception, mvn compile works great. This is when I got this section in my pom.xml: log4j Logger 1.2.13 system /var/maven/shelter/src/main/java/trunk/resources/log4j-1.2.13.jar When I remove this section, mvn site work great. But mvn compile does not work, understanderbli, complains about the log4j package. So.. What could be the cause of the null pointer? Thanks. -- - Amund. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDOM et java.lang.NoClassDefFoundError
You are probably missing a dependency (with scope test I guess) in your pom file. This dependency should be related to jaxen. Pierre Jacquot a écrit : When i use this javacode in a maven project : setXPathClass(Class.forName(className)); where className=org.jdom.xpath.JaxenXPath i have this error : java.lang.NoClassDefFoundError: org/jaxen/NamespaceContext at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at org.jdom.xpath.XPath.newInstance(XPath.java:128) at org.jdom.xpath.XPath.selectNodes(XPath.java:349) at org.jtestcase.core.digester.XQueryParserImpl_Jaxen.getElements(XQueryParserImpl_Jaxen.java:79) at org.jtestcase.core.digester.JTestCaseDigester.getTestCaseGlobalParams( JTestCaseDigester.java:828) at org.jtestcase.JTestCase.getGlobalParams(JTestCase.java:240) at org.jtestcase.JTestCase.getGlobalParamLocale(JTestCase.java:278) at org.jtestcase.JTestCase.(JTestCase.java:155) at com.test_junit.app.CalculatorTest.(CalculatorTest.java:53) at com.test_junit.app.CalculatorTest.suite(CalculatorTest.java:76) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.maven.surefire.battery.JUnitBattery.processTestClass( JUnitBattery.java:130) at org.apache.maven.surefire.battery.JUnitBattery.( JUnitBattery.java:81) at org.apache.maven.surefire.SurefireUtils.instantiateBattery( SurefireUtils.java:63) at org.apache.maven.surefire.Surefire.instantiateBatteries( Surefire.java:262) at org.apache.maven.surefire.Surefire.run(Surefire.java:140) at org.apache.maven.surefire.Surefire.run(Surefire.java:87) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.maven.surefire.SurefireBooter.runTestsInProcess( SurefireBooter.java:313) at org.apache.maven.surefire.SurefireBooter.run(SurefireBooter.java:221) at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:371) at org.apache.maven.plugin.DefaultPluginManager.executeMojo( DefaultPluginManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:534) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle (DefaultLifecycleExecutor.java:475 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle( DefaultLifecycleExecutor.java:891) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle (DefaultLifecycleExecutor.java:734) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:525) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle (DefaultLifecycleExecutor.java:475 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( DefaultLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures (DefaultLifecycleExecutor.java at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( DefaultLifecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) 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) Where the error come from? Why the JDOM package works in Eclipse but doesn't in Maven? How resolve the problem ? Thaks for anyone who reads me. Pierre - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: issue with jetty plugin????
I've read somewhere (cannot remember where) the server must be stopped via Ctrl-C...There is no other way from what I remember. I start jetty using the command line with jetty:run. The command line does not give me back the control and to stop it, I must use Ctrl-C. What is the option -P ? raja bangaru a écrit : Hi guys, I started the jetty plugin using the command maven jetty:run now how do i need to stop it?? When i start the jboss server..i'm getting the error that 8080 port is already in use... it might be getting used by jetty.. so can anyone tell me how to stop the jettly i dont find any goals for stopping jetty in jetty plugin when i run jetty -P Thanks in advance... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Exceptions when executing the surefire-report-maven-plugin
Hi Thorsten, I understood it was the plugin that was generating the file that could not be parsed. But may be it can be interesting to check where the characters are. It can be strings extracted from your code. For instance you get a method name with this char or a classname with this char in the xml file, then you can consider to check the source file. If it is somewhere else, I have no idea (may be developpers of the plugin will have some ;) ). Since I'm not a surefire developer, it is possible that what I say is not right but it sounds very strange to me that the plugins introduces forbidden characters. And a last remark: are your files created under windows ? I see that you have windows path but if file is created under linux, may be you could encounter problems with some characters (I had such a problem with termination character a long time ago...). Hope this will help you to understand what your problem can be. Boris Thorsten Heit a écrit : -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Boris, Some tracks may be about your problem: * Do you an IDE to edit your files ? If not, Eclipse detects "unusual" characters and may be it could be helpful here. I know that I sometimes generated special characters with a key combination that I've never understood and eclipse was detecting them at once. Yes, but the XML files the plugin complains about are generated by surefire itself, not by me.. * I guess you use local as en_US since I see this: Generate an index file for the English version ? * Do you have a special local set when writing your files ? I'm using "-Xmx256m -Duser.language=en -Duser.country=US" in MAVEN_OPTS, that's all. * If you make a checkout of the code, do you have special options when checking out ? * If you still have the faulty files (xml ones I mean) may be you can launch under cygwin (you are under windows from what I see): cat -A file which will show you all characters in the file and may be you can detect some undesired characters... See above: The files are generated by surefire itself, not by me.. * you say that some files "do not work". Tests are failing ? they were running fine on another machine ? if yes, how were they ran ? manually ? from an ide ? Oh, no, that's unfortunately normal: Some of our developers should be beaten because their unit tests don't work anymore for some unknown reason... Regards Thorsten -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (MingW32) iD8DBQFELAaTQvObkgCcDe0RAqwTAKCwb2ZPBEus38aW24d+uNJhpJf+dgCg6yLn EnctxC5Vdg1MGTGBD5Pwoc8= =WZoO -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Clover Plugin
Have a look here: http://mavenbook.xwiki.com/xwiki/bin/view/Clover%20Plugin%20v1/9%20released and search license in the page. They point out a property maven.clover.license.path (this is from 2005 so I hope it is not out of date) I don't know if it is working since I do not use Clover but it can be a track. Aaron Freeman a écrit : I was looking into using Clover at my company, so I got an evaluation license from there web site. I wanted to use it with the Maven Clover plugin, but I can't figure out how to specify the license file. How is this supposed to be done? I couldn't really find much on the net about it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to generate html test reports with maven-surefire-plugin
You don't find the html files or you don't see them in the site ? I had the problem that the reports were not visible in the site but the html report was in the folder. My section for the reporting looks like: org.codehaus.mojo surefire-report-maven-plugin Venkatagopalaraju a écrit : Dear Maven Users, I am using maven-surefire-plugin in my pom.xml. When I am trying to generate test reports in the form of html, it is generating in Plain Text and Xml format. Could you please let me know, what I need to do for generating html reports? Thanks & Regards Gopal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Jasper & Jetty
I'm working with Jetty6 plugin and each time I execute the goal run on maven-jetty6-plugin, it tries to download: * jasper-compiler-5.5.15.pom * jasper-runtime-5.5.15.pom but none of them are available on any repository. Since it sometimes blocks startup of jetty (until 1 minute I think), I find it boring (sometimes it just passes and ignoring the problem). Anyone knowns why those files are not available ? Since repositories are here to supply this file, I don't want to build the resource manually (to prevent an answer saying that I could just generate them ;) ) Thanks in advance. Boris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Exceptions when executing the surefire-report-maven-plugin
Some tracks may be about your problem: * Do you an IDE to edit your files ? If not, Eclipse detects "unusual" characters and may be it could be helpful here. I know that I sometimes generated special characters with a key combination that I've never understood and eclipse was detecting them at once. * I guess you use local as en_US since I see this: Generate an index file for the English version ? * Do you have a special local set when writing your files ? * If you make a checkout of the code, do you have special options when checking out ? * If you still have the faulty files (xml ones I mean) may be you can launch under cygwin (you are under windows from what I see): cat -A file which will show you all characters in the file and may be you can detect some undesired characters... * you say that some files "do not work". Tests are failing ? they were running fine on another machine ? if yes, how were they ran ? manually ? from an ide ? About the plugin, I use it "as it is" so I can't help you about configuration. From what I've seen (I'm not an experienced user !) I understand that running unit tests consist in executing each test one by one and successful build for the plugin means that it can reach the end of the run, not that there is no failure... Hope that one of the items can help. Boris Thorsten Heit a écrit : -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello list, when executing "mvn site" using the snapshot version of the surefire-report-maven-plugin, I get two exceptions on my console window: org.codehaus.mojo surefire-report-maven-plugin 2.0-beta-2-SNAPSHOT (...) [INFO] Generate "JDepend" report. [INFO] Generate "JavaNCSS Report" report. [DEBUG] Calling NCSSExecuter with src: c:\devel\base-maven\src\main\java [DEBUG] Calling NCSSExecuter with output : c:\devel\base-maven\target\site\javancss-raw-report.xml [INFO] Generate "Maven Surefire Report" report.java.lang.Exception: Failure to parse file at: c:\devel\base-maven\target\surefire-reports\TEST-com.xtramind.common.config.test.DefaultConfigManagerTest.xml at org.codehaus.mojo.surefire.ReportTestSuite.(ReportTestSuite.java:66) at org.codehaus.mojo.surefire.SurefireReportParser.parseXMLReportFiles(SurefireReportParser.java:49) at org.codehaus.mojo.surefire.SurefireReportGenerator.doGenerateReport(SurefireReportGenerator.java:44) at org.codehaus.mojo.surefire.SurefireReportMojo.executeReport(SurefireReportMojo.java:77) at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:98) at org.apache.maven.plugins.site.SiteMojo.generateReportsPages(SiteMojo.java:802) at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:301) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:531) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) 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.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x8) was found in the element content of the document. at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:215) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLError
Re: Does maven2 support junit-test-report now?
have you checked the surefire-report-maven-plugin ? I'm using it and it is working fine. (maven 2.0.2) org.codehaus.mojo surefire-report-maven-plugin Take care that your local is en_US else you will have an exception raised. There are threads in the ml about this. Regards Boris Allen Young a écrit : If yes, how can I use this report? If no, will it be supported in later version? When? Thanks. Regards Allen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Maven Generated Reports
1/ I have used your pom file to build my project. I have the same error. Good news ;) 2/ Now I've commented your repositories and change your plugin repositories with my list (find it below) and it is working. Good news too ;) 3/ I have used the plugins jdepend, jxr, taglist (I will add it to my project, looks interesting ;) ), (findbugs and pmd produced a nullpointerexception but I'm sure I saw the pmd working but that is another story). I let it to you to compare your pluginrepositories and mine to ckeck differences. Just one point: I had noticed that repositories could interfer with pluginrepositories but I didn't fully understand the difference between repository and pluginrepositories (I'm newbie to Maven...I use it only from wednesday...). If anyone has a link to explain the difference, I'm really interested in. Here is the pluginrepositories section. central Maven Plugin Repository http://repo1.maven.org/maven2 default false never CodeHaus http://snapshots.maven.codehaus.org/maven2 default true false never mortbay-repo mortbay-repo http://www.mortbay.org/maven2/snapshot true false never I attach the pom file (with information that interests you) if you want the whole file. Tell me if it working or not. Boris Joern Huxhorn a écrit : Boris Lenzinger wrote: I'm sure I has this problem too but I can't remember how I fixed it. Could you post your pom.xml please ? The relevant parts of my pom file look like this: bpinteractive local bpinteractive repository default file:/nix/mvn_repos true Maven Snapshots http://snapshots.maven.codehaus.org/maven2 true true central Maven Repository [EMAIL PROTECTED] default http://repo1.maven.org/maven2 false mirror Maven Repository [EMAIL PROTECTED] default http://www.ibiblio.org/maven2 false bpinteractive local bpinteractive repository default file:/nix/mvn_repos true never Maven Snapshots http://snapshots.maven.codehaus.org/maven2 true daily true daily lsuedu Maven Plugin [EMAIL PROTECTED] http://ibiblio.lsu.edu/main/pub/packages/maven2 default false never central Maven Plugin [EMAIL PROTECTED] http://repo1.maven.org/maven2 default false never mirror Maven Plugin [EMAIL PROTECTED] http://www.ibiblio.org/maven2 default false never maven-javadoc-plugin org.codehaus.mojo taglist-maven-plugin TODO,@todo,XXX org.codehaus.mojo jxr-maven-plugin 2.0-beta-2-SNAPSHOT org.apache.maven.plugins maven-pmd-plugin /rulesets/basic.xml /rulesets/controversial.xml xml true utf-8 100 1.5 org.apache.maven.plugins maven-compiler-plugin 1.5 1.5 true true I also tried false and never for the codehaus-repos but it didn't help.This excerpt is from a parent pom file thats used by all child-poms. Thanks, Joern. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PR
Re: [M2] Maven Generated Reports
I'm sure I has this problem too but I can't remember how I fixed it. Could you post your pom.xml please ? Joern Huxhorn a écrit : I keep getting the following error message whenever I try to use the jdepend-plugin as described below: [INFO] Error building POM (may not be this project's POM). Project ID: org.codehaus.mojo:mojo Reason: Error getting POM for 'org.codehaus.mojo:mojo' from the repository: Error transferring file org.codehaus.mojo:mojo:pom:6 from the specified remote repositories: Maven Snapshots (http://snapshots.maven.codehaus.org/maven2), central (http://repo1.maven.org/maven2), mirror (http://www.ibiblio.org/maven2), lsuedu (http://ibiblio.lsu.edu/main/pub/packages/maven2), [local repos] (file:/nix/mvn_repos) Any ideas how to fix this? Joern. Boris Lenzinger wrote: I have a working setup for jdepend. Here are my sections: org.codehaus.mojo jdepend-maven-plugin 2.0-beta-1-SNAPSHOT central Maven Plugin Repository http://repo1.maven.org/maven2 default false never CodeHaus http://snapshots.maven.codehaus.org/maven2 default true false never Hope this helps. Boris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Maven Generated Reports
I have a working setup for jdepend. Here are my sections: org.codehaus.mojo jdepend-maven-plugin 2.0-beta-1-SNAPSHOT central Maven Plugin Repository http://repo1.maven.org/maven2 default false never CodeHaus http://snapshots.maven.codehaus.org/maven2 default true false never Hope this helps. Boris Andreas Guther a écrit : Wayne, What are your setting for plugin repositories to get the jdepend plugin? Andreas Guther www.markettools.com Ph. (415) 462-2092 -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Saturday, March 18, 2006 7:54 PM To: Maven Users List Subject: Re: [M2] Maven Generated Reports No such page exists, that I have ever seen... Here's the reporting section from one of my poms, though: org.apache.maven.plugins maven-project-info-reports-plugin org.apache.maven.plugins maven-javadoc-plugin org.codehaus.mojo jxr-maven-plugin org.codehaus.mojo jdepend-maven-plugin 2.0-beta-1-SNAPSHOT org.codehaus.mojo findbugs-maven-plugin 1.0-SNAPSHOT org.codehaus.mojo surefire-report-maven-plugin org.codehaus.mojo javancss-maven-plugin 2.0-alpha1-SNAPSHOT org.codehaus.mojo taglist-maven-plugin org.apache.maven.plugins maven-checkstyle-plugin org.apache.maven.plugins maven-pmd-plugin There is a elements for many of the plugins, and I'm using a few of them... but in general, reports work fine with no configuration settings, so you can just use the default. Any one else using other plugins? Obviously Cobertura is available if you are using Maven 2.0.3, but any others? HTH. Wayne On 3/18/06, Andreas Guther <[EMAIL PROTECTED]> wrote: Hi, I am searching for an overview of the available Maven 2 report plug-ins besides the standard ones. I found an example for pmd but I wonder if there is a somewhere a collection of available reports like JUnit, JDepend, etc. with examples for configuring them. Of course I could look into the code of each plug-in... Just wondering if there is an info page. Thanks in advance for any hint. Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Maven Generated Reports
I Use cobertura plugin with Maven 2 and it works fine. org.codehaus.mojo cobertura-maven-plugin 2.0-20060130.214008-3 (I had to add this in the pluginRepositories section): CodeHaus http://snapshots.maven.codehaus.org/maven2 default true false never Reports generated are great really. About the numbers, I guess Rune is from Norway with ".no" suffix ? Boris Wayne Fay a écrit : I just know the other guys who had the same problem were German. I suppose I should have said "European-style numbers" ? Or what is it called when you use period for thousands and comma for decimal place? As for Cobertura, just give it a couple weeks for Maven 2.0.3 to be out and official and then Cobertura should follow shortly thereafter, without needing to check anything out of SVN etc... You should be able to simply add it in . Wayne On 3/18/06, Rune Flobakk <[EMAIL PROTECTED]> wrote: Wayne Fay wrote: No that's because the plugin doesn't understand your German-style numbers. ;-) German-style, eh? Oh well, at least you didn't call it Swedish-style, now that would have been a serious insult ;-) This was discussed in an email thread a few weeks ago... Subject [m202] NumberFormatException when using the surefire report plugin ## This error is indeed caused by the german locale. Simply change the locale that Maven uses (on Windows): set MAVEN_OPTS=-Duser.language=en -Duser.country=US ## Thanks for the info! Rune Wayne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A required plugin was not found: Plugin could not be found
I fixed it at last... In case someone met the same problem as me, here is how I did: I was missing pluginRepositories in my pom file. Thanks to a discussion with Wayne Fay, he told me he was using repository in his pom file. I checked what this file could have as tags and found this pluginRepository. Here is my section: central Maven Plugin Repository http://repo1.maven.org/maven2 default false never CodeHaus http://snapshots.maven.codehaus.org/maven2 default true false never I got cobertura, jdepend and changes that are working fine (well seems so). Here is my section for the reporting plugins: maven-javadoc-plugin org.codehaus.mojo jxr-maven-plugin org.codehaus.mojo surefire-report-maven-plugin org.codehaus.mojo cobertura-maven-plugin 2.0-20060130.214008-3 org.codehaus.mojo changes-maven-plugin 2.0-beta-2-SNAPSHOT changes-report org.codehaus.mojo jdepend-maven-plugin 2.0-beta-1-SNAPSHOT Hope this can help someone and save its time ;) Boris Boris Lenzinger wrote: Cobertura plugin is not finished but I guess it is working for a single project no ? There are some versions released. I'll check the issues you pointed. Anyway, I have the same problem with jdepend-maven-plugin and changes-maven-plugin. David Sag wrote: The cobertura plugin is not finished yet. I recommend you pop over to http://jira.codehaus.org/browse/MCOBERTURA-2 and http://jira.codehaus.org/browse/MCOBERTURA-5 and vote on those issues Kind regards, Dave Sag Boris Lenzinger <[EMAIL PROTECTED]> wrote on 15-03-2006 11:03:35: > Hi, > > I'm newbie in Maven and I'm exploring this great tool. I'm using it for > a personnal project but I encounter a problem that I cannot fix. I've > searched on the ML and googled with no result on this problem. > > I'm using Maven 2.0.2. > > I want to generate code coverage reports on the project (and some other > like jdepend, changes, etc). I saw cobertura-maven-plugin and wanted to > use it. > In the central repository, it seems to be working with Maven1 only. I > get a NullPointerException that is raised which is caracteristic of > trying to use a plugin of Maven1 with Maven2 no ? I saw some mails about > this in the ML saying plugins were not up-to-date. > > I've searched for a repository that could have the plugins I'm > interested in for Maven2. I found one here > (http://snapshots.maven.codehaus.org/maven2). > > I then added to settings.xml a profile where I added the repository. At > last I've set the profile as always active. > Here is the declaration: > > > additional-repository > > > > codehaus > Code Haus snapshots. > http://snapshots.maven.codehaus.org/maven2 > default > > > > > > > additional-repository > > > Declaration in the pom file: > > org.codehaus.mojo > cobertura-maven-plugin > 2.0-20060130.214008-3 > > > Then I execute the command mvn site. > > Maven starts to download the pom file related to the plugin and then say > that it cannot find the plugin. > Here is the exact message: > +-+-+-+-+-+-+-+-+-+ START OF MESSAGE +-+-+-+-+-+-+-+-+-+ > > [INFO] Building Common Classes > [INFO]task-segment: [site] > [INFO] > > Downloading: > http://snapshots.maven.codehaus. > org/maven2/org/codehaus/mojo/cobertura-maven-plugin/2.0- > SNAPSHOT/cobertura-maven-plugin-2.0-20060130.214008-3.pom > 3K downloaded > [INFO] > > [ERROR] BUILD FAILURE > [INFO] > > [INFO] A required plugin was not found: Plugin could not be found - > check that the goal name is correct: Unable to download the artifact > from any repository > > > org.codehaus.mojo:cobertura-maven-plugin:maven-plugin:2.0-20060130.214008-3 > > from the specified remote repositories: > central (http://repo1.maven.org/maven2) > > > org.codehaus.mojo:cobertura-maven-plugin:maven-plugin:2.0-20060130.214008-3 > > from the specified remote repositories: > central
Re: RE : RE : RE : [M202] Nightly site plugin broken?
At last I found a way to make it work... I added: CodeHaus http://snapshots.maven.codehaus.org/maven2 default true false never The problem is I'm not sure of each option is doing :-S But this way it downloads jdepend and produces the report. It also worked for cobertura that has generated a pretty report :-P Still have problems for the changes-maven-plugin (activation and mail references...I'll investigate). Thank you Boris Wayne Fay wrote: I don't use settings.xml. I put those repos etc directly in my pom.xml. And I don't use changes, jdepend, or cobertura. So hopefully someone who is using those plugins can respond better. But I did just add the jdepend plugin to my reporting section, included the version, and poof it was incorporated into my site with no issues. See log below... And here's the entry from my pom.xml: org.codehaus.mojo jdepend-maven-plugin 2.0-beta-1-SNAPSHOT Wayne [INFO] Velocity successfully started. [INFO] snapshot org.codehaus.mojo:jdepend-maven-plugin:2.0-beta-1-SNAPSHOT: checking for updates from dotsrc [INFO] snapshot org.codehaus.mojo:jdepend-maven-plugin:2.0-beta-1-SNAPSHOT: checking for updates from codehaus-plugins [INFO] snapshot org.codehaus.mojo:jdepend-maven-plugin:2.0-beta-1-SNAPSHOT: checking for updates from Maven Snapshots [INFO] snapshot org.codehaus.mojo:jdepend-maven-plugin:2.0-beta-1-SNAPSHOT: checking for updates from ibiblio Downloading: http://snapshots.maven.codehaus.org/maven2//org/codehaus/mojo/jdepend-maven-plugin/2.0-beta-1-SNAPSHOT/jdepend-maven-plugin-2.0-beta-1-20060125.213408-2.pom 1K downloaded Downloading: http://snapshots.maven.codehaus.org/maven2//org/codehaus/mojo/jdepend-maven-plugin/2.0-beta-1-SNAPSHOT/jdepend-maven-plugin-2.0-beta-1-20060125.213408-2.jar 16K downloaded Downloading: http://mirrors.dotsrc.org/maven2//jdepend/jdepend/2.7/jdepend-2.7.pom 146b downloaded Downloading: http://mirrors.dotsrc.org/maven2//jdepend/jdepend/2.7/jdepend-2.7.jar 81K downloaded On 3/15/06, Boris Lenzinger <[EMAIL PROTECTED]> wrote: yes but but how do you use them ? I've added the plugins in the reporting section and in setting.xml added a profile, activated by default, that uses this URL. Now my problem is that I cannot download them. Only pom files are downloaded. How do you do guys to use them ? I've added: additional-repository codehaus Code Haus snapshots. http://snapshots.maven.codehaus.org/maven2 default true false additional-repository Maven download pom files from this but seems to try to download from plugins from http://repo1.maven.org/maven2: A required plugin was not found: Plugin could not be found - check that the goal name is correct: Unable to download the artifact from any repository org.codehaus.mojo:cobertura-maven-plugin:maven-plugin:2.0-20060130.214008-3 from the specified remote repositories: central (http://repo1.maven.org/maven2) org.codehaus.mojo:cobertura-maven-plugin:maven-plugin:2.0-20060130.214008-3 from the specified remote repositories: central (http://repo1.maven.org/maven2) So, how do you do ? I miss something but I cannot understand what :-( Wayne Fay wrote: Oh, there they are! ;-) http://snapshots.maven.codehaus.org/maven2/org/codehaus/mojo/ jdepend, changes, and cobertura, among others... Wayne On 3/15/06, Cabasson Denis <[EMAIL PROTECTED]> wrote: This is definitly the nightly Maven 2 plugins. Change et Jdepend plugins are codehaus plugins so they are in the org.codehaus.mojo directory :) As for the latest site plugin, thx to Olivier for his workaround, it's working just fine for the site generation. I have another issue, with the site:deploy goal. It's now taking the proxies into account, even though my host is in the nonProxyHosts list. Maybe need some fixing? Cheers! Denis -Message d'origine- De : Wayne Fay [mailto:[EMAIL PROTECTED] Envoyé : mercredi 15 mars 2006 16:57 À : Maven Users List Objet : Re: RE : RE : RE : [M202] Nightly site plugin broken? Also I just took a look at the snapshots repo you sent and the jdepend and changes report plugins don't seem to exist: http://snapshots.maven.codehaus.org/maven2/org/apache/maven/plugins/ Those are probably Maven1 plugins that have not yet been ported to M2. Unless someone knows better than me. Happy to be wrong here. Wayne On 3/15/06, Wayne Fay <[EMAIL PROTECTED]> wrote: Just to be sure, since you're a new Maven user, you realize these need to be declared in your pom.xml in the element, right? org.apache.maven.plugins maven-project-info-reports-plugin org.apache.maven.plugins maven-javadoc-plugin And don't bother trying t
Re: RE : RE : RE : [M202] Nightly site plugin broken?
sounds like an excellent explanation ! Wayne Fay wrote: I believe the o.a.m.p plugins are simply owned/created/supported by the Maven team, while org.codehaus.mojo are owned by Codehaus. So you have a different group of people to complain to when things are broken. ;-) :))) Wayne On 3/15/06, Boris Lenzinger <[EMAIL PROTECTED]> wrote: I'm trying to reach plugins in the following folder: http://snapshots.maven.codehaus.org/maven2/org/codehaus/mojo/ What is the difference between this url and yours ? I've read that some plugins where under a maven2 hierarchy but were not for maven2 in fact. Wayne Fay wrote: Also I just took a look at the snapshots repo you sent and the jdepend and changes report plugins don't seem to exist: http://snapshots.maven.codehaus.org/maven2/org/apache/maven/plugins/ Those are probably Maven1 plugins that have not yet been ported to M2. Unless someone knows better than me. Happy to be wrong here. Wayne On 3/15/06, Wayne Fay <[EMAIL PROTECTED]> wrote: Just to be sure, since you're a new Maven user, you realize these need to be declared in your pom.xml in the element, right? org.apache.maven.plugins maven-project-info-reports-plugin org.apache.maven.plugins maven-javadoc-plugin And don't bother trying to use Cobertura until 2.0.3 comes out. Wayne On 3/15/06, Boris Lenzinger <[EMAIL PROTECTED]> wrote: I'm trying to use some plugins (cobertura, jdepend, changes) that are on this site http://snapshots.maven.codehaus.org/maven2 but I cannot configure my environment so it accepts to download both pom files and jar files. It stops after pom saying A required plugin was not found Could you tell me how you configured your environment to download from this site through maven2 please ? I tried with a profile but if it is ok for poms, it then searches for jar on central repository. Thanks in advance. Boris Olivier Lamy wrote: Lucky user ;-) I have found why. My reporting section in my pom doesn't have reporting but in my site.xml I have ${reports}. Solution : removing ${reports} in site.xml Or Adding a report. But I don't understand the naming : 2.0-20060315.083713-4 2.0-20060315.092459-4 With two files ended with *-4 ?? - Olivier -Message d'origine- De : Cabasson Denis [mailto:[EMAIL PROTECTED] Envoyé : mercredi 15 mars 2006 14:32 À : 'Maven Users List' Objet : RE: RE : RE : [M202] Nightly site plugin broken? 2.0-20060315.083713-4 was working fine for me, NPE returned in 2.0-20060315.092459-4. And now, it has been taken out of the repository. Strange things happening :-) Hope the maven-site-plugin is stille alive somewhere. Denis. -Message d'origine- De : Olivier Lamy [mailto:[EMAIL PROTECTED] Envoyé : mercredi 15 mars 2006 14:21 À : 'Maven Users List' Objet : RE : RE : [M202] Nightly site plugin broken? Why maven-site-plugin have been removed from http://snapshots.maven.codehaus.org/maven2/org/apache/maven/plugins/ ?? Yesterday, a good snapshot worked in this repository. Today no more only a bad one in http://cvs.apache.org/maven-snapshot-repository/org/apache/maven/plugins /maven-site-plugin/. Not very cool . --- Olivier (who is trying : mvn site ;-) -Message d'origine- De : Olivier Lamy [mailto:[EMAIL PROTECTED] Envoyé : mercredi 15 mars 2006 12:06 À : 'Maven Users List' Objet : RE : [M202] Nightly site plugin broken? Maybe but look at : http://cvs.apache.org/maven-snapshot-repository/org/apache/maven/plugins /maven-site-plugin/2.0-SNAPSHOT/?C=M;O=D maven-site-plugin-2.0-20060315.092459-4.jar (this one failed with same NPE) [INFO] snapshot org.apache.maven.skins:maven-stylus-skin:1.0-SNAPSHOT: checking for updates from rec-ap2 [INFO] snapshot org.apache.maven.skins:maven-stylus-skin:1.0-SNAPSHOT: checking for updates from rec-ap2-snapshots [INFO] Skipped "About" report, file "index.html" already exists for the English version. [INFO] - --- [ERROR] FATAL ERROR [INFO] - --- [INFO] null [INFO] - --- [INFO] Trace java.lang.NullPointerException at org.apache.maven.plugins.site.AbstractSiteRenderingMojo.populateRepor tsMenu(AbstractSiteRenderingMojo.java:704) at org.apache.maven.plugins.site.AbstractSiteRenderingMojo.locateDocumen ts(AbstractSiteRenderingMojo.java:811) at org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:110 ) Strange same end id as 2.0-20060315.083713-4 ? Normal ? - Olivier -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Carlos Sanchez Envoyé : mercredi 15 mars 2006 11:33 À : Maven Users List Ob
Re: RE : RE : RE : [M202] Nightly site plugin broken?
yes but but how do you use them ? I've added the plugins in the reporting section and in setting.xml added a profile, activated by default, that uses this URL. Now my problem is that I cannot download them. Only pom files are downloaded. How do you do guys to use them ? I've added: additional-repository codehaus Code Haus snapshots. http://snapshots.maven.codehaus.org/maven2 default true false additional-repository Maven download pom files from this but seems to try to download from plugins from http://repo1.maven.org/maven2: A required plugin was not found: Plugin could not be found - check that the goal name is correct: Unable to download the artifact from any repository org.codehaus.mojo:cobertura-maven-plugin:maven-plugin:2.0-20060130.214008-3 from the specified remote repositories: central (http://repo1.maven.org/maven2) org.codehaus.mojo:cobertura-maven-plugin:maven-plugin:2.0-20060130.214008-3 from the specified remote repositories: central (http://repo1.maven.org/maven2) So, how do you do ? I miss something but I cannot understand what :-( Wayne Fay wrote: Oh, there they are! ;-) http://snapshots.maven.codehaus.org/maven2/org/codehaus/mojo/ jdepend, changes, and cobertura, among others... Wayne On 3/15/06, Cabasson Denis <[EMAIL PROTECTED]> wrote: This is definitly the nightly Maven 2 plugins. Change et Jdepend plugins are codehaus plugins so they are in the org.codehaus.mojo directory :) As for the latest site plugin, thx to Olivier for his workaround, it's working just fine for the site generation. I have another issue, with the site:deploy goal. It's now taking the proxies into account, even though my host is in the nonProxyHosts list. Maybe need some fixing? Cheers! Denis -Message d'origine- De : Wayne Fay [mailto:[EMAIL PROTECTED] Envoyé : mercredi 15 mars 2006 16:57 À : Maven Users List Objet : Re: RE : RE : RE : [M202] Nightly site plugin broken? Also I just took a look at the snapshots repo you sent and the jdepend and changes report plugins don't seem to exist: http://snapshots.maven.codehaus.org/maven2/org/apache/maven/plugins/ Those are probably Maven1 plugins that have not yet been ported to M2. Unless someone knows better than me. Happy to be wrong here. Wayne On 3/15/06, Wayne Fay <[EMAIL PROTECTED]> wrote: Just to be sure, since you're a new Maven user, you realize these need to be declared in your pom.xml in the element, right? org.apache.maven.plugins maven-project-info-reports-plugin org.apache.maven.plugins maven-javadoc-plugin And don't bother trying to use Cobertura until 2.0.3 comes out. Wayne On 3/15/06, Boris Lenzinger <[EMAIL PROTECTED]> wrote: I'm trying to use some plugins (cobertura, jdepend, changes) that are on this site http://snapshots.maven.codehaus.org/maven2 but I cannot configure my environment so it accepts to download both pom files and jar files. It stops after pom saying A required plugin was not found Could you tell me how you configured your environment to download from this site through maven2 please ? I tried with a profile but if it is ok for poms, it then searches for jar on central repository. Thanks in advance. Boris Olivier Lamy wrote: Lucky user ;-) I have found why. My reporting section in my pom doesn't have reporting but in my site.xml I have ${reports}. Solution : removing ${reports} in site.xml Or Adding a report. But I don't understand the naming : 2.0-20060315.083713-4 2.0-20060315.092459-4 With two files ended with *-4 ?? - Olivier -Message d'origine- De : Cabasson Denis [mailto:[EMAIL PROTECTED] Envoyé : mercredi 15 mars 2006 14:32 À : 'Maven Users List' Objet : RE: RE : RE : [M202] Nightly site plugin broken? 2.0-20060315.083713-4 was working fine for me, NPE returned in 2.0-20060315.092459-4. And now, it has been taken out of the repository. Strange things happening :-) Hope the maven-site-plugin is stille alive somewhere. Denis. -Message d'origine- De : Olivier Lamy [mailto:[EMAIL PROTECTED] Envoyé : mercredi 15 mars 2006 14:21 À : 'Maven Users List' Objet : RE : RE : [M202] Nightly site plugin broken? Why maven-site-plugin have been removed from http://snapshots.maven.codehaus.org/maven2/org/apache/maven/plugins/ ?? Yesterday, a good snapshot worked in this repository. Today no more only a bad one in http://cvs.apache.org/maven-snapshot-repository/org/apache/maven/plugins /maven-site-plugin/. Not very cool . --- Olivier (who is trying : mvn site ;-) -Message d'origine- De : Olivier Lamy [mailto:[EMAIL PROTECTED] Envoyé : mercredi 1
Re: RE : RE : RE : [M202] Nightly site plugin broken?
I'm trying to reach plugins in the following folder: http://snapshots.maven.codehaus.org/maven2/org/codehaus/mojo/ What is the difference between this url and yours ? I've read that some plugins where under a maven2 hierarchy but were not for maven2 in fact. Wayne Fay wrote: Also I just took a look at the snapshots repo you sent and the jdepend and changes report plugins don't seem to exist: http://snapshots.maven.codehaus.org/maven2/org/apache/maven/plugins/ Those are probably Maven1 plugins that have not yet been ported to M2. Unless someone knows better than me. Happy to be wrong here. Wayne On 3/15/06, Wayne Fay <[EMAIL PROTECTED]> wrote: Just to be sure, since you're a new Maven user, you realize these need to be declared in your pom.xml in the element, right? org.apache.maven.plugins maven-project-info-reports-plugin org.apache.maven.plugins maven-javadoc-plugin And don't bother trying to use Cobertura until 2.0.3 comes out. Wayne On 3/15/06, Boris Lenzinger <[EMAIL PROTECTED]> wrote: I'm trying to use some plugins (cobertura, jdepend, changes) that are on this site http://snapshots.maven.codehaus.org/maven2 but I cannot configure my environment so it accepts to download both pom files and jar files. It stops after pom saying A required plugin was not found Could you tell me how you configured your environment to download from this site through maven2 please ? I tried with a profile but if it is ok for poms, it then searches for jar on central repository. Thanks in advance. Boris Olivier Lamy wrote: Lucky user ;-) I have found why. My reporting section in my pom doesn't have reporting but in my site.xml I have ${reports}. Solution : removing ${reports} in site.xml Or Adding a report. But I don't understand the naming : 2.0-20060315.083713-4 2.0-20060315.092459-4 With two files ended with *-4 ?? - Olivier -Message d'origine- De : Cabasson Denis [mailto:[EMAIL PROTECTED] Envoyé : mercredi 15 mars 2006 14:32 À : 'Maven Users List' Objet : RE: RE : RE : [M202] Nightly site plugin broken? 2.0-20060315.083713-4 was working fine for me, NPE returned in 2.0-20060315.092459-4. And now, it has been taken out of the repository. Strange things happening :-) Hope the maven-site-plugin is stille alive somewhere. Denis. -Message d'origine- De : Olivier Lamy [mailto:[EMAIL PROTECTED] Envoyé : mercredi 15 mars 2006 14:21 À : 'Maven Users List' Objet : RE : RE : [M202] Nightly site plugin broken? Why maven-site-plugin have been removed from http://snapshots.maven.codehaus.org/maven2/org/apache/maven/plugins/ ?? Yesterday, a good snapshot worked in this repository. Today no more only a bad one in http://cvs.apache.org/maven-snapshot-repository/org/apache/maven/plugins /maven-site-plugin/. Not very cool . --- Olivier (who is trying : mvn site ;-) -Message d'origine- De : Olivier Lamy [mailto:[EMAIL PROTECTED] Envoyé : mercredi 15 mars 2006 12:06 À : 'Maven Users List' Objet : RE : [M202] Nightly site plugin broken? Maybe but look at : http://cvs.apache.org/maven-snapshot-repository/org/apache/maven/plugins /maven-site-plugin/2.0-SNAPSHOT/?C=M;O=D maven-site-plugin-2.0-20060315.092459-4.jar (this one failed with same NPE) [INFO] snapshot org.apache.maven.skins:maven-stylus-skin:1.0-SNAPSHOT: checking for updates from rec-ap2 [INFO] snapshot org.apache.maven.skins:maven-stylus-skin:1.0-SNAPSHOT: checking for updates from rec-ap2-snapshots [INFO] Skipped "About" report, file "index.html" already exists for the English version. [INFO] - --- [ERROR] FATAL ERROR [INFO] - --- [INFO] null [INFO] - --- [INFO] Trace java.lang.NullPointerException at org.apache.maven.plugins.site.AbstractSiteRenderingMojo.populateRepor tsMenu(AbstractSiteRenderingMojo.java:704) at org.apache.maven.plugins.site.AbstractSiteRenderingMojo.locateDocumen ts(AbstractSiteRenderingMojo.java:811) at org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:110 ) Strange same end id as 2.0-20060315.083713-4 ? Normal ? - Olivier -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Carlos Sanchez Envoyé : mercredi 15 mars 2006 11:33 À : Maven Users List Objet : Re: [M202] Nightly site plugin broken? There's a 2.0-20060315.083713-4 already there On 3/15/06, Cabasson Denis <[EMAIL PROTECTED]> wrote: I'm working on the nightly builds of maven plugins, and the latest site plugin (20060314.165130-3) isn't working on my projects, which worked just fine yesterday. Here is the erro
Re: RE : RE : RE : [M202] Nightly site plugin broken?
Yes they are in my pom already. Here are the elements I have added: maven-javadoc-plugin org.codehaus.mojo jxr-maven-plugin org.codehaus.mojo surefire-report-maven-plugin org.codehaus.mojo cobertura-maven-plugin 2.0-20060130.214008-3 org.codehaus.mojo changes-maven-plugin 2.0-beta-2-SNAPSHOT changes-report org.codehaus.mojo jdepend-maven-plugin 2.0-beta-1-20060125.213408-2 Wayne Fay wrote: Just to be sure, since you're a new Maven user, you realize these need to be declared in your pom.xml in the element, right? org.apache.maven.plugins maven-project-info-reports-plugin org.apache.maven.plugins maven-javadoc-plugin And don't bother trying to use Cobertura until 2.0.3 comes out. Wayne On 3/15/06, Boris Lenzinger <[EMAIL PROTECTED]> wrote: I'm trying to use some plugins (cobertura, jdepend, changes) that are on this site http://snapshots.maven.codehaus.org/maven2 but I cannot configure my environment so it accepts to download both pom files and jar files. It stops after pom saying A required plugin was not found Could you tell me how you configured your environment to download from this site through maven2 please ? I tried with a profile but if it is ok for poms, it then searches for jar on central repository. Thanks in advance. Boris Olivier Lamy wrote: Lucky user ;-) I have found why. My reporting section in my pom doesn't have reporting but in my site.xml I have ${reports}. Solution : removing ${reports} in site.xml Or Adding a report. But I don't understand the naming : 2.0-20060315.083713-4 2.0-20060315.092459-4 With two files ended with *-4 ?? - Olivier -Message d'origine- De : Cabasson Denis [mailto:[EMAIL PROTECTED] Envoyé : mercredi 15 mars 2006 14:32 À : 'Maven Users List' Objet : RE: RE : RE : [M202] Nightly site plugin broken? 2.0-20060315.083713-4 was working fine for me, NPE returned in 2.0-20060315.092459-4. And now, it has been taken out of the repository. Strange things happening :-) Hope the maven-site-plugin is stille alive somewhere. Denis. -Message d'origine- De : Olivier Lamy [mailto:[EMAIL PROTECTED] Envoyé : mercredi 15 mars 2006 14:21 À : 'Maven Users List' Objet : RE : RE : [M202] Nightly site plugin broken? Why maven-site-plugin have been removed from http://snapshots.maven.codehaus.org/maven2/org/apache/maven/plugins/ ?? Yesterday, a good snapshot worked in this repository. Today no more only a bad one in http://cvs.apache.org/maven-snapshot-repository/org/apache/maven/plugins /maven-site-plugin/. Not very cool . --- Olivier (who is trying : mvn site ;-) -Message d'origine- De : Olivier Lamy [mailto:[EMAIL PROTECTED] Envoyé : mercredi 15 mars 2006 12:06 À : 'Maven Users List' Objet : RE : [M202] Nightly site plugin broken? Maybe but look at : http://cvs.apache.org/maven-snapshot-repository/org/apache/maven/plugins /maven-site-plugin/2.0-SNAPSHOT/?C=M;O=D maven-site-plugin-2.0-20060315.092459-4.jar (this one failed with same NPE) [INFO] snapshot org.apache.maven.skins:maven-stylus-skin:1.0-SNAPSHOT: checking for updates from rec-ap2 [INFO] snapshot org.apache.maven.skins:maven-stylus-skin:1.0-SNAPSHOT: checking for updates from rec-ap2-snapshots [INFO] Skipped "About" report, file "index.html" already exists for the English version. [INFO] - --- [ERROR] FATAL ERROR [INFO] - --- [INFO] null [INFO] - --- [INFO] Trace java.lang.NullPointerException at org.apache.maven.plugins.site.AbstractSiteRenderingMojo.populateRepor tsMenu(AbstractSiteRenderingMojo.java:704) at org.apache.maven.plugins.site.AbstractSiteRenderingMojo.locateDocumen ts(AbstractSiteRenderingMojo.java:811) at org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:110 ) Strange same end id as 2.0-20060315.083713-4 ? Normal ? - Olivier -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Carlos Sanchez Envoyé : mercredi 15 mars 2006 11:33 À : Maven Users List Objet : Re: [M202] Nightly site plugin broken? There's a 2.0-20060315.083713-4 already there On 3/15/06, Cabasson Denis <[EMAIL PROTECTED]> wrote: I'm working on the nightly builds of maven plugins, and the latest site plugin (20060314.165130-3) is
Re: RE : RE : RE : [M202] Nightly site plugin broken?
I'm trying to use some plugins (cobertura, jdepend, changes) that are on this site http://snapshots.maven.codehaus.org/maven2 but I cannot configure my environment so it accepts to download both pom files and jar files. It stops after pom saying A required plugin was not found Could you tell me how you configured your environment to download from this site through maven2 please ? I tried with a profile but if it is ok for poms, it then searches for jar on central repository. Thanks in advance. Boris Olivier Lamy wrote: Lucky user ;-) I have found why. My reporting section in my pom doesn't have reporting but in my site.xml I have ${reports}. Solution : removing ${reports} in site.xml Or Adding a report. But I don't understand the naming : 2.0-20060315.083713-4 2.0-20060315.092459-4 With two files ended with *-4 ?? - Olivier -Message d'origine- De : Cabasson Denis [mailto:[EMAIL PROTECTED] Envoyé : mercredi 15 mars 2006 14:32 À : 'Maven Users List' Objet : RE: RE : RE : [M202] Nightly site plugin broken? 2.0-20060315.083713-4 was working fine for me, NPE returned in 2.0-20060315.092459-4. And now, it has been taken out of the repository. Strange things happening :-) Hope the maven-site-plugin is stille alive somewhere. Denis. -Message d'origine- De : Olivier Lamy [mailto:[EMAIL PROTECTED] Envoyé : mercredi 15 mars 2006 14:21 À : 'Maven Users List' Objet : RE : RE : [M202] Nightly site plugin broken? Why maven-site-plugin have been removed from http://snapshots.maven.codehaus.org/maven2/org/apache/maven/plugins/ ?? Yesterday, a good snapshot worked in this repository. Today no more only a bad one in http://cvs.apache.org/maven-snapshot-repository/org/apache/maven/plugins /maven-site-plugin/. Not very cool . --- Olivier (who is trying : mvn site ;-) -Message d'origine- De : Olivier Lamy [mailto:[EMAIL PROTECTED] Envoyé : mercredi 15 mars 2006 12:06 À : 'Maven Users List' Objet : RE : [M202] Nightly site plugin broken? Maybe but look at : http://cvs.apache.org/maven-snapshot-repository/org/apache/maven/plugins /maven-site-plugin/2.0-SNAPSHOT/?C=M;O=D maven-site-plugin-2.0-20060315.092459-4.jar (this one failed with same NPE) [INFO] snapshot org.apache.maven.skins:maven-stylus-skin:1.0-SNAPSHOT: checking for updates from rec-ap2 [INFO] snapshot org.apache.maven.skins:maven-stylus-skin:1.0-SNAPSHOT: checking for updates from rec-ap2-snapshots [INFO] Skipped "About" report, file "index.html" already exists for the English version. [INFO] - --- [ERROR] FATAL ERROR [INFO] - --- [INFO] null [INFO] - --- [INFO] Trace java.lang.NullPointerException at org.apache.maven.plugins.site.AbstractSiteRenderingMojo.populateRepor tsMenu(AbstractSiteRenderingMojo.java:704) at org.apache.maven.plugins.site.AbstractSiteRenderingMojo.locateDocumen ts(AbstractSiteRenderingMojo.java:811) at org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:110 ) Strange same end id as 2.0-20060315.083713-4 ? Normal ? - Olivier -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Carlos Sanchez Envoyé : mercredi 15 mars 2006 11:33 À : Maven Users List Objet : Re: [M202] Nightly site plugin broken? There's a 2.0-20060315.083713-4 already there On 3/15/06, Cabasson Denis <[EMAIL PROTECTED]> wrote: I'm working on the nightly builds of maven plugins, and the latest site plugin (20060314.165130-3) isn't working on my projects, which worked just fine yesterday. Here is the error stacktrace: [INFO] [site:site] [INFO] -- -- [ERROR] FATAL ERROR [INFO] [INFO] null [INFO] [INFO] Trace java.lang.NullPointerException at org.apache.maven.plugins.site.AbstractSiteRenderingMojo.populateReportsM enu( AbstractSiteRenderingMojo.java:704) at org.apache.maven.plugins.site.AbstractSiteRenderingMojo.locateDocuments( Abst ractSiteRenderingMojo.java:811) at org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:110) at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:92) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa nage r.java:415) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default Life cycleExecutor.java:531) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec ycle (DefaultLifecycleExecutor.java:472) at org.apache.maven.lifecycle.D
Re: A required plugin was not found: Plugin could not be found
Cobertura plugin is not finished but I guess it is working for a single project no ? There are some versions released. I'll check the issues you pointed. Anyway, I have the same problem with jdepend-maven-plugin and changes-maven-plugin. David Sag wrote: The cobertura plugin is not finished yet. I recommend you pop over to http://jira.codehaus.org/browse/MCOBERTURA-2 and http://jira.codehaus.org/browse/MCOBERTURA-5 and vote on those issues Kind regards, Dave Sag Boris Lenzinger <[EMAIL PROTECTED]> wrote on 15-03-2006 11:03:35: > Hi, > > I'm newbie in Maven and I'm exploring this great tool. I'm using it for > a personnal project but I encounter a problem that I cannot fix. I've > searched on the ML and googled with no result on this problem. > > I'm using Maven 2.0.2. > > I want to generate code coverage reports on the project (and some other > like jdepend, changes, etc). I saw cobertura-maven-plugin and wanted to > use it. > In the central repository, it seems to be working with Maven1 only. I > get a NullPointerException that is raised which is caracteristic of > trying to use a plugin of Maven1 with Maven2 no ? I saw some mails about > this in the ML saying plugins were not up-to-date. > > I've searched for a repository that could have the plugins I'm > interested in for Maven2. I found one here > (http://snapshots.maven.codehaus.org/maven2). > > I then added to settings.xml a profile where I added the repository. At > last I've set the profile as always active. > Here is the declaration: > > > additional-repository > > > > codehaus > Code Haus snapshots. > http://snapshots.maven.codehaus.org/maven2 > default > > > > > > > additional-repository > > > Declaration in the pom file: > > org.codehaus.mojo > cobertura-maven-plugin > 2.0-20060130.214008-3 > > > Then I execute the command mvn site. > > Maven starts to download the pom file related to the plugin and then say > that it cannot find the plugin. > Here is the exact message: > +-+-+-+-+-+-+-+-+-+ START OF MESSAGE +-+-+-+-+-+-+-+-+-+ > > [INFO] Building Common Classes > [INFO]task-segment: [site] > [INFO] > > Downloading: > http://snapshots.maven.codehaus. > org/maven2/org/codehaus/mojo/cobertura-maven-plugin/2.0- > SNAPSHOT/cobertura-maven-plugin-2.0-20060130.214008-3.pom > 3K downloaded > [INFO] > > [ERROR] BUILD FAILURE > [INFO] > > [INFO] A required plugin was not found: Plugin could not be found - > check that the goal name is correct: Unable to download the artifact > from any repository > > > org.codehaus.mojo:cobertura-maven-plugin:maven-plugin:2.0-20060130.214008-3 > > from the specified remote repositories: > central (http://repo1.maven.org/maven2) > > > org.codehaus.mojo:cobertura-maven-plugin:maven-plugin:2.0-20060130.214008-3 > > from the specified remote repositories: > central (http://repo1.maven.org/maven2) > > +-+-+-+-+-+-+-+-+-+ END OF MESSAGE +-+-+-+-+-+-+-+-+-+ > > I've tried tons of things but with no success. I've search in the > mailing list but found nothing (well for the problem else I found some > interesting references to plugin or some fixes for other problems I > could have). > > In the FAQ there is a section that answers to this but it is not > applying to me since I'm not behind a proxy and it was working fine > until I want those plugins from a special repository. > > So I ask for help since I cannot find a solution. > > Any help would be greatly appreciated. > > thanks in advance > > Boris > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
A required plugin was not found: Plugin could not be found
Hi, I'm newbie in Maven and I'm exploring this great tool. I'm using it for a personnal project but I encounter a problem that I cannot fix. I've searched on the ML and googled with no result on this problem. I'm using Maven 2.0.2. I want to generate code coverage reports on the project (and some other like jdepend, changes, etc). I saw cobertura-maven-plugin and wanted to use it. In the central repository, it seems to be working with Maven1 only. I get a NullPointerException that is raised which is caracteristic of trying to use a plugin of Maven1 with Maven2 no ? I saw some mails about this in the ML saying plugins were not up-to-date. I've searched for a repository that could have the plugins I'm interested in for Maven2. I found one here (http://snapshots.maven.codehaus.org/maven2). I then added to settings.xml a profile where I added the repository. At last I've set the profile as always active. Here is the declaration: additional-repository codehaus Code Haus snapshots. http://snapshots.maven.codehaus.org/maven2 default additional-repository Declaration in the pom file: org.codehaus.mojo cobertura-maven-plugin 2.0-20060130.214008-3 Then I execute the command mvn site. Maven starts to download the pom file related to the plugin and then say that it cannot find the plugin. Here is the exact message: +-+-+-+-+-+-+-+-+-+ START OF MESSAGE +-+-+-+-+-+-+-+-+-+ [INFO] Building Common Classes [INFO]task-segment: [site] [INFO] Downloading: http://snapshots.maven.codehaus.org/maven2/org/codehaus/mojo/cobertura-maven-plugin/2.0-SNAPSHOT/cobertura-maven-plugin-2.0-20060130.214008-3.pom 3K downloaded [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] A required plugin was not found: Plugin could not be found - check that the goal name is correct: Unable to download the artifact from any repository org.codehaus.mojo:cobertura-maven-plugin:maven-plugin:2.0-20060130.214008-3 from the specified remote repositories: central (http://repo1.maven.org/maven2) org.codehaus.mojo:cobertura-maven-plugin:maven-plugin:2.0-20060130.214008-3 from the specified remote repositories: central (http://repo1.maven.org/maven2) +-+-+-+-+-+-+-+-+-+ END OF MESSAGE +-+-+-+-+-+-+-+-+-+ I've tried tons of things but with no success. I've search in the mailing list but found nothing (well for the problem else I found some interesting references to plugin or some fixes for other problems I could have). In the FAQ there is a section that answers to this but it is not applying to me since I'm not behind a proxy and it was working fine until I want those plugins from a special repository. So I ask for help since I cannot find a solution. Any help would be greatly appreciated. thanks in advance Boris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]