Re: [Codenarc-user] CodeNarc maven plugin
Brought to you by:
chrismair
From: Olivier G. <ogo...@sm...> - 2011-08-08 14:30:19
|
Ok, sorry about the spam... But it appears the faulty dependency is org.codehaus.mojo... So, will definitely have to use your trick, Hamlet. On Mon, Aug 8, 2011 at 10:21 AM, Olivier Gourment < ogo...@sm...> wrote: > Hi again, > > I found why my Spock tests stopped running. Apparently there's an > incompatibility between Spock and CodeNarc? Just adding the following > dependencies results in Spock not executing any test in my Specifications... > > <dependency> > <groupId>org.codenarc</groupId> > <artifactId>CodeNarc</artifactId> > <version>0.15</version> > </dependency> > <dependency> > <groupId>org.codehaus.mojo</groupId> > <artifactId>codenarc-maven-plugin</artifactId> > <version>0.8-alpha-SNAPSHOT</version> > </dependency> > <dependency> > <groupId>org.codenarc</groupId> > <artifactId>CodeNarc</artifactId> > <version>0.15</version> > </dependency> > > Is this a known problem? Should I use other versions? > > Thanks, > > Olivier > > > > > > On Fri, Aug 5, 2011 at 11:07 PM, Olivier Gourment < > ogo...@sm...> wrote: > >> k. Will try that as soon as I understand why my Spock tests suddenly >> stopped executing...! >> >> >> >> On Fri, Aug 5, 2011 at 9:45 AM, Hamlet DArcy <ham...@ca...>wrote: >> >>> In the meantime you can always run CodeNarc as part of your UnitTests: >>> >>> http://codenarc.sourceforge.net/codenarc-run-as-a-test.html >>> >>> I actually find this way of running it nicer :) >>> >>> >>> >>> ----- Original Message ----- >>> > >>> > Thank you very much for the answer. I tried various repositories and >>> > dependencies, following your lead, to no avail. >>> > >>> > I can't subscribe (or post) to the mojo user mailing list. I sent an >>> > email to use...@mo... but did not get an >>> > answer....... >>> > >>> > Thanks, >>> > >>> > Olivier >>> > >>> > >>> > >>> > >>> > On Fri, Aug 5, 2011 at 2:17 AM, Hamlet DArcy < ham...@ca... >>> > > wrote: >>> > >>> > >>> > Hi, >>> > >>> > I'm sorry to hear you had problems running the Maven plugin. >>> > >>> > While we're waiting for someone else to provide a good answer to the >>> > question, you might try asking the same question on the >>> > mojo.codehaus.org mailing list: >>> > >>> > http://mojo.codehaus.org/codenarc-maven-plugin/mail-lists.html >>> > >>> > We don't actually maintain the Maven plugin ourselves, so you might >>> > find that list is more knowledgeable about it. >>> > >>> > Now, I will try to answer the question. >>> > >>> > I tried to look at Maven Central and the CodeHaus Maven repository >>> > and didn't see the org.codehaus.mojo:codenarc-maven-plugin >>> > dependency. I believe this dependency should sit in Maven just like >>> > any other dependency. I want to check this because perhaps the >>> > version number is wrong. >>> > >>> > I did find the dependency in the Mojo Repo though: >>> > >>> https://nexus.codehaus.org/content/groups/snapshots-group/org/codehaus/mojo/codenarc-maven-plugin/ >>> > >>> > >>> > Did you add this repository to your pom.xml, or are you using just >>> > Maven Central to resolve dependencies? I think you might need to add >>> > the https://nexus.codehaus.org repository. I don't know the exact >>> > XML to do this though. >>> > >>> > Thanks, >>> > Hamlet >>> > >>> > >>> > >>> > >>> > ----- Original Message ----- >>> > > >>> > > Hi there, >>> > > >>> > > I've tried to include codenarc reports in my maven project, without >>> > > luck. The documentation at >>> > > http://mojo.codehaus.org/codenarc-maven-plugin/index.html does not >>> > > seem to help. >>> > > I get: >>> > > >>> > > Reason: POM 'org.codehaus.mojo:codenarc-maven-plugin' not found in >>> > > repository: Unable to download the artifact from any repository >>> > > >>> > > org.codehaus.mojo:codenarc-maven-plugin:pom:0.8-alpha-1-SNAPSHOT >>> > > >>> > > Help? >>> > > >>> > > Thanks, >>> > > >>> > > Olivier >>> > > >>> > > >>> ------------------------------------------------------------------------------ >>> > > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA >>> > > The must-attend event for mobile developers. Connect with experts. >>> > > Get tools for creating Super Apps. See the latest technologies. >>> > > Sessions, hands-on labs, demos & much more. Register early & save! >>> > > http://p.sf.net/sfu/rim-blackberry-1 >>> > > _______________________________________________ >>> > > Codenarc-user mailing list >>> > > Cod...@li... >>> > > https://lists.sourceforge.net/lists/listinfo/codenarc-user >>> > > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA >>> > The must-attend event for mobile developers. Connect with experts. >>> > Get tools for creating Super Apps. See the latest technologies. >>> > Sessions, hands-on labs, demos & much more. Register early & save! >>> > http://p.sf.net/sfu/rim-blackberry-1 >>> > _______________________________________________ >>> > Codenarc-user mailing list >>> > Cod...@li... >>> > https://lists.sourceforge.net/lists/listinfo/codenarc-user >>> > >>> >> >> > |