depclean | DepClean automatically detects and removes | Plugin library
kandi X-RAY | depclean Summary
kandi X-RAY | depclean Summary
DepClean is a tool to automatically remove dependencies that are included in your Java dependency tree but are not actually used in the project's code. DepClean detects and removes all the unused dependencies declared in the pom.xml file of a project or imported from its parent. For that, it relies on bytecode static analysis and extends the maven-dependency-analyze plugin (more details on this plugin). DepClean does not modify the original source code of the application nor its original pom.xml. It can be executed as a Maven goal through the command line or integrated directly into the Maven build lifecycle. For a visual illustration of what DepClean can provide for your project, have a look at the depclean-web project.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Executes the depclean plugin
- Analyze the dependencies of a project
- Write the result
- Creates a JSON representation of the dependencies
- Visit a class file
- Add an edge to a project graph
- Reads a string from the buffer
- Parse constant pool class references
- Analyze the class files
- Analyze a directory
- Collect all the imported classes from the given source directory
- Collect all the imported classes from a directory
- Visiting a field
- Visits a method
- Writes the POM to the project xml file
- Visit a class
- Analyze the class members
- Ignore a dependency
- Build the pom model
- Returns a string representation of this class
- Finds related classes
- Visits an annotation
- Implements the hashCode method
- Returns the transitive dependencies of the given dependencies
- Add dependency to the given dependency
- Returns the dependency graph
depclean Key Features
depclean Examples and Code Snippets
se.kth.castor
depclean-maven-plugin
2.0.2-SNAPSHOT
depclean
true
test,runtime,provided,test,runtime,system,import
mvn se.kth.castor:depclean-maven-plugin:2.0.2-SNAPSHOT:depc
@Article{Soto-Valero2021,
author={Soto-Valero, C{\'e}sar and Harrand, Nicolas and Monperrus, Martin and Baudry, Benoit},
title={A comprehensive study of bloated dependencies in the Maven ecosystem},
journal={Empirical Software Engineering},
y
Community Discussions
Trending Discussions on depclean
QUESTION
I am trying to build mtail image using the Dockerfile from https://github.com/google/mtail/blob/master/Dockerfile
Steps I followed,
- Created a file named Dockerfile in my local directory. Copied contents from the above link to this file.
- ran command to build image
docker build -t mtail .
But build is exiting with this below error message,
make: *** No rule to make target 'depclean'. Stop.
The command '/bin/sh -c make depclean && make install_deps && PREFIX=/go make -B install' returned a non-zero code: 2
Tried removing make depclean
from Dockerfile, then it fails with,
make: *** No rule to make target 'install_deps'. Stop.
The command '/bin/sh -c make install_deps && PREFIX=/go make -B install' returned a non-zero code: 2
Could not find any help in documentation, https://github.com/google/mtail/blob/master/docs/Building.md
Thanks,
Sandeep
...ANSWER
Answered 2019-Sep-27 at 03:07Thank you @LinPy It was failing due to missing dependencies. Solution was to clone the entire repo of mtail, and then use Dockerfile from this to build image.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install depclean
You can use depclean like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the depclean component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page