dependency-management

How to check pom.xml for updated dependencies

不问归期 提交于 2019-12-03 02:59:25
问题 I am fairly new to Maven and pom.xml. Is there a way I can find out which of my dependencies that are outdated, so that I can update version numbers in my pom.xml. In other languages, for instance, Ruby has the command gem list outdated that gives me a list of dependencies (rubygems) I can update I am using IntelliJ Idea if that can help. 回答1: You can do this with the Versions Maven Plugin. Check the following goals: versions:display-dependency-updates scans a project's dependencies and

How to handle app dependencies to 3d party

做~自己de王妃 提交于 2019-12-03 02:58:07
The app I'm currently developing depends on a third party application (OIFileManager). My question is what is the general way to handle these kind of dependancies? Tell the user to resolve it? Embed the 3d-party apk (if its license allows it) Automatically resolve it (maybe Android market has a system for it). There's no automatic way. The user will have to install the dependency from Android Market (or some other source) manually. Intent scanIntent = new Intent("com.google.zxing.client.android.SCAN"); Intent marketIntent = new Intent(ACTION_VIEW, Uri.parse("market://details?id=com.google

Find hidden dependencies in Ivy

若如初见. 提交于 2019-12-03 02:51:17
I'm using Apache Ivy + IvyDE for getting my project's dependencies, which are: <dependency org="com.google.guava" name="guava" rev="r08" /> <!-- logging --> <dependency org="org.slf4j" name="jcl-over-slf4j" rev="1.6.1" /> <dependency org="ch.qos.logback" name="logback-classic" rev="0.9.27" /> <!-- database --> <dependency org="org.hibernate" name="hibernate-entitymanager" rev="3.6.2.Final" /> <dependency org="org.hibernate" name="hibernate-validator" rev="4.1.0.Final" /> <dependency org="org.hibernate" name="hibernate-c3p0" rev="3.6.2.Final" /> <dependency org="mysql" name="mysql-connector

How to deploy OSGi apps and dependencies?

余生长醉 提交于 2019-12-03 02:48:34
问题 OSGi seems to have an excellent benefit of having small deployable artifacts by not wrapping dozens of JAR dependencies into a lib directory. However, I can't find anything that tells me an easy, reliable way to deploy dependencies to a container. For instance, I have an application that uses CXF and several Spring subprojects. If I need to deploy this application to a new Glassfish server, what would be the best way to do so, ensuring that all dependencies get installed? I'm using Maven, and

Include JAXB using Maven

可紊 提交于 2019-12-03 02:23:14
Working on my 1.6.0_16 JDK, I generated my stub classes from a WSDL using Apache CXF 2.5.2, which uses the most recent jaxb-api 2.2. I know it's possible to have it use jaxb-api 2.1, but in order to avoid compatibility issues, I would rather have it use the current version. Since my JDK features jaxb 2.1, the build fails with the following message: error at @XmlElementRef(name = "protocol", namespace = "urn:ch.beo.emc", type = JAXBElement.class, required = false) Therefore, I tried to make maven include the most recent jaxb api and impl using the following dependencies. <dependency> <groupId

Maven equivalent for python [closed]

旧时模样 提交于 2019-12-03 01:32:59
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I'm a java developer/python beginner, and I'm missing my maven features, particularly dependency management and build automation (I mean you don't build, but how to create a package for deployment?) Is there a python equivalent to achieve these features? Note: I use python 2.x Thanks. 回答1: Python uses distutils

Multiple Dependency Scopes in POM

独自空忆成欢 提交于 2019-12-03 01:03:23
I have a dependency in my POM that needs to be set to "provided" so it is not included at compilation, but it can still be referenced within my project. I would like the same dependency to have a scope of "test" when I go to run tests so I do not have to manually add the jar to my classpath. Is there a way to do this or achieve similar results? Reasoning behind this is that I have some common jars that are provided in my JBOSS lib directory, so I want to use these and keep the "provided" scope of them for the war that is built. However, when I run JUnits from the command line, I want to use

Transitive Dependency causing Conflicting version of same DLL

一世执手 提交于 2019-12-02 23:56:33
What is the best practice in the .NET world to manage transitive dependencies that cause version conflict ? In details : Project A Depends on Project B which in turn depends on library C also Project A also depends on Project X which depends on a DIFFERENT and (potentially) incompatible version of library C. A->B->Cv1.0 & A->X->Cv2.0 where Cv1.0 <> Cv2.0 Is there a way to make this work ? Can it be done WITHOUT using the GAC ? Can it be done even if B and X are in binary format only (source not accessible) ? In other words is there a way where I can have Project B and X each using their own

How is JavaScript library bloat mitigated with Web Components?

冷暖自知 提交于 2019-12-02 20:13:13
As someone who has tried to find a way to help content authors develop and maintain big web sites by creating (HTML) components for years, I'm really excited to see web components gaining tracction at w3c, google and mozilla. But it seems to me that, there is no measure against javascript library bloat in the specifications. Say that I develop component A which has a dependency for underscore.js and want to use components B and C which have dependencies on lodash.js version 1.*, etc. I don't see any way to flag dependencies and library versions. This could lead to huge library bloat when we

Offline installation of a list of packages: getting dependencies in order

只谈情不闲聊 提交于 2019-12-02 19:29:20
I've got the source files for a bunch of packages and their dependencies that I want to install on computers that have no internet access. I want to install all of these on other computers using as USB stick, but the install fails for some packages because the dependencies are not installing before the packages. How can I get the dependencies to be installed in order, before the packages that needs them? Here's my current method to obtain the packages, their dependencies, and get them in the correct order: # find the dependencies for the packages I want # from http://stackoverflow.com/a