maven-3

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

Why do I get “No assembly descriptors found.” error while building this project?

故事扮演 提交于 2021-02-20 01:19:40
问题 I have a little project written in Kotlin. When I run clean compile assembly:single install , I get following error message: Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:single (default-cli) on project alma-econsim: Error reading assemblies: No assembly descriptors found. -> [Help 1] My jar-with-dependencies.xml is located in src/main/assembly and referenced in pom.xml like this: <plugin> <artifactId>maven-assembly-plugin</artifactId> <version>2.2-beta-5<

Why do I get “No assembly descriptors found.” error while building this project?

拜拜、爱过 提交于 2021-02-20 01:06:32
问题 I have a little project written in Kotlin. When I run clean compile assembly:single install , I get following error message: Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:single (default-cli) on project alma-econsim: Error reading assemblies: No assembly descriptors found. -> [Help 1] My jar-with-dependencies.xml is located in src/main/assembly and referenced in pom.xml like this: <plugin> <artifactId>maven-assembly-plugin</artifactId> <version>2.2-beta-5<

ClassNotFoundException in Maven project

江枫思渺然 提交于 2021-02-16 03:36:24
问题 There is a maven based project, which can be built by maven install , but throw exception when run the out jar: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/CommandLineParser Caused by: java.lang.ClassNotFoundException: org.apache.commons.cli.CommandLineParser at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang

ClassNotFoundException in Maven project

会有一股神秘感。 提交于 2021-02-16 03:33:29
问题 There is a maven based project, which can be built by maven install , but throw exception when run the out jar: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/CommandLineParser Caused by: java.lang.ClassNotFoundException: org.apache.commons.cli.CommandLineParser at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang

ClassNotFoundException in Maven project

跟風遠走 提交于 2021-02-16 03:32:24
问题 There is a maven based project, which can be built by maven install , but throw exception when run the out jar: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/CommandLineParser Caused by: java.lang.ClassNotFoundException: org.apache.commons.cli.CommandLineParser at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang

How to disable jar creation in commandline in a maven project?

允我心安 提交于 2021-02-11 16:32:05
问题 I have a maven project for which I'm running two separate builds. In one build I want to save the build time by disabling the jar creation of maven modules in it.(There are 45 maven modules). There is a Maven-Jar-Plugin that is being used to create the jars. I want to conditionally disable the jar creation at the command line, that is, looking for something similar to -Dskiptests used to skip the unit tests though there is a surefire plugin by default. 回答1: The maven-jar-plugin does not

How to disable jar creation in commandline in a maven project?

不问归期 提交于 2021-02-11 16:31:22
问题 I have a maven project for which I'm running two separate builds. In one build I want to save the build time by disabling the jar creation of maven modules in it.(There are 45 maven modules). There is a Maven-Jar-Plugin that is being used to create the jars. I want to conditionally disable the jar creation at the command line, that is, looking for something similar to -Dskiptests used to skip the unit tests though there is a surefire plugin by default. 回答1: The maven-jar-plugin does not

Maven deploy artifact

一笑奈何 提交于 2021-02-11 15:19:23
问题 I am using mvn deploy:deploy-file to upload a artifact to the remote repository. I am having - Apache2.2 and Maven-3.0.3 Following is the command I am using - mvn -X deploy:deploy-file -Durl=http://myRepos.com/repo/ -DrepositoryId=repo-mine -Dfile=temp.jar -DgroupId=com.yagnaiq -DartifactId=temp -Dversion=1.0 -Dpackaging=jar -Dclassifier=test -DgeneratePom=true -DgeneratePom.description="My POM" -DrepositoryLayout=default -DuniqueVersion=false My settings.xml contains an entry for