maven-2

How to make maven-pmd-plugin support the latest PMD release?

浪尽此生 提交于 2020-05-15 04:30:05
问题 http://maven.apache.org/plugins/maven-pmd-plugin/ is currently in version 2.4 which supports PMD version 4.2.2 Is it possible to use PMD version 4.2.5 with this plugin, if so how do we do this? 回答1: There is a Jira Issue for this, see MPMD-97 (I suggest to vote for it). For now, you can try to upgrade locally the pmd version used in the plugin with: <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-pmd-plugin</artifactId> <version>2.4</version>

why is “test-jar” dependency required for “mvn compile”

冷暖自知 提交于 2020-05-09 19:09:15
问题 I'm having trouble using test-jar dependencies in a multi-module project. For example, when I declare that the cleartk-syntax module depends on the cleartk-token module's test-jar like this (the full code is here): <modelVersion>4.0.0</modelVersion> <groupId>org.cleartk</groupId> <artifactId>cleartk-syntax</artifactId> <version>0.5.0-SNAPSHOT</version> <name>cleartk-syntax</name> ... <dependencies> ... <dependency> <groupId>org.cleartk</groupId> <artifactId>cleartk-token</artifactId> <version

Is it possible to rename a maven jar-with-dependencies?

牧云@^-^@ 提交于 2020-05-09 17:33:27
问题 I'm currently using the jar-with-dependencies assembly to create such a jar. However, the name of my jar is a bit long. Since this jar is being used by RPG programs on an AS400, I'd like to shorten it to make life a bit easier for those developers. But, other than by hand, I've not found a way to rename the jar from the usual project-name-version-classifier-jar-with-dependencies.jar . I'd like something like project-name-version-classifier-full.jar Is there anyway to do this without basically

How to change maven logging level to display only warning and errors?

最后都变了- 提交于 2020-03-08 06:06:28
问题 I want to prevent maven from displaying INFO messages, I want to see only WARNINGS and ERRORS (if any). How can I achieve this, preferably by changing the command line that calls maven? 回答1: Answering your question I made a small investigation because I am also interested in the solution. Maven command line verbosity options According to http://books.sonatype.com/mvnref-book/reference/running-sect-options.html#running-sect-verbose-option -e for error -X for debug -q for only error Maven

How to change maven logging level to display only warning and errors?

笑着哭i 提交于 2020-03-08 06:03:44
问题 I want to prevent maven from displaying INFO messages, I want to see only WARNINGS and ERRORS (if any). How can I achieve this, preferably by changing the command line that calls maven? 回答1: Answering your question I made a small investigation because I am also interested in the solution. Maven command line verbosity options According to http://books.sonatype.com/mvnref-book/reference/running-sect-options.html#running-sect-verbose-option -e for error -X for debug -q for only error Maven

Maven and native libraries

隐身守侯 提交于 2020-02-27 08:36:09
问题 I use maven in my java project, and I don't understand how to add in native libraries. In my non-maven project I did it via CLASSPATH. I use NetBeans and maven in my current java project. 回答1: If you just want to add the native libraries to the class path, try to put them in src/main/resources . Update: You can specify where resources exist in the POM: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven

Maven and native libraries

独自空忆成欢 提交于 2020-02-27 08:36:06
问题 I use maven in my java project, and I don't understand how to add in native libraries. In my non-maven project I did it via CLASSPATH. I use NetBeans and maven in my current java project. 回答1: If you just want to add the native libraries to the class path, try to put them in src/main/resources . Update: You can specify where resources exist in the POM: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven

Failed to read artifact descriptor for maven-resources-plugin

只愿长相守 提交于 2020-02-24 08:51:09
问题 Stage : I am trying to compile a Maven project in Eclipse (Spring Tool Suite, version: 3.2.0.RELEASE ). Each project compilations throws this: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5 Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to

Failed to read artifact descriptor for maven-resources-plugin

别说谁变了你拦得住时间么 提交于 2020-02-24 08:46:33
问题 Stage : I am trying to compile a Maven project in Eclipse (Spring Tool Suite, version: 3.2.0.RELEASE ). Each project compilations throws this: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5 Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to

Failed to read artifact descriptor for maven-resources-plugin

僤鯓⒐⒋嵵緔 提交于 2020-02-24 08:45:26
问题 Stage : I am trying to compile a Maven project in Eclipse (Spring Tool Suite, version: 3.2.0.RELEASE ). Each project compilations throws this: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5 Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to