Maven Checkstyle Plugin 2.17 and Generics

2016-01-14 Thread Kristof Meixner

Hi!

I have got the following checkstyle definition [1]. If I update the checkstyle plugin from 2.16.to 2.17 or use 
checkstyle 6.11.1 as dependency, I get several errors concerning ? in generics. E.g.


* public Class getMergeStrategy() {
* public interface ModelValidator extends Validator {
* ServiceTracker tracker = new ServiceTracker<>(context, type, null);

Do I need to configure something additional to the things I already have or did 
I miss something?

Best regards,
Kristof

[1]

"http://www.puppycrawl.com/dtds/configuration_1_3.dtd;>


  
  

  




  



  value="ASSIGN,BAND,BAND_ASSIGN,BOR,BOR_ASSIGN,BSR,BSR_ASSIGN,BXOR,BXOR_ASSIGN,COLON,DIV,DIV_ASSIGN,EQUAL,GE,GT,LAND,LCURLY,LE,LITERAL_ASSERT,LITERAL_CATCH,LITERAL_DO,LITERAL_ELSE,LITERAL_FINALLY,LITERAL_FOR,LITERAL_IF,LITERAL_RETURN,LITERAL_SYNCHRONIZED,LITERAL_TRY,LITERAL_WHILE,LOR,LT,MINUS,MINUS_ASSIGN,MOD,MOD_ASSIGN,NOT_EQUAL,PLUS,PLUS_ASSIGN,QUESTION,SL,SLIST,SL_ASSIGN,SR,SR_ASSIGN,STAR,STAR_ASSIGN,LITERAL_ASSERT,TYPE_EXTENSION_AND,WILDCARD_TYPE"/>



 

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: dependency:analyze controversial result

2017-05-17 Thread Kristof Meixner
Hi!

Maybe I was too unclear about the specific problem.

I've got a project that has org.slf4j:slf4j-api:1.7.12 as dependency as it uses 
the Logger in the Java code. The
dependency is declared in POM but comes also as a transitive dependency.

When running 'dependency:analyze' it is marked as 'unused declared'. When I 
remove the dependency from the POM, and run
'dependency:analyze' again it is marked as 'used undeclared'. Furthermore, in 
the first case suddenly another dependency
[1] is marked as 'used undeclared' although it is never used directly.

Best regards
Kristof

[1] org.apache.activemq:activemq-all:5.11.1

On 05/16/2017 08:13 PM, Alexander Kriegisch wrote:
> Maybe because
> 
>   a) your project uses dependencies which were never declared explicitly
>  in any of your POMs and
>   b) at least some of your modules have dependencies declared which are
>  not actually used in your code?
> 
> What do you think?
> 

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



dependency:analyze controversial result

2017-05-16 Thread Kristof Meixner
Hi!

When I run 'mvn dependency:analyse' on my project several dependencies get 
mentioned in the 'Used undeclared
dependencies' as well as in the 'Unused declared dependencies' section. Any 
idea why?

Best regards
Kristof Meixner

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org