I am learning to use maven atm and for some reason I am running into this error. I am currently following Java Brain's Maven tutorial and when I enter the command mvn archtype:generate. It starts to download all the plug in but it skips the part where I enter Choose a number or apply filter and goes right into searching a project.
Matt#El_Laptop ~/my_app
$ mvn archtype:generate
[INFO] Scanning for projects...
Downloading: http://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-
metadata.xml
Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml
(22 KB at 34.9 KB/sec)
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-
metadata.xml (13 KB at 19.3 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.377 s
[INFO] Finished at: 2014-06-28T16:02:14-08:00
[INFO] Final Memory: 8M/94M
[INFO] ------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'archtype' in the current project and in the plugin
groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories
[local (C:\Users\Matt\.m2\repository), central (http://repo.maven.apache.org/maven2)] -
> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the
following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPrefixException
The plugin is called archetype (not archtype).
Related
I am using a nexus, which i did not configure. I log in with remote desktop on the system that runs windows server 2012. When i want to build my spring-boot application and i run the goal mvn clean package it downloands several dependencies and then fails with a connection refused error. I do not understand this. Why was is possible to download the first few, but not the spring-boot-starter-aop jar? What connection is refused? The one that is used to download the otheres? Here is my error report:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Application
[INFO] ------------------------------------------------------------------------
Downloading: http://192.168.1.142:8081/nexus/content/groups/public/org/aspectj/aspectjweaver/1.9.6/aspectjweaver-1.9.6.pom
Downloading: http://192.168.1.142:8081/nexus/content/groups/public/com/zaxxer/HikariCP/3.4.5/HikariCP-3.4.5.pom
Downloading: http://192.168.1.142:8081/nexus/content/groups/public/org/springframework/spring-jdbc/5.3.6/spring-jdbc-5.3.6.pom
Downloading: http://192.168.1.142:8081/nexus/content/groups/public/jakarta/transaction/jakarta.transaction-api/1.3.3/jakarta.transaction-api-1.3.3.pom
Downloading: http://192.168.1.142:8081/nexus/content/groups/public/jakarta/persistence/jakarta.persistence-api/2.2.3/jakarta.persistence-api-2.2.3.pom
Downloading: http://192.168.1.142:8081/nexus/content/groups/public/org/hibernate/hibernate-core/5.4.30.Final/hibernate-core-5.4.30.Final.pom
Downloading: http://192.168.1.142:8081/nexus/content/groups/public/org/springframework/data/spring-data-jpa/2.4.8/spring-data-jpa-2.4.8.pom
Downloading: http://192.168.1.142:8081/nexus/content/groups/public/org/springframework/spring-aspects/5.3.6/spring-aspects-5.3.6.pom
Downloading: http://192.168.1.142:8081/nexus/content/groups/public/org/liquibase/liquibase-core/3.10.3/liquibase-core-3.10.3.pom
Downloading: http://192.168.1.142:8081/nexus/content/groups/public/org/postgresql/postgresql/42.2.19/postgresql-42.2.19.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.778 s
[INFO] Finished at: 2021-11-22T09:16:05+01:00
[INFO] Final Memory: 19M/67M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project ecg-worklist: Could not resolve dependencies for project de.mdeset.worklist:ecg-worklist:war:1.0.0: Failed to collect dependencies at org.springframework.boot:
ot-starter-data-jpa:jar:2.4.5 -> org.springframework.boot:spring-boot-starter-aop:jar:2.4.5 -> org.aspectj:aspectjweaver:jar:1.9.6: Failed to read artifact descriptor for org.aspectj:aspectjweaver:jar:
uld not transfer artifact org.aspectj:aspectjweaver:pom:1.9.6 from/to Nexus (http://192.168.1.142:8081/nexus/content/groups/public/): Connect to 192.168.1.142:8081 [/192.168.1.142] failed: Connection r
onnect -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
It is not downloading any of them.
If you look at the order, it is actually failing for the first one Downloading: http://192.168.1.142:8081/nexus/content/groups/public/org/aspectj/aspectjweaver/1.9.6/aspectjweaver-1.9.6.pom.
It is telling you it is downloading, but then during the first attempt it fails to connect.
My suggestion is to try the URL on your browser without maven first to see if you can access it: http://192.168.1.142:8081/nexus/content/groups/public/ in the browser
If download was successfull of any of those dependencies, you would see (downloading/downloaded)
Downloading from cv-release: https://arm./springframework/session/spring-session-bom/2021.0.3/spring-session-bom-2021.0.3.pom
Downloaded from cv-release: https://arm./org/springframework/session/spring-session-bom/2021.0.3/spring-session-bom-2021.0.3.pom (2.7 kB at 15 kB/s)
I have been trying to use mvn clean test, but I keep getting the following.
bash-3.2$ mvn clean test
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------< >----------------------
[INFO] Building son 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/3.1.0/maven-clean-plugin-3.1.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:15 min
[INFO] Finished at: 2020-06-24T16:57:32-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:3.1.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:3.1.0: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:3.1.0 from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/3.1.0/maven-clean-plugin-3.1.0.pom: Connect to repo.maven.apache.org:443 [repo.maven.apache.org/199.232.64.215] failed: Operation timed out (Connection timed out) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
I've research and read that I need to use mvn clean:istall first, but everything keeps on failing. I have the following information on Apache Maven version 3.6.3 and java
version jdk1.8.0_231.jdk
I try to create maven project from command line, i am using apache maven 3.3.3 with jdk 7.
C:\MVN\CubeGenerator>mvn archetype:generate -DgroupId= com.mavapp -DartifactId=C
ubeGenerator -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=
false
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.169 s
[INFO] Finished at: 2015-08-07T00:13:23+05:30
[INFO] Final Memory: 4M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM
in this directory (C:\MVN\CubeGenerator). Please verify you invoked Maven from
the correct directory. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProject
Exception
You have some extra spaces after the "=" for two properties.
I think you want:
mvn archetype:generate -DgroupId=com.mavapp -DartifactId=CubeGenerator -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
When i run "mvn clean " getting error message like below on windows 7 PC.
i tried re-installing maven still error not solved. All other command except mvn clean is running fine.
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building SpringMVC Maven Webapp 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.apache.maven.plugins:maven-clean-plugin:jar:2.5 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.222 s
[INFO] Finished at: 2014-03-24T13:02:22+05:30
[INFO] Final Memory: 4M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5: 1 problem was encountered while building the effective model
[ERROR] [FATAL] Non-parseable POM C:\Users\suresh\.m2\repository\org\apache\maven\plugins\maven-clean-plugin\2.5\maven-clean-plugin-2.5.pom: end tag name </head> must be the same as start tag <meta> from line 4 (position: TEXT seen ...<meta http-equiv="pragma" content="no-cache">\r\n</head>... #5:8) # line 5, column 8
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
Seems like somehow your clean plugin got corrupted when downloading. Just delete the C:\Users\suresh\.m2\repository\org\apache\maven\plugins\maven-clean-plugin\2.5 directory entirely and retry.
I have downloaded Apache Maven 3.1.1 on windows xp and the installation works.However,i want to start jetty but i am thinking there is a way i have to tell maven where to find jetty first but i went ahead anyway and i got this
C:\maven>mvn jetty:run
[INFO] Scanning for projects...
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-
metadata.xml
Downloading: http://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadat
a.xml
Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata
.xml (22 KB at 3.2 KB/sec)
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-m
etadata.xml (13 KB at 1.8 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20.339s
[INFO] Finished at: Thu Jan 23 10:17:40 EAT 2014
[INFO] Final Memory: 5M/13M
[INFO] ------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'jetty' in the current project and in the plu
gin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repo
sitories [local (C:\Documents and Settings\Karl Meiwes\.m2\repository), central
(http://repo.maven.apache.org/maven2)] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundF
orPrefixException
C:\maven>
Will i have to tell maven where to find jetty and how do i install the jetty plugin?.In this version of maven,i find the plugins directory.Should there be one?.
You'll need to add the plug-in to your pom.xml . Here's the documentation.
Try adding the plugin in pom.xml
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>9.0.5.v20130815</version>
</plugin>