maven-2

The following files have NOT been resolved when using mvn install?

江枫思渺然 提交于 2020-07-16 03:59:30
问题 greetings all i have a web application using (spring-hibernate) frameworks and when tried to build the application with maven2 using the command mvn install i get a build successful with the following note: The following files have NOT been resolved: [INFO] The following files have NOT been resolved: [INFO] antlr:antlr:java-source:sources:2.7.7 [INFO] com.sun.jdmk:jmxtools:java-source:sources:1.2.1 [INFO] com.sun.jmx:jmxri:java-source:sources:1.2.1 [INFO] commons-dbcp:commons-dbcp:java-source

Maven : “Caused by: java.lang.NoClassDefFoundError: com/omnesys/omne/om/OMN”

核能气质少年 提交于 2020-07-03 13:09:32
问题 I want to add 3rd party external jar into my maven repository. My project is in Spring Boot. Error : `Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner .java

How to install dependency when JAR name differs from folder version name?

本小妞迷上赌 提交于 2020-06-28 05:38:30
问题 I'm including a dependency from a custom Maven repository. The JAR I want to include is at the URL http://mvn.example.org/repositories/org/apache/foo/foo/1.2.3-4/1.2.3-4-h2.jar (Not the -h2 at the end; it's important later.) I've included http://mvn.example.org/repositories as a <repository> in my settings.xml , and set up my project's pom.xml to include <dependencies> <dependency> <groupId>org.apache.foo</groupId> <artifactId>foo</artifactId> <version>1.2.3-4</version> </dependency> ... <

Add generated build file to classpath

為{幸葍}努か 提交于 2020-06-14 06:25:54
问题 During my build I generate a build.properties files via the maven properties plugin (properties-maven-plugin) containing build information. What's the best way to have this file included in the generated jar? I don't want to put it into the src/main/resources directory as this would pollute my default resource directory. Is there not a "generated-resources" directory as there is with source? 回答1: I thought there was a default generated-resources directory, but I can't find any documentation

Add generated build file to classpath

拜拜、爱过 提交于 2020-06-14 06:24:48
问题 During my build I generate a build.properties files via the maven properties plugin (properties-maven-plugin) containing build information. What's the best way to have this file included in the generated jar? I don't want to put it into the src/main/resources directory as this would pollute my default resource directory. Is there not a "generated-resources" directory as there is with source? 回答1: I thought there was a default generated-resources directory, but I can't find any documentation

What are the official mirrors of the Maven Central Repository?

混江龙づ霸主 提交于 2020-05-25 05:43:25
问题 Does anyone know if a list of known (and working) Maven Central Repository (http://repo1.maven.org/maven2) mirrors? If not, what mirrors do you use when the central repository is down? 回答1: This is taken from @rvxnet's answer and an example of why link-only answer are not desirable. I've taken this from the 2015-05-20 WaybackMachine version of their link: Official, but not browseable: http://repo1.maven.org/maven2 http://uk.maven.org/maven2 Others: http://mirrors.ibiblio.org/pub/mirrors

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

房东的猫 提交于 2020-05-15 04:30:25
问题 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>