Questions tagged [jdepend]

JDepend is a tool that traverses Java class file directories and generates software package metrics (most importantly dependency cycle detection and distance from the Main Sequence) to measure the design quality for Java packages. It also allows you to automatically measure the quality of a design effectively.

JDepend is a tool that traverses Java class file directories and generates software package metrics (most importantly dependency cycle detection and distance from the Main Sequence) to measure the design quality for Java packages. It also allows you to automatically measure the quality of a design in terms of its extensibility, reusability, and maintainability to manage package dependencies effectively.

21 questions
5
votes
2 answers

Java code Analytic/Metrics tool

I am looking for a free Java code analysis/metrics tool that I can use to see class dependencies, method execution times, etc, and possibly to print out a diagram that shows them. I am currently using a jdepend task in ANT to achieve this, but I'm…
SuperTron
  • 4,203
  • 6
  • 35
  • 62
5
votes
1 answer

Cyclic dependency analysis for Java 8 - for use in an automated build

I'll working on a project that is using JDepend to automatically generate a report of cyclic package dependencies as part of our CI build. (I am mainly interested in package level dependencies, so I've been using a cut down version of the XSLT to…
Paul
  • 3,009
  • 16
  • 33
5
votes
1 answer

jenkins error after build successful

I have a problem with jenkins. It reports that the build of my symfony2 project ist successful, but directly after that it crashes with ERROR: Publisher hudson.plugins.violations.ViolationsPublisher aborted due to exception java.io.EOFException:…
3
votes
1 answer

Maven Jdepend report contains no data

I'm running the jdepend maven plugin on my project and whether I run "mvn site:site" or "mvn jdepend:generate" the report that gets generated says "There are no package used." There are no errors in the maven output. Other plugins (cobertura,…
mes5k
  • 855
  • 10
  • 15
3
votes
3 answers

maven jdepend fail build with cycles

Is there way to use the jdepend plugin in maven to fail a build when package cycles exist? I know you can do it fairly easily with ant, but I haven't figured out how to do it with maven. thanks, Jeff
Jeff Storey
  • 56,312
  • 72
  • 233
  • 406
3
votes
2 answers

How to check project boundaries access in Maven projects

I have a set of Maven projects and I'd like to define access rules. For example, projects Database and Cache may only be accessed by project DataLayer, but not from project UiLayer. I'm speaking in terms of maven projects, but a package level access…
Ran
  • 7,541
  • 12
  • 59
  • 72
2
votes
1 answer

Sonarqube project dependency graph

I have an existing Jenkins-Sonarqube integration for daily sonar violation check using SonarScanner. Recently there was a discussion to explore a Project Dependency Diagram_ on sonarqube, where I heard about JDepend plugin & tried integrating…
1
vote
1 answer

Packages P1 and P2 have a dependency cycle, but no class of P1 uses P2 (analyzed by jdepend)

General package dependency question Under what circumstances can there be a dependency cycle between packages P1 and P2 if no class and interface of P1 uses P2? I.e. where does the "hidden dependency" come from? Concrete example with jdepend…
DaveFar
  • 7,078
  • 4
  • 50
  • 90
1
vote
1 answer

JDepend misses Cycles

We have a JUnit test based on JDepend 2.9.1 in order to find illegal dependencies and cycles. Today we found that JDepend is missing dependencies. It doesn't seem to consider A depending on B in the following piece of code: public class A { …
Jens Schauder
  • 77,657
  • 34
  • 181
  • 348
1
vote
3 answers

Hudson JDepend Plugin does not work

I am trying to build a continuous integration environment for php using hudson. I am running a shell script, which generates my phpdepend output, which can be used by the jdepend plugin. Although the xml-File is ready, the plugin throws an…
Martin Kapfhammer
  • 260
  • 1
  • 4
  • 18
1
vote
0 answers

JDepend for hierarchical packages?

I'm interesting in limiting dependencies from one package to a package hierarchy. For example, specify com.a.package and do not allow dependencies to: com.a.package com.a.package.subpackage com.a.package.subpackage.subpackage The JDepend appears to…
orbfish
  • 7,381
  • 14
  • 58
  • 75
1
vote
3 answers

Need a Java Package Dependancy Analysis Tools

Is there anyway to run a package dependency analysis using jDepend, ant contrib's verifydesign task, or any other similar tool, which uses blacklists instead of whitelists? That is to say, I want to be far less strict (at least initially). Instead…
Tom Tresansky
  • 19,364
  • 17
  • 93
  • 129
1
vote
0 answers

Jdepend package filters

Iam using JDepend to get the dependencies of various packages. There are many packages in my project and i want to filter out some packages with the prefix com.*. In the documentation of JDepend it is given that this can be done by modifing the…
Wolf
  • 3,019
  • 3
  • 17
  • 14
0
votes
1 answer

How do I use jdepend's JavaPackage.containsCycle() in junit to detect whether my package is on a package cycle?

I want to test in junit via jdepend whether my package tree is on a package cycle (i.e. has a direct cyclic dependency). Currently, it isn't (see output below, and jdepend's Eclipse plugin does not find a cycle for tree). But the assertion below,…
DaveFar
  • 7,078
  • 4
  • 50
  • 90
0
votes
1 answer

JDepend Dependency Constraint Failing

I'm using JDepend to analyze my architecture and create structural tests to verify dependency within a Layered architecture. The two relevant layers are com.domain and com.infrastructure. Domain concretely depends on the Infrastructure layer. Why is…
Mike
  • 19,267
  • 11
  • 56
  • 72
1
2