dependencies

Deploying only some of the dependencies with maven

北城余情 提交于 2019-12-24 13:11:46
问题 I have a problem that I do not know how solve it properly. I'm developing plugins for a program that loads these plugins dynamically on start up. Everything worked out very well so far as I usually only do use dependencies like Apache Commons which have been used by the main program, too. Now I tried to play around with Google Guice and the main program does not have the package in the class path and so there is a NoClassDefFoundError at start up of course. I used google for a while to find a

SBT ResolveException for org.flywaydb#flyway-sbt;3.1

牧云@^-^@ 提交于 2019-12-24 12:15:58
问题 I've been trying to use sbt for compiling the source code of a server app, written in scala. When I run the sbt script, it starts downloading some packages and resolving some dependencies and at the final step, it returns the following error: sbt.ResolveException: unresolved dependency: org.flywaydb#flyway-sbt;3.1:not found And if I ignore this error, I can't use commands like "compile", ... I have compiled this source code before using sbt on ubuntu 14.04 and used the commands I needed, but

Override parent pom dependency

懵懂的女人 提交于 2019-12-24 11:33:50
问题 I made a simple EAR project with maven and wildfly, but I have some problems with obsolete dependencies. Project structure is like: Project --EarProject --BaseProject --WarProject --EjbProject In parent Project's pom there is dependency: <dependency> <groupId>org.wildfly.bom</groupId> <artifactId>jboss-javaee-7.0-with-tools</artifactId> <version>${version.jboss.bom}</version> <type>pom</type> <scope>import</scope> </dependency> And in BaseProject's pom I use Selenium: <dependency> <groupId

CMake & CTest : make test doesn't build tests

旧城冷巷雨未停 提交于 2019-12-24 11:09:37
问题 I'm trying CTest in CMake in order to automatically run some of my tests using make test target. The problem is CMake does not "understand" that the test I'm willing to run has to be built since it is part of the project. So I'm looking for a way to explicitly specify this dependency. 回答1: It is arguably a bug in CMake (previously tracked here) that this doesn't work out of the box. A workaround is to do the following: add_test(TestName ExeName) add_custom_target(check COMMAND ${CMAKE_CTEST

Maven/Spring/Java: ClassNotFoundException - but I know class is there

只谈情不闲聊 提交于 2019-12-24 10:38:12
问题 I have 2 maven projects set up like this: -com.wuntee.rsaAuthenticationManager (jar) -com.wuntee.taac (pom) --taac-backend-gui (jar) --taac-web (war) And 'com.wuntee.rsaAuthenticationManager' is a dep in 'taac-backend-gui'. When running a test case in taac-backend-gui, everything executes fine, but when trying to start the taac-web, I get the following ClassNotFoundException - the library that contains the class 'weblogic.security.SSL.TrustManager' is also in my local maven repository, and

Maven/Spring/Java: ClassNotFoundException - but I know class is there

陌路散爱 提交于 2019-12-24 10:36:09
问题 I have 2 maven projects set up like this: -com.wuntee.rsaAuthenticationManager (jar) -com.wuntee.taac (pom) --taac-backend-gui (jar) --taac-web (war) And 'com.wuntee.rsaAuthenticationManager' is a dep in 'taac-backend-gui'. When running a test case in taac-backend-gui, everything executes fine, but when trying to start the taac-web, I get the following ClassNotFoundException - the library that contains the class 'weblogic.security.SSL.TrustManager' is also in my local maven repository, and

Understanding cabal dependency messages

五迷三道 提交于 2019-12-24 08:56:47
问题 currently when I try to install GOA I get the following message : >sudo cabal install goa Resolving dependencies... In order, the following would be installed: directory-1.1.0.2 (reinstall) changes: filepath-1.3.0.0 -> 1.2.0.1 process-1.0.1.5 (new version) goa-3.1 (new package) cabal: The following packages are likely to be broken by the reinstalls: .... My question is whether this means that I currently have "filepath-1.3.0.0" as default, and cabal (upon a --force-reinstalls) is going to

How to let maven resolve transitive dependency for local dependency

柔情痞子 提交于 2019-12-24 08:12:43
问题 We have a project A which depends on project B which depends on library C. A and B are local projects while C is a public library in maven central repo. pom.xml for A: <name>ProjA/name> ... <dependency> <groupId>com.abc</groupId> <artifactId>ProjB</artifactId> <version>1.0</version> </dependency> pom.xml for B: <name>ProjB/name> ... <dependency> <groupId>org.apache.maven</groupId> <artifactId>C</artifactId> <version>2.23.2</version> </dependency> When run mvn dependency:tree -Dverbose in A,

Storm causes dependency conflicts on Ignite log4j

此生再无相见时 提交于 2019-12-24 07:50:07
问题 I try to run a storm topology on a Storm cluster The topology jar is created by provided. Inside topology bolt i want to read data from MyIgniteCache module but i get such a following error. I think the dependencies (:/usr/hdp/2.6.0.3-8/storm/lib/log4j-slf4j-impl-2.8.jar:/usr/hdp/2.6.0.3-8/storm/lib/log4j-core-2.8.jar:log4j) of storm-core cause conflict over ignite-log4j. ava.lang.IncompatibleClassChangeError: Implementing class at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0

Android MVP Dependency Rules

旧街凉风 提交于 2019-12-24 07:44:59
问题 I've read and tested much about MVP patterns in Android, but I'm here to ask your opinion about what could be the best practice if I want to respect both the "Dependency Rule" and the MVP pattern. How it is explained into many articles (see this link: http://fernandocejas.com/2014/09/03/architecting-android-the-clean-way/), our application must be divided into layers and only an outer layer can instantiate and use an inner layer. The inner layer receive all parameters (Variables, contexts,