maven-plugin

No plugin found for prefix 'archetype' in the current project and in the plugin groups

送分小仙女□ 提交于 2020-02-07 06:11:04
问题 I am new to maven and these posts have been of quite a help to me. I am working in a big company where firewall is on and when I check my proxy setting, it shows Direct. Now I am facing this similar issue (of not able to establish) and have tried almost all the baove options mentioned in this post. Could any one help me please in finding the solution What I am doing, After installing and setting up maven, I did mvn -version to get below result Apache Maven 3.2.5

How does Maven resolve plugin versions?

亡梦爱人 提交于 2020-02-01 00:47:33
问题 I'm reading the docs and still confused as to how Maven is deciding which versions of plugins to download. For example, consider this simple scenario: an empty local repository a default settings.xml run a simple maven command. for example, mvn archetype:generate for the maven-archetype-quickstart as described in the Maven in 5 Minutes doc. After running the command, the first thing Maven does is download a bunch of plugins. Some of the plugins Maven is downloading include: maven-clean-plugin

Choosing dependency version in maven and maven plugin

社会主义新天地 提交于 2020-01-25 07:25:08
问题 I have a maven plugin which is using hsqldb 1.8.0.10. In my pom.xml from the plugin, it is declared like this: <dependency> <groupId>hsqldb</groupId> <artifactId>hsqldb</artifactId> <version>1.8.0.10</version> </dependency> But if I run that plugin from another maven project, and that project has a newer version of hsqldb (for instance 1.9.0), how can I configure my plugin that he will use the newest version of hsqldb, without changing it's pom.xml? And is it possible to do this the other way

Maven not using the local repo

隐身守侯 提交于 2020-01-24 02:44:26
问题 I'm using maven without m2e, my mvn install is failing because a plugin is not available anymore on maven central. I'm working with an old pom.xml dating from 2008 and must uses maven-cdk-plugin version 3.3.3.Final. Since it was not available anymore I took it on someone else computer and putted it in my .m2 local repo. .m2\org\richfaces\cdk\maven-cdk-plugin\3.3.3.Final however I'm still getting this error. [ERROR] Plugin org.richfaces.cdk:maven-cdk-plugin:3.3.3.Final or one of its depe

Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java

…衆ロ難τιáo~ 提交于 2020-01-23 11:45:11
问题 I am trying to execute the testNG main class using pom.xml file by using the below command in Maven Run Configurations . exec:java -Dexec.mainClass=com.selenium.controls.TestNGMainClass Here, I am using Java 8 . But I got the below error. [INFO] ------------------------------------------------------------------------ [INFO] Building seleniumScriptsRegression 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- exec-maven-plugin:1.6.0

Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java

旧街凉风 提交于 2020-01-23 11:44:55
问题 I am trying to execute the testNG main class using pom.xml file by using the below command in Maven Run Configurations . exec:java -Dexec.mainClass=com.selenium.controls.TestNGMainClass Here, I am using Java 8 . But I got the below error. [INFO] ------------------------------------------------------------------------ [INFO] Building seleniumScriptsRegression 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- exec-maven-plugin:1.6.0

PMD coulnd't find ruleset

眉间皱痕 提交于 2020-01-23 03:09:04
问题 I'm on creating a maven based java project, which contains the PMD maven plugin. I use my own rule set XML and it works like a charm, except two rule sets: the emptycode and the unnecessary : when I run the build, maven says: " can't find resource ". The role definitions look like: <role ref="rulesets/emptycode" /> and <role ref="rulesets/unnecessary" /> In every other cases, this kind of definition works. What I found out is that: there is a rule set with the name " unnecessary " under

Compilation failure in maven

空扰寡人 提交于 2020-01-17 12:23:27
问题 I don't know why and already read many articles about this. But I set every part related the setting java version to 1.7. But It still occurs the error [WARNING] The requested profile "anyframe" could not be activated because it does not exist. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project faro-jpa: Compilation failure: Compilation failure: [ERROR] /D:/workspace/camel/faro-jpa/src/main/java/com/sds/redca/hub/admin/module

Mule Cookbook Anypoint connector - build failed

前提是你 提交于 2020-01-17 03:12:10
问题 pull this from this directory and perform a maven build git clone https://github.com/mulesoft/mule-cookbook.git The following is the error received towards the 2nd last step [ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.3.1:enforce (default-enforce) on project cookbook-connector: org.apache.maven.plugins.enforcer.RequireJavaVersion failed with message: [ERROR] Detected JDK Version: 1.8.0-77 is not in the allowed range [1.7,1.8). I have tried to change POM.xml

Mule Cookbook Anypoint connector - build failed

牧云@^-^@ 提交于 2020-01-17 03:12:05
问题 pull this from this directory and perform a maven build git clone https://github.com/mulesoft/mule-cookbook.git The following is the error received towards the 2nd last step [ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.3.1:enforce (default-enforce) on project cookbook-connector: org.apache.maven.plugins.enforcer.RequireJavaVersion failed with message: [ERROR] Detected JDK Version: 1.8.0-77 is not in the allowed range [1.7,1.8). I have tried to change POM.xml