maven-dependency-plugin

Export Maven dependencies and maintain repository folder structure

ぃ、小莉子 提交于 2021-02-20 19:15:41
问题 I'm trying to know whether it's possible to export/copy dependencies of a project managed using Maven while maintaining the folder structure that is adopted in the local repository. The root of my need is that I have amassed through almost ten years a lot of artifacts in my local repository (~8GB). I am no longer working on those old projects from previous assignments that drew most of the artifacts in and now, I need to move just what is needed for one single project (~650MB of artifacts) to

Export Maven dependencies and maintain repository folder structure

橙三吉。 提交于 2021-02-20 19:15:39
问题 I'm trying to know whether it's possible to export/copy dependencies of a project managed using Maven while maintaining the folder structure that is adopted in the local repository. The root of my need is that I have amassed through almost ten years a lot of artifacts in my local repository (~8GB). I am no longer working on those old projects from previous assignments that drew most of the artifacts in and now, I need to move just what is needed for one single project (~650MB of artifacts) to

Customize dependency file names in maven

蹲街弑〆低调 提交于 2021-02-17 06:22:06
问题 I'm using maven-dependency-plugin to copy dependency jars into specific folder. I'm looking the way to customize copied jar file names using dependency properties: groupid, artifactid and version. example: I have following dependency <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-lang3</artifactId> <version>3.3.2</version> </dependency> I'd like to copy dependency jar as "org.apache.commons.commons-lang3-3.3.2.jar" How can I accomplish this? 回答1: I was able to achieve

Failed to collect Maven dependencies in Java HelloWorld when deploying to heroku

倖福魔咒の 提交于 2021-02-11 17:29:43
问题 I'm playing with Java and heroku following the heroku guide. But with few modifications. In this case I use JDK 1.7, Jetty 8.1.2.v20120308 and Maven dependencies plugin 2.7 (Because it seems, 2.4 couldn't be built) All is built ok locally with mvn package but when I use git push heroku master to deploy on heroku, I get this message: [ERROR] Failed to execute goal on project helloart: Could not resolve dep endencies for project main.java:helloart:jar:1.0-SNAPSHOT: Failed to collect dep

maven-dependency-plugin: exclude .jar files

青春壹個敷衍的年華 提交于 2021-02-08 07:39:49
问题 I am using maven-dependency-plugin. I need to download only a ZIP file and exclude all jar files. Plugin configuration looks the following way. <execution> <id>copy-dependencies</id> <phase>package</phase> <goals> <goal>copy-dependencies</goal> </goals> <configuration> <!-- <outputDirectory>${project.build.directory}</outputDirectory> --> <overWriteReleases>false</overWriteReleases> <overWriteSnapshots>false</overWriteSnapshots> <overWriteIfNewer>true</overWriteIfNewer> <excludes>**/*.jar<

Maven dependency for LDAP library could not be resolved in OSGi

天大地大妈咪最大 提交于 2021-02-05 09:31:09
问题 I am trying to import import org.apache.commons.pool2.impl.GenericObjectPool; import org.apache.commons.pool2.impl.GenericObjectPoolConfig; import org.apache.directory.ldap.client.api.DefaultLdapConnectionFactory; import org.apache.directory.ldap.client.api.LdapConnection; import org.apache.directory.ldap.client.api.LdapConnectionConfig; import org.apache.directory.ldap.client.api.LdapConnectionPool; import org.apache.directory.ldap.client.api.ValidatingPoolableLdapConnectionFactory; import

How can I select the output of maven dependency:list?

為{幸葍}努か 提交于 2020-05-14 09:07:06
问题 I have a big group of projects and they depend on each others with pom.xml . I want to get the relationships of these dependencies among projects in a file by shell. mvn dependency:list is the key command, but the result is not satisfied. https://maven.apache.org/plugins/maven-dependency-plugin/list-mojo.html with the guide, i have use some parameters, but the result is not good enough now the command is: mvn dependency:list -DincludeGroupIds=group -DoutputFile=dependency.xml -DappendOutput

How to depend on this maven project

偶尔善良 提交于 2020-01-17 09:48:08
问题 My projects consists of three sub-projects, and my parent pom looks like: <groupId>com.bwort.core</groupId> <artifactId>bwort</artifactId> <packaging>pom</packaging> <version>0.0.1-SNAPSHOT</version> <name>bwort</name> <modules> <module>proj1</module> <module>proj2</module> <module>proj3</module> </modules> Now my project needs to dependent this project below, which comprises three subprojects, with a parent pom. In particular, it already has a parent as below: https://github.com/cmusphinx