dependencies

How to upgrade eclipse from Galileo to Helios in Ubuntu 10.10 via “Help->Install New Software…”

南笙酒味 提交于 2019-12-11 07:59:14
问题 I know the direct-download method but still want to make the upgrade with the help of Eclipse. When I plan to do so, the following errors rise: Cannot complete the install because of a conflicting dependency. Software being installed: Eclipse SDK 3.6.2.M20110210-1200 (org.eclipse.sdk.ide 3.6.2.M20110210-1200) Software currently installed: Eclipse Platform 3.5.2 (Eclipse Platform 3.5.2) Only one of the following can be installed at once: Equinox Provisioning Publisher 1.1.2.v20100824-2220 (org

Subproject dependencies in SBT

家住魔仙堡 提交于 2019-12-11 07:29:13
问题 I am having a strange problem with SBT subprojects which I think is dependency related. Here's my setup: I have an SBT project with two subprojects A and B. A contains a class and companion object MyA B depends on A. B contains an object MyB which has a main method. When I try to execute MyB from the SBT prompt, I get a NoSuchMethodError on MyA . This is not a ClassNotFoundException , but maybe it's happening because it sees the MyA class on the classpath, but not the MyA object. As a sanity

MSVC unresolved external symbol linking executables

好久不见. 提交于 2019-12-11 07:24:58
问题 I have two existing executables A and T, in the same solution that both ran just fine before I touched them. In executable A is a header defining a class P, and a prototype for a static instance MyP. The definitions are compiled in project A. In executable T, I wanted to call member functions of MyP in project A, so I added dllimport/export macros to the declarations of the class and MyP in the headers (not at the definitions), and included the headers in project T. The dllimport/export

Declare dependency to war file in Gradle

↘锁芯ラ 提交于 2019-12-11 07:18:55
问题 Based on the gradle docs, to define external jars means adding to build.gradle the following snippet (considering you have {project_root}/libs/foo.jar) in place: dependencies { runtime files('libs/foo.jar') } However, using the same dependency declaration for *.war files doesn't work. Is this even possible? The project I'm trying to depend on builds to a war file. 回答1: Since war layout is different from jar file standard layout, it's not possible to declare war a dependency file to a java

SLF4J: java.lang.IllegalStateException: org.slf4j.LoggerFactory could not be successfully initialized

非 Y 不嫁゛ 提交于 2019-12-11 07:11:43
问题 I have the following maven dependency in my pom file: <!-- depends on slf4j-api, log4j --> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> <version>1.6.4</version> </dependency> When I deploy the project into tomcat, I am getting the error message: SEVERE: Exception sending context destroyed event to listener instance of class org.springframework.web.context.ContextLoaderListener java.lang.ExceptionInInitializerError at org.springframework.web.context

Upgrading webxml 1.4 to 1.4.1

十年热恋 提交于 2019-12-11 06:57:17
问题 I have an irritating problem with webxml plugin. I need version 1.4.1. I have webxml 1.4 and when I try to upgrade it from STS 2.8.1 it gets upgraded but it's like it rolls back the changes immediately. I also tried upgrading it from Grails console and from command prompt. When I upgrade webxml from command promt it gets upgraded but then in STS I lose dependencies. And when I refresh dependencies from Grails tools STS downgrades webxml to 1.4. Please help. Grails 1.3.7 STS 2.8.1 Plugins:

maven - inter workspace dependencies

♀尐吖头ヾ 提交于 2019-12-11 06:48:21
问题 i am using eclipse and maven integration. maven install puts the resources to the local repositories. local repositories is divided into "local repository" and "workspace projects" as shown in eclipse view "Maven Repositories". The resource is unvailable to be linked by other projects of a different workspace. is there a way having "maven install" to put shnapshots to the "top" local repository available for any project? or do i missunterstand the concept? 回答1: Workspace projects is a just a

cyclic dependency … how to solve?

帅比萌擦擦* 提交于 2019-12-11 06:46:43
问题 I think I have a cyclic dependency issue and have no idea how to solve it.... To be as short as possible: I am coding something like a html parser. I have a main.cpp file and two header files Parser.h and Form.h. These header files hold the whole definitions... (I'm too lazy to make the corresponding .cpp files... Form.h looks like this: //... standard includes like iostream.... #ifndef Form_h_included #define Form_h_included #include "Parser.h" class Form { public: void parse (stringstream&

Dependencies and Repositories?

随声附和 提交于 2019-12-11 06:15:10
问题 I am new to Maven and I previously saw another question regarding the similar thing but I am still confused. What is the difference between dependencies and repository in relation to libraries? I am aware that dependencies contain libraries that the project can be referred to. But how would it relate to external dependencies? 回答1: When you use maven there is a chain of repostitories. Each repository containers a store of library code, uniquely identified by group/artifact/version (GAV). 1) At

Dagger/MissingBinding java.util.Map<java.lang.Class<? extends ViewModel>,Provider<ViewModel>> cannot be provided without an @Provides-annotated method

断了今生、忘了曾经 提交于 2019-12-11 06:14:23
问题 This is how I'm trying to provide my ViewModelFactory : @Suppress("UNCHECKED_CAST") @Singleton class ViewModelFactory @Inject constructor( private val viewModels: MutableMap<Class<out ViewModel>, Provider<ViewModel>> ) : ViewModelProvider.Factory { override fun <T : ViewModel?> create(modelClass: Class<T>): T = viewModels[modelClass]?.get() as T } @Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER) @kotlin.annotation.Retention