dependency-management

How do I get a list of Java class dependencies for a main class?

眉间皱痕 提交于 2019-12-18 15:47:27
问题 Is there a way to find all the class dependencies of a java main class? I have been manually sifting through the imports of the main class and it's imports but then realized that, because one does not have to import classes that are in the same package, I was putting together an incomplete list. I need something that will find dependencies recursively (perhaps to a defined depth). 回答1: It can be eaily done with just javac. Delete your class files and then compile the main class. javac will

Pip freeze does not show repository paths for requirements file

筅森魡賤 提交于 2019-12-18 12:50:35
问题 I've created an environment and added a package django-paramfield via git: $ pip install git+https://bitbucket.org/DataGreed/django-paramfield.git Downloading/unpacking git+https://bitbucket.org/DataGreed/django-paramfield.git Cloning https://bitbucket.org/DataGreed/django-paramfield.git to /var/folders/9Z/9ZQZ1Q3WGMOW+JguzcBKNU+++TI/-Tmp-/pip-49Eokm-build Unpacking objects: 100% (29/29), done. Running setup.py egg_info for package from git+https://bitbucket.org/DataGreed/django-paramfield

When installing packages with Yarn, what does “incorrect peer dependency” mean?

本小妞迷上赌 提交于 2019-12-18 12:44:43
问题 I'm just cloned a repo, which recommends the use of Yarn to install dependencies. When I run yarn install , it seems to be okay, but it provides this warning: yarn install v0.20.3 [1/4] 🔍 Resolving packages... [2/4] 🚚 Fetching packages... [3/4] 🔗 Linking dependencies... warning "sass-loader@4.0.2" has incorrect peer dependency "node-sass@^3.4.2". [4/4] 📃 Building fresh packages... ✨ Done in 77.59s. I've looked online to find out exactly what "has incorrect peer dependency" means. But all I

When installing packages with Yarn, what does “incorrect peer dependency” mean?

。_饼干妹妹 提交于 2019-12-18 12:43:57
问题 I'm just cloned a repo, which recommends the use of Yarn to install dependencies. When I run yarn install , it seems to be okay, but it provides this warning: yarn install v0.20.3 [1/4] 🔍 Resolving packages... [2/4] 🚚 Fetching packages... [3/4] 🔗 Linking dependencies... warning "sass-loader@4.0.2" has incorrect peer dependency "node-sass@^3.4.2". [4/4] 📃 Building fresh packages... ✨ Done in 77.59s. I've looked online to find out exactly what "has incorrect peer dependency" means. But all I

Simple dependency management for a Python project

你离开我真会死。 提交于 2019-12-18 12:29:18
问题 I am coming from Java background and completely new at Python. Now I have got a small project with a few Python files that contain a few imports. I know I does not have the imported dependencies installed on my computer, so I try to figure out the required dependencies and run pip to install them. I would like to do it differently. I would prefer to have the dependencies listed in a single file and install them automatically during the build process. Does it make sense ? If it does I have a

How can I make the test jar include dependencies in Maven?

大兔子大兔子 提交于 2019-12-18 11:53:48
问题 I have a project with src/main/java and src/test/java structure, and I managed to use maven-jar-plugin to build a jar of the test branch. However, I want to package the test jar so that all the dependencies are resolved. Is there a way I can tell maven-jar-plugin to include the dependencies?? Thanks! Frank 回答1: In a similar situation I ended up moving my test code to a separate jar and made it depend on the original one. You can use an aggregator project to ensure that tests are run when you

Gradle: Override transitive dependency by version classifier

笑着哭i 提交于 2019-12-18 11:40:11
问题 One of the dependencies declared in my project has a transitive dependency on 'com.google.guava:guava:15.0' . But my application deployed on WAS/Weblogic doesn't work due to a CDI issue which has been fixed in 'com.google.guava:guava:15.0:cdi1.0' . (same version, but with classifier) I need to tell gradle to use this jar during build and packaging. I am trying to figure on how we can ovrride this transitive dependency with a jar specific version classifier. Tried the following approches:

How to specify a classifier in a gradle dependency's dependency?

北慕城南 提交于 2019-12-18 11:00:09
问题 Say I want to add guice-assistedinject as a dependency in my project. It specifies the guice artifact as a dependency itself. How do I tell it to use the no_aop version of guice? I know I can do the following, but can I do it in one step without excluding the guice module? dependencies { compile (group: 'com.google.inject.extensions', name: 'guice-assistedinject', version: '3.0') { exclude module: 'guice' } compile group: 'com.google.inject', name: 'guice', version: '3.0', classifier: 'no_aop

clojure and leiningen - using a git repository as dependency

血红的双手。 提交于 2019-12-18 10:19:42
问题 Is it possible to have leiningen pull a project directly from a git repository (on github) as a dependency? Using Bundler with Ruby, it is possible to map a gem to a git repo, allowing for rapid development and integration of dependent projects. Update Based on the accepted answer, there is now a leiningen plugin for managing git-deps: https://github.com/tobyhede/lein-git-deps 回答1: Answer for 2017: Use lein-voom You can use lein-voom to pull and build project dependencies from GitHub or other

How to use leiningen to develop using local jars?

我与影子孤独终老i 提交于 2019-12-18 04:45:11
问题 I realize that this question is pretty much the exact question found here. However, seeing as that question is 1.5 years old (or so), I would like to revisit it. How does one add local dependencies using leiningen? Surely this capability must exist by now? 回答1: Create a private Maven Repository, and then, add the following to your project.clj :repositories {"local" ~(str (.toURI (java.io.File. "your_local_repository")))} 回答2: If the jars are based on your own projects, you can use lein