dependency-management

Eclipse - External JARs and git

≡放荡痞女 提交于 2019-12-09 13:38:18
问题 I am currently using eclipse for working with Java. Additionaly I use git to synchronize my project between my laptop and my desktop PC. The problem is now the following: I added external JARs to the project (Slick-Util, LWJGL). But the path to each library is another on each device. So everytime I start working on the other device, I have to change the path to the jar files and the javadocs. The libraries are all stored in my eclipse workspace. So the libraries and the projects are all in

Maven transitive dependency has scope compile while when dependency has provided scope

喜欢而已 提交于 2019-12-09 10:57:29
问题 In my project I have openejb-core dependency with scope provided . However it has transitive dependency of slf4j and its scope is compile (see screenshot). All other transitive dependencies are provided as expected. Question : Is it bug or am I missing something? 回答1: In a sample pom I added: <dependencies> <dependency> <groupId>org.apache.openejb</groupId> <artifactId>openejb-core</artifactId> <version>4.7.0</version> <scope>provided</scope> </dependency> </dependencies> Then running: mvn

Maven POM dependencies to ivy.xml file

不打扰是莪最后的温柔 提交于 2019-12-09 10:57:15
问题 Is there a maven plugin which i can use to convert the maven pom dependencies including transitive dependencies to an ivy.xml file? 回答1: Here's an Ant script <project name="convertPomToIvy" basedir="." default="all" xmlns:ivy="antlib:fr.jayasoft.ivy.ant" xmlns:ac="antlib:net.sf.antcontrib"> <path id="antlib.classpath"> <fileset dir="/path/to/ivy/libs" includes="*.jar"/> </path> <taskdef uri="antlib:fr.jayasoft.ivy.ant" resource="fr/jayasoft/ivy/ant/antlib.xml" classpathref="antlib.classpath"

ES6 module import and dependency management

て烟熏妆下的殇ゞ 提交于 2019-12-09 10:55:34
问题 With the use of transpilers it is already possible to use ES6 modules. One of the easiest ways is using Browserify and Babelify. The problem I'm having is how to handle dependency management. In the old days you'd just have some Bower dependencies. The build would bundle non-CDN to vendor.js and project specific files to foobar.js (or whatever). So then you'd be able to use the resulting code in a different project by simply bower install foobar --save . If both foobar and your new project

is it possible to use apache mahout without hadoop dependency?

眉间皱痕 提交于 2019-12-09 08:23:21
问题 Is it possible to use Apache mahout without any dependency to Hadoop. I would like to use the mahout algorithm on a single computer by only including the mahout library inside my Java project but i dont want to use hadoop at all since i will be running on a single node anyway. Is that possible? 回答1: Yes. Not all of Mahout depends on Hadoop, though much does. If you use a piece that depends on Hadoop, of course, you need Hadoop. But for example there is a substantial recommender engine code

Conflicting cross-version suffixes (sbt, Scala-STM, Play-JSON)

做~自己de王妃 提交于 2019-12-09 07:48:42
问题 I am using a JSON extension which relies on Mandubian's play-json 2.2-SNAPSHOT. Everything worked fine until now I have a project based on Scala-STM. sbt reports the following problem: [error] Modules were resolved with conflicting cross-version suffixes in {file:folder}project: [error] org.scala-stm:scala-stm _2.10, _2.10.0 java.lang.RuntimeException: Conflicting cross-version suffixes in: org.scala-stm:scala-stm Is there any chance to dig deeper into where these two "conflicting" versions

Can I avoid a dependency cycle with one edge being a test dependency?

自作多情 提交于 2019-12-09 06:37:09
问题 Consider a testCycle parent with modules DummyCore and TestFramework . TestFramework depends on DummyCore , and DummyCore has a test dedepency on TestFramework . Building and testing each module independently maven has no problems. But mvn test the parents testCycle results in: The projects in the reactor contain a cyclic reference: Edge between 'Vertex{label='com.mysimpatico:TestFramework:1.0-SNAPSHOT'}' and 'Vertex{label='org.apache:DummyCore:1.0-SNAPSHOT'}' introduces to cycle in the graph

Maven/Gradle way to calcuate the total size of a dependency with all its transitive dependencies included

最后都变了- 提交于 2019-12-09 05:28:12
问题 I would like to be able to perform an analysis on each of my project POMs to determine how many bytes each direct dependency introduces to the resulting package based on the sum of all of its transitive dependencies. For example, if dependency A brings in B, C, and D, I would like to be able to see a summary showing A -> total size = (A + B + C + D). Is there an existing Maven or Gradle way to determine this information? 回答1: I keep the a small pom.xml template on my workstation to identify

How to solve dependency issues with built AngularJS app?

风流意气都作罢 提交于 2019-12-08 18:06:14
问题 I'm new to AngularJS and am creating an app which will be built using Grunt. When I build and run my app, I'm noticing some issues related to dependency load order: Uncaught Error: [$injector:nomod] Module 'mycompany.admin.forms' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument. http://errors.angularjs.org/1.2.13/$injector/nomod?p0=mycompany.admin.forms In the built app file,

mvn package command doesn't run successfully after mvn clean command if done from command prompt

爱⌒轻易说出口 提交于 2019-12-08 11:19:03
问题 Hi I get a weird error when I run mvn package command from the command line after executing mvn clean command. The error is a compilation failure error. This is a trace: annotations are not supported in -source 1.3 06.04.2011 17.06.59 (use -source 5 or higher to enable annotations) 06.04.2011 17.06.59 @Override at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715) 06.04.2011 17.06.59 at org.apache.maven.lifecycle.DefaultLifecycleExecutor