I've been doing this for all of the jar files that my Spring MVC project needs: call mvn install:install-file -DgroupId=vegetables -DartifactId=potatoes -Dversion=1.0 -Dfile=vegetables-1.0.jar -Dpackaging=jar -DgeneratePom=true Recently I must have exceeded some limit on how many dependencies you can list in your pom.xml file because I got an error that said: Your command line is too long
我一直在为我的Spring MVC项目需要的所有jar文件执行此操作: call mvn install:install-file -DgroupId=vegetables -DartifactId=potatoes -Dversion=1.0 -Dfile=vegetables-1.0.jar -Dpackaging=jar -DgeneratePom=true 最近,我必须超过一些限制你可以在你的pom.xml文件中列出多少依赖,因为我得到一个错误,说: Your command line is too long 所以我从pom.xml中删除了一些依赖项,我的项目不再使用,并且我能够再次使
I've searched on internet for quite some time and I'm unable to figure out how to configure the maven-war plugin or something alike so that the system dependencies are included in the built-war (WEB-INF/lib folder) I use the maven dependency plugin in case of a jar-build as : <plugin> <artifactId>maven-dependency-plugin</artifactId> <executions>
我在互联网上搜索了相当长的一段时间,我无法弄清楚如何配置maven-war插件或类似的东西,以便系统依赖包含在内建的war(WEB-INF / lib文件夹) 在构建jar的情况下,我使用maven依赖项插件: <plugin> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <phase>install</phase> <goals> &
What would be the easiest way to tell Gradle the following: Retrieve 'junit' dependency and take its latest 'release' version. Managing Maven and Ivy repositories is sort of new to me. I tried the following steps and they result in Could not resolve dependency ... error: Write compile "junit:junit:latest.release" with repositories set to only mavenCentral() (howev
告诉Gradle最简单的方法是什么? 检索'junit'依赖关系并采用其最新的'发布'版本。 管理Maven和Ivy仓库对我而言是一种新鲜感。 我尝试了以下步骤,结果导致Could not resolve dependency ...错误: compile "junit:junit:latest.release" ,将其设置为只有mavenCentral() (但是,如果我说“junit:junit:4.10”,它会起作用)。 使用库设置以下方式compile "junit:junit:latest.release&
This question already has an answer here: What causes and what are the differences between NoClassDefFoundError and ClassNotFoundException? 15 answers How can I create an executable JAR with dependencies using Maven? 33 answers If you came across the error:Not able to run java main method using maven do this it worked for me: Reason for the error: The reason for this error is the jar file
这个问题在这里已经有了答案: NoClassDefFoundError和ClassNotFoundException之间的区别是什么? 15个答案 我怎样才能创建一个可执行的JAR与依赖使用Maven? 33个答案 如果遇到错误:无法使用maven运行java main方法,请执行以下操作:错误原因:此错误的原因是运行Maven项目的jar文件或依赖项未正确安装。 解决方案:在计算机类型命令“cmd”的地址栏中转到项目文件夹(例如:D: office OIA-service-app),然后按回
This question already has an answer here: How can I create an executable JAR with dependencies using Maven? 33 answers What do you mean it got rid of the jars? were they ever in the final artifact?? Because based on your pom I don't see how that was the case. You need to use the maven-assembly-plugin to create an uberjar with all the dependencies inside. If the jars were at some poin
这个问题在这里已经有了答案: 我怎样才能创建一个可执行的JAR与依赖使用Maven? 33个答案 你是什么意思它摆脱了罐子? 他们是否曾经在最后的神器? 因为根据你的朋友,我不明白这是怎么回事。 你需要使用maven-assembly-plugin来创建一个uberjar,其中包含所有的依赖关系。 如果罐子在某个时候打包了,那么请提供更多信息,说明在停止打包依赖关系时所做的更改 你可以看到有关如何创建uberjar的更多信息的答案,但
This question already has an answer here: How can I create an executable JAR with dependencies using Maven? 33 answers you can generate a jar from your maven project including all dependencies. add the following plugin to your pom of your main maven project. the mvn assembly:single will create a additional jar ( 'projekt'-jar-with-dependencies.jar ) with all dependencies, which ca
这个问题在这里已经有了答案: 我怎样才能创建一个可执行的JAR与依赖使用Maven? 33个答案 你可以从你的Maven项目中生成一个jar包括所有的依赖项。 将以下插件添加到您的主maven项目的pom中。 mvn assembly:single将创建一个附加的jar( 'projekt'-jar-with-dependencies.jar )与所有的依赖关系,这些依赖关系可以包含在你的非maven项目中: <plugin> <groupId>org.apache.maven.plugins</gro
This question already has an answer here: How can I create an executable JAR with dependencies using Maven? 33 answers 使用maven-assembly-plugin来创建一个胖jar文件,以便为您的客户端应用程序提供所有必需的库。
这个问题在这里已经有了答案: 我怎样才能创建一个可执行的JAR与依赖使用Maven? 33个答案 使用maven-assembly-plugin来创建一个胖jar文件,以便为您的客户端应用程序提供所有必需的库。
This question already has an answer here: How can I create an executable JAR with dependencies using Maven? 33 answers 把这个maven程序集插件放到你的pom.xml中: <plugin> <artifactId>maven-assembly-plugin</artifactId> <executions> <execution> <phase>package</phase> <g
这个问题在这里已经有了答案: 我怎样才能创建一个可执行的JAR与依赖使用Maven? 33个答案 把这个maven程序集插件放到你的pom.xml中: <plugin> <artifactId>maven-assembly-plugin</artifactId> <executions> <execution> <phase>package</phase> <goals> &
This question already has an answer here: How can I create an executable JAR with dependencies using Maven? 33 answers jar-with-dependencies is not correct in maven-jar-plugin. Replace maven-jar-plugin with maven-assembly-plugin look this http://www.mkyong.com/maven/create-a-fat-jar-file-maven-assembly-plugin/
这个问题在这里已经有了答案: 我怎样才能创建一个可执行的JAR与依赖使用Maven? 33个答案 jar-with-dependencies在maven-jar-plugin中是不正确的。 用maven-assembly-plugin替换maven-jar-plugin 看这个http://www.mkyong.com/maven/create-a-fat-jar-file-maven-assembly-plugin/
This question already has an answer here: How can I create an executable JAR with dependencies using Maven? 33 answers As per request in the comments I post this answer: The jar is built using the maven-jar-plugin, so you can just specify the main-class to it as per the documentation: http://maven.apache.org/shared/maven-archiver/examples/classpath.html
这个问题在这里已经有了答案: 我怎样才能创建一个可执行的JAR与依赖使用Maven? 33个答案 根据评论中的要求,我发布了这个答案: 该jar是使用maven-jar-plugin构建的,因此您可以按照文档指定它的主要类:http://maven.apache.org/shared/maven-archiver/examples/classpath.html