maven-dependency-plugin

How To Add Maven Dependency (Android Studio)

橙三吉。 提交于 2019-12-07 05:49:22
问题 I have this code below.. <dependency> <groupId>me.gujun.android.taggroup</groupId> <artifactId>library</artifactId> <version>1.4</version> <type>apklib</type> </dependency> But where do you put this in Android Studio? I've already placed a dependency in build.gradle which is compile 'me.gujun.android.taggroup:library:1.4@aar' 回答1: In Android Studio 3.0 and above, you can just copy <dependency> <groupId>me.gujun.android.taggroup</groupId> <artifactId>library</artifactId> <version>1.4</version>

How to determine which Maven dependency is needing a missing dependency?

江枫思渺然 提交于 2019-12-06 02:58:09
问题 I am trying to build an old Maven project and I'm getting the error: [ERROR] Failed to execute goal on project myapp: Could not resolve dependencies for project com.initech.myapp:war:${buildVersion}: Failure to find tangosol:tangosol-coherence:jar:3.3-rc1 in http://mvnrepo.initech.com/archiva/repository/initechrepo was cached in the local repository, resolution will not be reattempted until the update interval of initechrepo has elapsed or updates are forced -> [Help 1] I looked in the pom

How can I download a ZIP file with the Maven dependency plugin?

自作多情 提交于 2019-12-06 00:58:32
I'm trying to download a couple of dependencies from the command line using dependency:copy -Dartifact=... However, one artifact looks like this as dependency <dependency> <groupId>foo</groupId> <artifactId>xml-schemas</artifactId> <version>1.10.0-SNAPSHOT</version> <classifier>public</classifier> <type>zip</type> </dependency> How can I download this? What are the correct Maven coordinates? Make sure you are using version 2.7 or later of the dependency plugin. Then it's -Dartifact=<groupId>:<artifactId>:<version>:<type>:<classifier> There is an example in the dependency:get section of the

Why were Spring Boot starter dependencies designed to be used contrary to the stated intent of Maven's transitive dependency mechanisms? [closed]

心已入冬 提交于 2019-12-05 13:48:41
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . According to the Maven dependency documentation it is intended that all compile dependencies be explicitly listed, rather than transitively used at compile time: it is intended that [transitive compile dependencies] should be runtime scope instead, so that all compile dependencies

mvn dependency:tree fails on trivial project

痞子三分冷 提交于 2019-12-04 11:34:42
问题 I've got a pretty complex project (about 100 modules) on which I'd like to run mvn dependency:tree . It fails, complaining about dependencies it cannot resolve. The project otherwise compiles fine. So I created the most basic project I could come up and it still fails with the same error. Obviously either I must be doing some very basic mistake or the maven-dependency-plugin has not been used by anyone yet. Here are the three POMs im by test project: pom.xml: <?xml version="1.0" encoding="UTF

Maven: Extract dependency resources before test

风流意气都作罢 提交于 2019-12-04 08:36:40
I have a multimodule Maven project. One subproject hosts XSL/XML resource files. The other project hosts Java code that needs to use these files in its unit tests. In the dependency's jar, the resources lie in the folder xml-resources . I found this example and tried to change it for my needs: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>2.4</version> <executions> <execution> <id>resource-dependencies</id> <phase>process-test-resources</phase> <goals> <goal>unpack-dependencies</goal> </goals> <configuration> <classifier>xml

How to determine which Maven dependency is needing a missing dependency?

血红的双手。 提交于 2019-12-04 07:46:16
I am trying to build an old Maven project and I'm getting the error: [ERROR] Failed to execute goal on project myapp: Could not resolve dependencies for project com.initech.myapp:war:${buildVersion}: Failure to find tangosol:tangosol-coherence:jar:3.3-rc1 in http://mvnrepo.initech.com/archiva/repository/initechrepo was cached in the local repository, resolution will not be reattempted until the update interval of initechrepo has elapsed or updates are forced -> [Help 1] I looked in the pom.xml of MyApp and there is no mention of "tangosol" and there is no parent POM so I figure this must be a

Artifact has not been packaged yet - maven-dependency-plugin

做~自己de王妃 提交于 2019-12-03 23:28:44
When I build a multi module maven project(using mvn clean compile ) where one dependency(part of the build reactor) is copied into another using dependency:copy, then maven complains with the below error. Artifact has not been packaged yet. When used on reactor artifact, copy should be executed after packaging: see MDEP-187 is thrown This is perfectly fine, Maven can't copy the dependent jar because it has not been packaged yet and the dependency has to be resolved from the local project and not from the repository. Lets say project A is being copied into project B using the dependency:copy

Gradle equivalent of maven-dependency-plugin

谁说胖子不能爱 提交于 2019-12-03 12:28:45
My root problem is that when running "spring-test"-based tests for my controllers and Freemarker views I need to have all taglibs inside WEB-INF/lib folder - otherwise freemarker will not find them during tests. I solved this issue with the following piece of maven configuration. It actually copies taglibs jars to src/main/webapp/WEB-INF/lib folder before running tests. I don't want to clear this folder since the problem is the same when running this test for the IDE. <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>2.3</version>

Declare Maven dependency as test runtime only

北慕城南 提交于 2019-12-03 02:34:21
What is the best way to declare a Maven dependency as only being used for the test runtime (but not test compilation) class path? Specifically, I want slf4j-api (a logging facade) as a typical, compile-scope dependency, but I want slf4j-simple (the barebones implementation suitable for unit tests) only on the test runtime class path (it's not needed for test compilation). I've been doing this: <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> <scope>test</scope> </dependency