Re: Enforce Checkstyle using Maven?
On Thu, Jun 26, 2008 at 2:07 PM, <[EMAIL PROTECTED]> wrote: > > I don't know why it did not fail. Are you sure, you're using the latest > version of the checkstyle plugin. Always version your plugins in your pom. > The latest is version 2.2. Apparently that was the reason! I had no version defined but was not on version 2.2 because that was downloaded after I added 2.2. So on which version was I? I expected the default version always to be the latest... But anyway, thanks. -- regards, Jeroen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Enforce Checkstyle using Maven?
Thanks for your reply, On Thu, Jun 26, 2008 at 11:52 AM, <[EMAIL PROTECTED]> wrote: > Yes, that is possible with the checkstyle:check goal [1]. I tried to use the checkstyle plugin like this: org.apache.maven.plugins maven-checkstyle-plugin http://our-server:8080/checkstyle/mpoCheckstyleConfig.xml verify check However when I run 'mvn package' I don't see that Checkstyle is run and when I run 'mvn verify' explicitly Checkstyle is run but it doesn't report errors even though when I run 'mvn checkstyle:check' manually it reports 7 errors! What could be causing this problem? -- regards, Jeroen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Enforce Checkstyle using Maven?
Hi all, Is it possible to enforce coding standards using Checkstyles plugin? For example by letting a build fail like Surefire does when a unittest fails or by preventing a deploy to a repository when coding standards have not been met according to Checkstyle? -- regards, Jeroen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Exclusion problem
Hi all, Because jmock-cglib has a dependency on a version of cglib-full that causes a stackoverflowerror I want to replace it with a version that I do know works (cglib-nodep 2.1_2). However my unit test run under Maven still fail because of the stackoverflowerror. If I run the test in my ide, of which I know for sure that the faulty dependency is not used, the test runs just fine. What could be the problem? Am I using exclusions the wrong way? Relevant part from my pom: cglib cglib-nodep 2.1_2 test jmock jmock-cglib 1.1.0 test cglib cglib-full Thanks and regards, Jeroen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dependency quirck?
Hi Ronny, On 10/9/06, Naess, Ronny <[EMAIL PROTECTED]> wrote: Compile scope is included in classpath. Try scope = provided I tried that, made sure everything was cleaned but the servlet-api jar is still there. regards, Jeroen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
dependency quirck?
Hi all, I'm having a problem a with servlet-api jar being deployed even though its scope is set to compile. I'm exploring mvn by creating a webapplication that is divided into two modules. A core module generating a jar and containing servlets, Spring controlllers. A web module contains the jsp's, web.xml etc. This is the way, right? The core module has a dependency on the servlet-api jar for compilation (compile). The web module has a ofcourse a dependency on the core module. However the problem is that when the web module is deployed (war and exploded dir) the servlet-api is also deployed, eventhough it's scope in the core pom is set to compile. What's causing this? It's a problem because I think the deployment on Tomcat takes longer and it complains about an offending class: INFO: validateJarFile(C:\java\jakarta-tomcat-5.5.9\webapps\web\WEB-INF\lib\servlet-api-2.4.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class Thanks for any help, Jeroen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: newbie problem downloading depenencies
On 9/18/05, Arnaud HERITIER <[EMAIL PROTECTED]> wrote: > Do you use maven 1 or 2 ? I probably should haven mentioned that, I use maven 1.0.2 > Transitive dependencies aren't supported in maven 1. I remember, some time ago, Maven downloading jars that I did not declare as a dependency so I expected transitive dependency to be supported by the version of Maven I'm using. Thanks and regards, Jeroen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
newbie problem downloading depenencies
Hi all, I'm trying to use Maven on a project using the Spring framework so I added this dependency to my project.xml: springframework spring 1.2.4 However when I run the program I get the following error: [java] Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory Why is the commons-jar on which Spring is dependent not downloaded automatically? I noticed that the maven repository does not contain a pom for version 1.2.4 only for 1.1.2. Are the poms not necessary for downloading the other jars on which a jar is dependent? (I tried moving to Spring version 1.1.2 but that didn't solve the problem) Thanks and regards, Jeroen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]