I want to build a simple project using a existing archetype. But I can’t run mvn archetype:generate as it keeps telling me the following information
[ERROR] No plugin found for prefix 'archetype' in the current project and in the
plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the
repositories [local (C:Documents and Settingsccen.m2repository), central (ht
tp://repo1.maven.org/maven2)] -> [Help 1]
I was using MS Windows and didn’t use any settings.xml in my ~/.m2 folder and all stuff is brand new. Could any one help me to figure it out?
asked Jun 24, 2011 at 19:23
Arrow CenArrow Cen
7041 gold badge7 silver badges21 bronze badges
The other thing that could be going wrong is that your machine is behind a firewall or proxy so your box is not able to hit http://repo1.maven.org/maven2. Try accessing this URL directly in a browser or something to test if you are able to make the request.
answered Jun 24, 2011 at 19:41
![]()
Jesse WebbJesse Webb
41.8k27 gold badges109 silver badges143 bronze badges
6
The command you should be using to generate a project with an archetype is…
mvn archetype:generate
The command you posted in your question was wrong (missing the first ‘e’ in archetype). I assume this is just a typo in SO though because the error you posted had archetype spelled correctly.
I believe this error will occur if you are trying to execute this command from a directory that already has a pom.xml file in it. It will try to find an archetype plugin configuration inside the existing pom.xml file.
Try the command again in an empty directory, or at least in one that doesn’t have a pom.xml file and it should work.
answered Jun 24, 2011 at 19:38
![]()
Jesse WebbJesse Webb
41.8k27 gold badges109 silver badges143 bronze badges
2
In case you are behind coporate firewall , configure the proxy setting using «settings.xml» under /conf directory
username,password,host&port values need to be provided.
|
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<username>proxyuser</username>
<password>proxypass</password>
<host>proxy.host.net</host>
<port>80</port>
<nonProxyHosts>local.net|some.host.com</nonProxyHosts>
</proxy>
answered Jan 30, 2013 at 12:18
tejaspillaitejaspillai
3163 silver badges7 bronze badges
This is the issue with your firewall. To check if firewall is on:
Click Start-> click Run-> type wscui.cpl -> click OK.
In Windows Security Center-> click Security
If net work Network Firewall is «on» you need to set the proxy for maven.
Go to /conf -> open settings.xml with notepad
uncomment proxy (if you don’t remember proxy settings u can check in webbrowser u r using)
<proxies>
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<username></username>
<password></password>
<host>www-proxy.us.oracle.com</host>
<port>80</port>
<nonProxyHosts></nonProxyHosts>
</proxy>
</proxies>
You can leave the username and pwd fields blank and set only host and port.
![]()
venerik
5,6782 gold badges32 silver badges42 bronze badges
answered Mar 1, 2014 at 8:59
![]()
Pavan EbbadiPavan Ebbadi
8421 gold badge13 silver badges26 bronze badges
1
Another problem with Windows (Vista ,Windows 7 onward) is that the command prompt should be running under Administrative privileges (Right click command prompt shortcut and choose «Run ad Administrator» if UAC is on), so simply run command prompt as Administrator before executing mvn archetype:generate.
I had faced this issue while creating vaadin 7 project under windows 7 using following command.
mvn archetype:generate -DarchetypeGroupId=com.vaadin -DarchetypeArtifactId=vaadin-archetype-application -DarchetypeVersion=7.1.8 -DgroupId=im.sma.testproject -DartifactId=testproject -Dversion=1.0 -Dpackaging=war
- SMA
answered Dec 4, 2013 at 20:37
I was banging with this problem 2 days, I checked proxy , copied settings.xml from conf folder , deleted user local .m2 folder , came out of eclipse and installed maven directly and tried . None of the above worked.
Finallay the problem fixed by upgrading java home form 1.7 to 1.8 . My maven version is Apache Maven 3.6.3 .
Maven should report proper error for the specific issue but it is not.
Up voted the suggestion of java upgrade in this thread , previously they were down voted
answered Mar 14, 2020 at 11:58
- To add Venerik’s answer I would elaborate a bit for the naive users like me;
proxy settings in maven
go to apache-maven-3.3.9conf folder and find settings.xml
open it in any text editor
go to the block of code that looks like below
<proxies>
<!-- proxy
| Specification for one proxy, to be used in connecting to the network.
|
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<username>proxyuser</username>
<password>proxypass</password>
<host>proxy.host.net</host>
<port>80</port>
<nonProxyHosts>local.net|some.host.com</nonProxyHosts>
</proxy>
-->
</proxies>
- Now uncomment the code from (proxy…/proxy) by cutting it and
pasting it
just after (proxies).
Now change according to your proxy settings
In my case it looks like the following
<proxies>
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<host>authproxy.serc.iisc.ernet.in</host>
<port>3128</port>
<nonProxyHosts>local.net|some.host.com</nonProxyHosts>
</proxy>
<!-- proxy
| Specification for one proxy, to be used in connecting to the network.
|
-->
</proxies>
Now try running mvn archetype:generate and it should run and download
answered Jun 9, 2016 at 22:34
![]()
In my case the solution was just run mvn archtype:generate in Safe Mode under your user profile. After that I could run it in normal boot.
answered Nov 5, 2014 at 1:43
ZhekaZheka
1191 silver badge4 bronze badges
I solved this problem disabling the antivirus for a few time while the project is create .

![]()
answered Aug 31, 2016 at 16:41
Got the same issue with maven 3. I just upgraded from jdk7 to jdk8 and the issue was resolved
answered Oct 5, 2018 at 6:58
jonesjones
171 bronze badge
I have face the same problem when using maven 3.6.1 with jdk 1.7.40.
To solve this, i simply update my version of JDk to 1.8.241.
I hope this will help you.
answered May 8, 2019 at 10:04
huberthubert
2,8893 gold badges19 silver badges25 bronze badges
Had same issue and the thing that worked for me was reinstalling java
sudo yum install java-
Find the path where java is installed, you can use
which javaorwhereis javaorsudo find / -name javacFor me, it was
/usr/lib/jvm/java-11-amazon-corretto.x86_64/bin -
sudo vi ~/.bashrc -
add below lines
export PATH=$PATH:/usr/lib/jvm/java-11-amazon-corretto.x86_64/bin -
source
.bashrc
and then try your command — mvn archetype:generate.
![]()
CKE
1,46519 gold badges20 silver badges28 bronze badges
answered Oct 28, 2019 at 6:06
![]()
If this warning is accompanied by the warning:
Received fatal alert: protocol_version
Then check your java version. I was able to solve this issue by upgrading my java version from 7 to 10. See the following:
https://github.com/technomancy/leiningen/issues/2364
answered Jul 13, 2018 at 11:56
![]()
Matthew SMatthew S
8902 gold badges12 silver badges25 bronze badges
I had same problem. Root cause: typed mvn generate:archetype instead archetype:generate.
mvn archetype:generate — is correct way.
answered Oct 6, 2016 at 7:58
![]()
RobertoRoberto
1,1985 gold badges20 silver badges42 bronze badges
1
everyone, I want to use the maven in my Linux Ubuntu system. It has been installed well with the mvn --version as following:
Apache Maven 3.8.4 (9b656c72d54e5bacbed989b64718c159fe39b537)
Maven home: /opt/apache-maven
Java version: 1.8.0_312, vendor: Private Build, runtime: /usr/lib/jvm/java-8-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.4.0-100-generic", arch: "amd64", family: "unix"
Then I follow the guide of official website’s maven-in-5-minutes to execute this commend
mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.4 -DinteractiveMode=false but get this errors:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.694 s
[INFO] Finished at: 2022-02-22T17:00:24+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'archetype' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/home/rockyzhang/.m2/repository), jboss-public-repository-group (http://repository.jboss.org/nexus/content/groups/public)] -> [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
I also searched it from google. At first, I was wonder it’s about the mirror configuration issue of settings.xml under/opt/apache-maven/conf. Then I added some mirrors and repositories info in it as following but the above error still appeared.
<mirrors>
<!-- mirror
| Specifies a repository mirror site to use instead of a given repository. The repository that
| this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
| for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
|
<mirror>
<id>mirrorId</id>
<mirrorOf>repositoryId</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://my.repository.com/repo/path</url>
</mirror>
-->
<mirror>
<id>maven-default-http-blocker</id>
<mirrorOf>external:http:*</mirrorOf>
<name>Pseudo repository to mirror external repositories initially using HTTP.</name>
<url>http://0.0.0.0/</url>
<blocked>true</blocked>
</mirror>
<mirror>
<id>central</id>
<name>Maven Repository Switchboard</name>
<url>http://repo1.maven.org/maven2</url>
<mirrorOf>central-repo1</mirrorOf>
</mirror>
<mirror>
<id>jboss-public-repository-group</id>
<mirrorOf>central</mirrorOf>
<name>JBoss Public Repository Group</name>
<url>http://repository.jboss.org/nexus/content/groups/public</url>
</mirror>
</mirrors>
I also try mvn help:active-profiles to check but get the similar error
[ERROR] No plugin found for prefix 'help' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/home/rockyzhang/.m2/repository), jboss-public-repository-group (http://repository.jboss.org/nexus/content/groups/public)] -> [Help 1]
I am a new guy and hope someone could give me some hint that whether it is related to the settings.xml configuration issue. If not how to solve it ? The mvn is just installed and there are logging settings.xml toolchains.xml under the /conf
At home yes, but I was in a bit of a rush at work and forgot to do that
lol. I also just realized this machine was updated to maven3 at work.
Ok So I ran the clean install then re-ran the same command and received the
same error I received at home, on the work machine.
org.apache.maven.plugins:maven-archetype-plugin:
.2:generate (default-cli) on project spring-mvc-quickstart:
org.apache.maven.ar
hetype.exception.InvalidPackaging: Unable to add module to the current
project
s it is not of packaging type 'pom' -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal
rg.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli)
on pr
ject spring-mvc-quickstart:
org.apache.maven.archetype.exception.InvalidPackagi
g: Unable to add module to the current project as it is not of packaging
type '
om'
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecuto
.java:213)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecuto
.java:153)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecuto
.java:145)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProj
ct(LifecycleModuleBuilder.java:84)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProj
ct(LifecycleModuleBuilder.java:59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedB
ild(LifecycleStarter.java:183)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecyc
eStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Lau
cher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.ja
a:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(L
uncher.java:409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java
352)
Caused by: org.apache.maven.plugin.MojoFailureException:
org.apache.maven.arche
ype.exception.InvalidPackaging: Unable to add module to the current project
as
t is not of packaging type 'pom'
at
org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.exec
te(CreateProjectFromArchetypeMojo.java:211)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Defaul
BuildPluginManager.java:101)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecuto
.java:209)
... 19 more
[ERROR]
[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 re
d the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureEx
eption
C:devtestspring-mvc-quickstart-archetype-master>mvn -version
Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19
05:51
28-0800)
Maven home: C:apache-maven-3.0.5
Java version: 1.7.0_10, vendor: Oracle Corporation
Java home: C:Program FilesJavajdk1.7.0_10jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
C:devtestspring-mvc-quickstart-archetype-master>
On Tue, Mar 18, 2014 at 4:06 PM, Rafal Borowiec notifications@github.comwrote:
> So, when you downloaded the code, did you run: mvn clean install to
> install the archetype in your local repository?
>
> ##
>
> Reply to this email directly or view it on GitHubhttps://github.com/kolorobot/spring-mvc-quickstart-archetype/issues/50#issuecomment-38000145
> .
>
> ```
> ```
I am a newbie to maven. I have installed apache archiva in my machine to use as maven-proxy. My purpose is that I want to generate a sample project structure using maven archiva plugin. I have uploaded required artifact using archiva for that.
When I run mvn archetype:generate it should ask me for the rest of the parameters. But instead it is giving me the following errors. Which indicates I have means maven shared plugin. But I have also uploaded the maven shared plugin artifact using archiva.
Here is the stack trace
F:MavenTestssimple>mvn archetype:generate
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:2.0:generate (default-cli) @ standalone-pom >>>
[INFO]
[INFO] <<< maven-archetype-plugin:2.0:generate (default-cli) @ standalone-pom <<<
[INFO]
[INFO] --- maven-archetype-plugin:2.0:generate (default-cli) @ standalone-pom ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.276s
[INFO] Finished at: Wed May 18 17:11:05 ALMT 2011
[INFO] Final Memory: 3M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.0:generate (default-cli) on project standalone-pom: Exe
lugins:maven-archetype-plugin:2.0'. A required class is missing: org/apache/maven/shared/invoker/MavenInvocationException
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.apache.maven.plugins:maven-archetype-plugin:2.0
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/Users/mae/.m2/repository/org/apache/maven/plugins/maven-archetype-plugin/2.0/maven-archetype-plugin-2.0.jar
[ERROR] urls[1] = file:/C:/Users/mae/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
[ERROR] Number of foreign imports: 4
[ERROR] import: Entry[import org.codehaus.plexus.util.xml.pull.XmlSerializer from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.util.xml.pull.XmlPullParserException from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.util.xml.pull.XmlPullParser from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.util.xml.Xpp3Dom from realm ClassRealm[plexus.core, parent: null]]
[ERROR]
[ERROR] realm = maven.api
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] Number of foreign imports: 21
[ERROR] import: Entry[import org.sonatype.aether from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.personality from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.logging from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.lifecycle from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.context from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.container from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.configuration from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.component from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.classworlds from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.PlexusContainerException from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.PlexusContainer from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.PlexusConstants from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.MutablePlexusContainer from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.DuplicateChildContainerException from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.DefaultPlexusContainer from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.DefaultContainerConfiguration from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.DefaultComponentRegistry from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.ContainerConfiguration from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.ComponentRegistry from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.classworlds from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.apache.maven from realm ClassRealm[plexus.core, parent: null]]
[ERROR]
[ERROR] -----------------------------------------------------: org.apache.maven.shared.invoker.MavenInvocationException
[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/PluginContainerException
I am stumbled upon here. Any kind of help would be highly appreciated.
I am a newbie to maven. I have installed apache archiva in my machine to use as maven-proxy. My purpose is that I want to generate a sample project structure using maven archiva plugin. I have uploaded required artifact using archiva for that.
When I run mvn archetype:generate it should ask me for the rest of the parameters. But instead it is giving me the following errors. Which indicates I have means maven shared plugin. But I have also uploaded the maven shared plugin artifact using archiva.
Here is the stack trace
F:MavenTestssimple>mvn archetype:generate
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:2.0:generate (default-cli) @ standalone-pom >>>
[INFO]
[INFO] <<< maven-archetype-plugin:2.0:generate (default-cli) @ standalone-pom <<<
[INFO]
[INFO] --- maven-archetype-plugin:2.0:generate (default-cli) @ standalone-pom ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.276s
[INFO] Finished at: Wed May 18 17:11:05 ALMT 2011
[INFO] Final Memory: 3M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.0:generate (default-cli) on project standalone-pom: Exe
lugins:maven-archetype-plugin:2.0'. A required class is missing: org/apache/maven/shared/invoker/MavenInvocationException
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.apache.maven.plugins:maven-archetype-plugin:2.0
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/Users/mae/.m2/repository/org/apache/maven/plugins/maven-archetype-plugin/2.0/maven-archetype-plugin-2.0.jar
[ERROR] urls[1] = file:/C:/Users/mae/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
[ERROR] Number of foreign imports: 4
[ERROR] import: Entry[import org.codehaus.plexus.util.xml.pull.XmlSerializer from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.util.xml.pull.XmlPullParserException from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.util.xml.pull.XmlPullParser from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.util.xml.Xpp3Dom from realm ClassRealm[plexus.core, parent: null]]
[ERROR]
[ERROR] realm = maven.api
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] Number of foreign imports: 21
[ERROR] import: Entry[import org.sonatype.aether from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.personality from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.logging from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.lifecycle from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.context from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.container from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.configuration from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.component from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.classworlds from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.PlexusContainerException from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.PlexusContainer from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.PlexusConstants from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.MutablePlexusContainer from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.DuplicateChildContainerException from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.DefaultPlexusContainer from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.DefaultContainerConfiguration from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.DefaultComponentRegistry from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.ContainerConfiguration from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.plexus.ComponentRegistry from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.codehaus.classworlds from realm ClassRealm[plexus.core, parent: null]]
[ERROR] import: Entry[import org.apache.maven from realm ClassRealm[plexus.core, parent: null]]
[ERROR]
[ERROR] -----------------------------------------------------: org.apache.maven.shared.invoker.MavenInvocationException
[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/PluginContainerException
I am stumbled upon here. Any kind of help would be highly appreciated.
@supriyoece Your statement- «I am running Alfresco Community Edition 6.2 from my local system & using the latest Alfresco SDK 4.1″ clarifies the error.
«alfresco:run» is not meant for SDK4.x, it was for SDK 3.x
If you are using SDK4.x, you should be looking at the ReadMe, file that is available at the root of the base project. ACS 6.x is fully based on docker containers, you need to use run.bat/run.sh to start and launch the containers.
Before going to use SDK4.x you must know about docker, docker-compose, DockerFile etc. You can go through this blog to understand the docker based deployments: https://hub.alfresco.com/t5/alfresco-content-services-blog/deploying-and-running-alfresco-content-se…
You can follow the below given steps:
1- Generate the archetype [ use: mvn archetype:generate -Dfilter=org.alfresco: ] using SDK 4.1.0 (meant for ACS 6.2.0). Decide to generate AIO or individual archetypes based on your current setup/preference. You would get additional project named «yourproject-share-docker/yourproject-platform-docker«. It will have DockerFile containing the base image and steps to be performed while launching the containers. You will also get a project named as «docker«, this will have docker-compose.yml file which basically defines all the services which using which containers will be launced.
To get basic idea of DockerFile, refer:
https://dzone.com/articles/understanding-dockerfile
https://docs.docker.com/engine/reference/builder/
To get basic idea of docker-compose.yml, refer: https://docs.docker.com/compose/
2- Build and Start the containers using «run.bat build_start» (run.sh build_start for linux) command to build and start the docker containers. You can refer «run.bat or run.sh» files.
3- To remote debug and put breakpoints you can follow these documents. Make sure you add below step in platform DockerFile:
Add the below given line in your platform-docker project’s DockerFile:
COPY hotswap-agent.properties $TOMCAT_DIR/webapps/alfresco/WEB-INF/classes
For remote debugging follow the instructions given here:
https://github.com/Alfresco/alfresco-sdk/blob/master/docs/advanced-topics/debugging/debug-eclipse.md
For more details on SDK4.x: https://github.com/Alfresco/alfresco-sdk/blob/master/docs/README.md
~Abhinav
(ACSCE, AWS SAA, Azure Admin)
Thank you so much for the quick response. Answer to your questions.
1) I am using maven 3.3.9
2) there is no network issues. I am able to open the urls from the browser
3) All are not working
4) dump is below
C:workVRO>mvn -e -X archetype:generate -DarchetypeCatalog=https://15.218.171.196:8281/vco-repo/archetype-catalog.xml -DrepoUrl=https://15.218.171.196:8281/vco-repo -Dmaven.repo.remote=https://15.218.171.196:8281/vco-repo -Dmave
.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T22:11:47+05:30)
Maven home: C:optapache-maven-3.3.9
Java version: 1.7.0_21, vendor: Oracle Corporation
Java home: C:optJavajdk1.7.0_45jre
Default locale: en_US, platform encoding: Cp1252
OS name: «windows server 2012», version: «6.2», arch: «x86», family: «windows»
[DEBUG] Created new class realm maven.api
[DEBUG] Importing foreign packages into class realm maven.api
[DEBUG] Imported: javax.enterprise.inject.* < plexus.core
[DEBUG] Imported: javax.enterprise.util.* < plexus.core
[DEBUG] Imported: javax.inject.* < plexus.core
[DEBUG] Imported: org.apache.maven.* < plexus.core
[DEBUG] Imported: org.apache.maven.artifact < plexus.core
[DEBUG] Imported: org.apache.maven.classrealm < plexus.core
[DEBUG] Imported: org.apache.maven.cli < plexus.core
[DEBUG] Imported: org.apache.maven.configuration < plexus.core
[DEBUG] Imported: org.apache.maven.exception < plexus.core
[DEBUG] Imported: org.apache.maven.execution < plexus.core
[DEBUG] Imported: org.apache.maven.execution.scope < plexus.core
[DEBUG] Imported: org.apache.maven.lifecycle < plexus.core
[DEBUG] Imported: org.apache.maven.model < plexus.core
[DEBUG] Imported: org.apache.maven.monitor < plexus.core
[DEBUG] Imported: org.apache.maven.plugin < plexus.core
[DEBUG] Imported: org.apache.maven.profiles < plexus.core
[DEBUG] Imported: org.apache.maven.project < plexus.core
[DEBUG] Imported: org.apache.maven.reporting < plexus.core
[DEBUG] Imported: org.apache.maven.repository < plexus.core
[DEBUG] Imported: org.apache.maven.rtinfo < plexus.core
[DEBUG] Imported: org.apache.maven.settings < plexus.core
[DEBUG] Imported: org.apache.maven.toolchain < plexus.core
[DEBUG] Imported: org.apache.maven.usability < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.* < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.authentication < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.authorization < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.events < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.observers < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.proxy < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.repository < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.resource < plexus.core
[DEBUG] Imported: org.codehaus.classworlds < plexus.core
[DEBUG] Imported: org.codehaus.plexus.* < plexus.core
[DEBUG] Imported: org.codehaus.plexus.classworlds < plexus.core
[DEBUG] Imported: org.codehaus.plexus.component < plexus.core
[DEBUG] Imported: org.codehaus.plexus.configuration < plexus.core
[DEBUG] Imported: org.codehaus.plexus.container < plexus.core
[DEBUG] Imported: org.codehaus.plexus.context < plexus.core
[DEBUG] Imported: org.codehaus.plexus.lifecycle < plexus.core
[DEBUG] Imported: org.codehaus.plexus.logging < plexus.core
[DEBUG] Imported: org.codehaus.plexus.personality < plexus.core
[DEBUG] Imported: org.codehaus.plexus.util.xml.Xpp3Dom < plexus.core
[DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlPullParser < plexus.core
[DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlPullParserException < plexus.core
[DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlSerializer < plexus.core
[DEBUG] Imported: org.eclipse.aether.* < plexus.core
[DEBUG] Imported: org.eclipse.aether.artifact < plexus.core
[DEBUG] Imported: org.eclipse.aether.collection < plexus.core
[DEBUG] Imported: org.eclipse.aether.deployment < plexus.core
[DEBUG] Imported: org.eclipse.aether.graph < plexus.core
[DEBUG] Imported: org.eclipse.aether.impl < plexus.core
[DEBUG] Imported: org.eclipse.aether.installation < plexus.core
[DEBUG] Imported: org.eclipse.aether.internal.impl < plexus.core
[DEBUG] Imported: org.eclipse.aether.metadata < plexus.core
[DEBUG] Imported: org.eclipse.aether.repository < plexus.core
[DEBUG] Imported: org.eclipse.aether.resolution < plexus.core
[DEBUG] Imported: org.eclipse.aether.spi < plexus.core
[DEBUG] Imported: org.eclipse.aether.transfer < plexus.core
[DEBUG] Imported: org.eclipse.aether.version < plexus.core
[DEBUG] Imported: org.slf4j.* < plexus.core
[DEBUG] Imported: org.slf4j.helpers.* < plexus.core
[DEBUG] Imported: org.slf4j.spi.* < plexus.core
[DEBUG] Populating class realm maven.api
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from C:optapache-maven-3.3.9confsettings.xml
[DEBUG] Reading user settings from C:UsersAdministrator.m2settings.xml
[DEBUG] Reading global toolchains from C:optapache-maven-3.3.9conftoolchains.xml
[DEBUG] Reading user toolchains from C:UsersAdministrator.m2toolchains.xml
[DEBUG] Using local repository at C:UsersAdministrator.m2repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0 for C:UsersAdministrator.m2repository
[INFO] Scanning for projects…
[DEBUG] Extension realms for project org.apache.maven:standalone-pom:pom:1: (none)
[DEBUG] Looking up lifecyle mappings for packaging pom from ClassRealm[plexus.core, parent: null]
[DEBUG] Resolving plugin prefix archetype from [org.apache.maven.plugins, org.codehaus.mojo]
[DEBUG] Could not find metadata org.apache.maven.plugins/maven-metadata.xml in local (C:UsersAdministrator.m2repository)
[DEBUG] Skipped remote request for org.apache.maven.plugins/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Could not find metadata org.codehaus.mojo/maven-metadata.xml in local (C:UsersAdministrator.m2repository)
[DEBUG] Skipped remote request for org.codehaus.mojo/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Resolved plugin prefix archetype to org.apache.maven.plugins:maven-archetype-plugin from repository central
[DEBUG] Resolving plugin version for org.apache.maven.plugins:maven-archetype-plugin
[DEBUG] Could not find metadata org.apache.maven.plugins:maven-archetype-plugin/maven-metadata.xml in local (C:UsersAdministrator.m2repository)
[DEBUG] Skipped remote request for org.apache.maven.plugins:maven-archetype-plugin/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Resolved plugin version for org.apache.maven.plugins:maven-archetype-plugin to 2.4 from repository central (https://repo.maven.apache.org/maven2, default, releases)
[DEBUG] === REACTOR BUILD PLAN ================================================
[DEBUG] Project: org.apache.maven:standalone-pom:pom:1
[DEBUG] Tasks: [archetype:generate]
[DEBUG] Style: Aggregating
[DEBUG] =======================================================================
[INFO]
[INFO] ————————————————————————
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ————————————————————————
[DEBUG] Resolving plugin prefix archetype from [org.apache.maven.plugins, org.codehaus.mojo]
[DEBUG] Could not find metadata org.apache.maven.plugins/maven-metadata.xml in local (C:UsersAdministrator.m2repository)
[DEBUG] Skipped remote request for org.apache.maven.plugins/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Could not find metadata org.codehaus.mojo/maven-metadata.xml in local (C:UsersAdministrator.m2repository)
[DEBUG] Skipped remote request for org.codehaus.mojo/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Resolved plugin prefix archetype to org.apache.maven.plugins:maven-archetype-plugin from repository central
[DEBUG] Resolving plugin version for org.apache.maven.plugins:maven-archetype-plugin
[DEBUG] Could not find metadata org.apache.maven.plugins:maven-archetype-plugin/maven-metadata.xml in local (C:UsersAdministrator.m2repository)
[DEBUG] Skipped remote request for org.apache.maven.plugins:maven-archetype-plugin/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Resolved plugin version for org.apache.maven.plugins:maven-archetype-plugin to 2.4 from repository central (https://repo.maven.apache.org/maven2, default, releases)
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process
test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process
test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] === PROJECT BUILD PLAN ================================================
[DEBUG] Project: org.apache.maven:standalone-pom:1
[DEBUG] Dependencies (collect): []
[DEBUG] Dependencies (resolve): []
[DEBUG] Repositories (dependencies): [central (https://repo.maven.apache.org/maven2, default, releases)]
[DEBUG] Repositories (plugins) : [central (https://repo.maven.apache.org/maven2, default, releases)]
[DEBUG] — init fork of org.apache.maven:standalone-pom:1 for org.apache.maven.plugins:maven-archetype-plugin:2.4:generate (default-cli) —
[DEBUG] Dependencies (collect): []
[DEBUG] Dependencies (resolve): []
[DEBUG] — exit fork of org.apache.maven:standalone-pom:1 for org.apache.maven.plugins:maven-archetype-plugin:2.4:generate (default-cli) —
[DEBUG] ————————————————————————
[DEBUG] Goal: org.apache.maven.plugins:maven-archetype-plugin:2.4:generate (default-cli)
[DEBUG] Style: Regular
[DEBUG] Configuration: <?xml version=»1.0″ encoding=»UTF-8″?>
<configuration>
<archetypeArtifactId>${archetypeArtifactId}</archetypeArtifactId>
<archetypeCatalog default-value=»remote,local»>${archetypeCatalog}</archetypeCatalog>
<archetypeGroupId>${archetypeGroupId}</archetypeGroupId>
<archetypeRepository>${archetypeRepository}</archetypeRepository>
<archetypeVersion>${archetypeVersion}</archetypeVersion>
<basedir default-value=»${basedir}»/>
<filter>${filter}</filter>
<goals>${goals}</goals>
<interactiveMode default-value=»${settings.interactiveMode}»>${interactiveMode}</interactiveMode>
<localRepository default-value=»${localRepository}»/>
<remoteArtifactRepositories default-value=»${project.remoteArtifactRepositories}»/>
<session default-value=»${session}»/>
</configuration>
[DEBUG] =======================================================================
[INFO]
[INFO] >>> maven-archetype-plugin:2.4:generate (default-cli) > generate-sources @ standalone-pom >>>
[INFO]
[INFO] <<< maven-archetype-plugin:2.4:generate (default-cli) < generate-sources @ standalone-pom <<<
[INFO]
[INFO] — maven-archetype-plugin:2.4:generate (default-cli) @ standalone-pom —
[DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=0, ConflictMarker.markTime=0, ConflictMarker.nodeCount=134, ConflictIdSorter.graphTime=0, ConflictIdSorter.topsortTime=0, ConflictIdSorter.conflictIdCount=60, Confl
ctIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=15, ConflictResolver.conflictItemCount=125, DefaultDependencyCollector.collectTime=313, DefaultDependencyCollector.transformTime=15}
[DEBUG] org.apache.maven.plugins:maven-archetype-plugin:jar:2.4:
[DEBUG] org.apache.maven.archetype:archetype-catalog:jar:2.4:compile
[DEBUG] org.apache.maven.archetype:archetype-descriptor:jar:2.4:compile
[DEBUG] org.apache.maven.archetype:archetype-registry:jar:2.4:compile
[DEBUG] org.apache.maven.archetype:archetype-common:jar:2.4:compile
[DEBUG] net.sourceforge.jchardet:jchardet:jar:1.0:compile
[DEBUG] org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:compile
[DEBUG] dom4j:dom4j:jar:1.6.1:compile
[DEBUG] xml-apis:xml-apis:jar:1.0.b2:compile
[DEBUG] jdom:jdom:jar:1.0:compile
[DEBUG] org.apache.maven:maven-model:jar:2.2.1:compile
[DEBUG] org.apache.maven:maven-project:jar:2.2.1:compile
[DEBUG] org.apache.maven:maven-plugin-registry:jar:2.2.1:compile
[DEBUG] org.codehaus.plexus:plexus-interpolation:jar:1.11:compile
[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile
[DEBUG] junit:junit:jar:4.11:test
[DEBUG] org.hamcrest:hamcrest-core:jar:1.3:test
[DEBUG] org.codehaus.plexus:plexus-velocity:jar:1.1.8:compile
[DEBUG] org.apache.velocity:velocity:jar:1.5:compile
[DEBUG] commons-lang:commons-lang:jar:2.1:compile
[DEBUG] oro:oro:jar:2.0.8:compile
[DEBUG] org.codehaus.plexus:plexus-utils:jar:3.0.21:compile
[DEBUG] commons-io:commons-io:jar:2.2:compile
[DEBUG] org.apache.maven:maven-plugin-api:jar:2.2.1:compile
[DEBUG] org.apache.maven:maven-core:jar:2.2.1:compile
[DEBUG] org.apache.maven:maven-settings:jar:2.2.1:compile
[DEBUG] org.apache.maven:maven-plugin-parameter-documenter:jar:2.2.1:compile
[DEBUG] org.slf4j:slf4j-jdk14:jar:1.5.6:runtime
[DEBUG] org.slf4j:slf4j-api:jar:1.5.6:runtime
[DEBUG] org.slf4j:jcl-over-slf4j:jar:1.5.6:runtime
[DEBUG] org.apache.maven.reporting:maven-reporting-api:jar:2.2.1:compile
[DEBUG] org.apache.maven.doxia:doxia-sink-api:jar:1.1:compile
[DEBUG] org.apache.maven.doxia:doxia-logging-api:jar:1.1:compile
[DEBUG] org.apache.maven:maven-profile:jar:2.2.1:compile
[DEBUG] org.apache.maven:maven-artifact:jar:2.2.1:compile
[DEBUG] org.apache.maven:maven-repository-metadata:jar:2.2.1:compile
[DEBUG] org.apache.maven:maven-error-diagnostics:jar:2.2.1:compile
[DEBUG] commons-cli:commons-cli:jar:1.2:compile
[DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.2.1:compile
[DEBUG] org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-6:compile
[DEBUG] org.codehaus.plexus:plexus-component-api:jar:1.0-alpha-16:compile
[DEBUG] org.codehaus.plexus:plexus-classworlds:jar:1.2-alpha-7:compile
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.2.1:compile
[DEBUG] backport-util-concurrent:backport-util-concurrent:jar:3.1:compile
[DEBUG] org.apache.maven:maven-monitor:jar:2.2.1:compile
[DEBUG] classworlds:classworlds:jar:1.1:compile
[DEBUG] org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:compile
[DEBUG] org.sonatype.plexus:plexus-cipher:jar:1.4:compile
[DEBUG] org.apache.maven.shared:maven-invoker:jar:2.1.1:compile
[DEBUG] commons-collections:commons-collections:jar:3.2.1:compile
[DEBUG] org.codehaus.groovy:groovy:jar:1.8.3:compile
[DEBUG] antlr:antlr:jar:2.7.7:compile
[DEBUG] asm:asm:jar:3.2:compile
[DEBUG] asm:asm-commons:jar:3.2:compile
[DEBUG] asm:asm-util:jar:3.2:compile
[DEBUG] asm:asm-analysis:jar:3.2:compile
[DEBUG] asm:asm-tree:jar:3.2:compile
[DEBUG] org.beanshell:bsh:jar:2.0b4:compile
[DEBUG] org.apache.maven.shared:maven-script-interpreter:jar:1.0:compile
[DEBUG] org.apache.ant:ant:jar:1.8.1:compile
[DEBUG] Created new class realm plugin>org.apache.maven.plugins:maven-archetype-plugin:2.4
[DEBUG] Importing foreign packages into class realm plugin>org.apache.maven.plugins:maven-archetype-plugin:2.4
[DEBUG] Imported: < maven.api
[DEBUG] Populating class realm plugin>org.apache.maven.plugins:maven-archetype-plugin:2.4
[DEBUG] Included: org.apache.maven.plugins:maven-archetype-plugin:jar:2.4
[DEBUG] Included: org.apache.maven.archetype:archetype-catalog:jar:2.4
[DEBUG] Included: org.apache.maven.archetype:archetype-descriptor:jar:2.4
[DEBUG] Included: org.apache.maven.archetype:archetype-registry:jar:2.4
[DEBUG] Included: org.apache.maven.archetype:archetype-common:jar:2.4
[DEBUG] Included: net.sourceforge.jchardet:jchardet:jar:1.0
[DEBUG] Included: org.codehaus.plexus:plexus-component-annotations:jar:1.5.5
[DEBUG] Included: dom4j:dom4j:jar:1.6.1
[DEBUG] Included: xml-apis:xml-apis:jar:1.0.b2
[DEBUG] Included: jdom:jdom:jar:1.0
[DEBUG] Included: org.codehaus.plexus:plexus-interpolation:jar:1.11
[DEBUG] Included: org.codehaus.plexus:plexus-velocity:jar:1.1.8
[DEBUG] Included: org.apache.velocity:velocity:jar:1.5
[DEBUG] Included: commons-lang:commons-lang:jar:2.1
[DEBUG] Included: oro:oro:jar:2.0.8
[DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:3.0.21
[DEBUG] Included: commons-io:commons-io:jar:2.2
[DEBUG] Included: org.slf4j:slf4j-jdk14:jar:1.5.6
[DEBUG] Included: org.slf4j:jcl-over-slf4j:jar:1.5.6
[DEBUG] Included: org.apache.maven.reporting:maven-reporting-api:jar:2.2.1
[DEBUG] Included: org.apache.maven.doxia:doxia-sink-api:jar:1.1
[DEBUG] Included: org.apache.maven.doxia:doxia-logging-api:jar:1.1
[DEBUG] Included: commons-cli:commons-cli:jar:1.2
[DEBUG] Included: org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-6
[DEBUG] Included: backport-util-concurrent:backport-util-concurrent:jar:3.1
[DEBUG] Included: org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3
[DEBUG] Included: org.sonatype.plexus:plexus-cipher:jar:1.4
[DEBUG] Included: org.apache.maven.shared:maven-invoker:jar:2.1.1
[DEBUG] Included: commons-collections:commons-collections:jar:3.2.1
[DEBUG] Included: org.codehaus.groovy:groovy:jar:1.8.3
[DEBUG] Included: antlr:antlr:jar:2.7.7
[DEBUG] Included: asm:asm:jar:3.2
[DEBUG] Included: asm:asm-commons:jar:3.2
[DEBUG] Included: asm:asm-util:jar:3.2
[DEBUG] Included: asm:asm-analysis:jar:3.2
[DEBUG] Included: asm:asm-tree:jar:3.2
[DEBUG] Included: org.beanshell:bsh:jar:2.0b4
[DEBUG] Included: org.apache.maven.shared:maven-script-interpreter:jar:1.0
[DEBUG] Included: org.apache.ant:ant:jar:1.8.1
[DEBUG] Configuring mojo org.apache.maven.plugins:maven-archetype-plugin:2.4:generate from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-archetype-plugin:2.4, parent: sun.misc.Launcher$AppClassLoader@1365360]
[DEBUG] Setting property: classpath.resource.loader.class => ‘org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader’.
[DEBUG] Setting property: site.resource.loader.class => ‘org.codehaus.plexus.velocity.SiteResourceLoader’.
[DEBUG] Setting property: velocimacro.messages.on => ‘false’.
[DEBUG] Setting property: resource.loader => ‘classpath,site’.
[DEBUG] Setting property: runtime.log.invalid.references => ‘false’.
[DEBUG] Setting property: resource.manager.logwhenfound => ‘false’.
[DEBUG] *******************************************************************
[DEBUG] Starting Apache Velocity v1.5 (compiled: 2007-02-22 08:52:29)
[DEBUG] RuntimeInstance initializing.
[DEBUG] Default Properties File: orgapachevelocityruntimedefaultsvelocity.properties
[DEBUG] LogSystem has been deprecated. Please use a LogChute implementation.
[DEBUG] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl)
[DEBUG] ResourceLoader instantiated: org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
[DEBUG] ResourceLoader instantiated: org.codehaus.plexus.velocity.SiteResourceLoader
[DEBUG] ResourceCache: initialized (class org.apache.velocity.runtime.resource.ResourceCacheImpl)
[DEBUG] Default ResourceManager initialization complete.
[DEBUG] Loaded System Directive: org.apache.velocity.runtime.directive.Literal
[DEBUG] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
[DEBUG] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
[DEBUG] Loaded System Directive: org.apache.velocity.runtime.directive.Include
[DEBUG] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach
[DEBUG] Created ’20’ parsers.
[DEBUG] Velocimacro : initialization starting.
[DEBUG] Velocimacro : allowInline = true : VMs can be defined inline in templates
[DEBUG] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions
[DEBUG] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed.
[DEBUG] Velocimacro : autoload off : VM system will not automatically reload global library macros
[DEBUG] Velocimacro : Velocimacro : initialization complete.
[DEBUG] RuntimeInstance successfully initialized.
[DEBUG] Configuring mojo ‘org.apache.maven.plugins:maven-archetype-plugin:2.4:generate’ with basic configurator —>
[DEBUG] (f) archetypeCatalog = https://15.218.171.196:8281/vco-repo/archetype-catalog.xml
[DEBUG] (f) basedir = C:workVRO
[DEBUG] (f) interactiveMode = true
[DEBUG] (f) localRepository = id: local
url: file:///C:/Users/Administrator/.m2/repository/
layout: default
snapshots: [enabled => true, update => always]
releases: [enabled => true, update => always]
[DEBUG] (f) remoteArtifactRepositories = [ id: central
url: https://repo.maven.apache.org/maven2
layout: default
proxy: web-proxy.in.hpecorp.net:8088
snapshots: [enabled => false, update => daily]
releases: [enabled => true, update => daily]
]
[DEBUG] (f) session = org.apache.maven.execution.MavenSession@100588d
[DEBUG] — end configuration —
[INFO] Generating project in Interactive mode
[DEBUG] Searching for remote catalog: https://15.218.171.196:8281/vco-repo/archetype-catalog.xml/archetype-catalog.xml
[DEBUG] Searching for remote catalog: https://15.218.171.196:8281/vco-repo/archetype-catalog.xml
[INFO] No archetype defined. Using maven-archetype-quickstart (org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
Choose archetype:
1: https://15.218.171.196:8281/vco-repo/archetype-catalog.xml -> com.vmware.o11n:o11n-plugin-archetype-inventory (o11nplugin-project-archetype)
2: https://15.218.171.196:8281/vco-repo/archetype-catalog.xml -> com.vmware.o11n:o11n-package-archetype (o11nplugin-project-archetype)
3: https://15.218.171.196:8281/vco-repo/archetype-catalog.xml -> com.vmware.o11n:o11n-archetype-inventory-annotation (o11nplugin-project-archetype)
4: https://15.218.171.196:8281/vco-repo/archetype-catalog.xml -> com.vmware.o11n:o11n-plugin-archetype-simple (o11nplugin-project-archetype)
5: https://15.218.171.196:8281/vco-repo/archetype-catalog.xml -> com.vmware.o11n:o11n-archetype-spring (o11nplugin-spring-archetype)
6: https://15.218.171.196:8281/vco-repo/archetype-catalog.xml -> com.vmware.o11n:o11n-plugin-archetype-modeldriven (o11nplugin-project-archetype)
7: https://15.218.171.196:8281/vco-repo/archetype-catalog.xml -> com.vmware.o11n:o11n-client-archetype-rest (o11nplugin-project-archetype)
Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): : 1
[DEBUG] Not found archetype com.vmware.o11n:o11n-plugin-archetype-inventory:7.0.0 in cache
[DEBUG] Using transporter WagonTransporter with priority -1.0 for https://15.218.171.196:8281/vco-repo
[DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for https://15.218.171.196:8281/vco-repo via web-proxy.in.hpecorp.net:8088
Downloading: https://15.218.171.196:8281/vco-repo/com/vmware/o11n/o11n-plugin-archetype-inventory/7.0.0/o11n-plug…
[DEBUG] Writing tracking file C:UsersAdministrator.m2repositorycomvmwareo11no11n-plugin-archetype-inventory7.0.0o11n-plugin-archetype-inventory-7.0.0.jar.lastUpdated
[DEBUG] Archetype com.vmware.o11n:o11n-plugin-archetype-inventory:7.0.0 doesn’t exist
org.apache.maven.archetype.downloader.DownloadException: Error downloading com.vmware.o11n:o11n-plugin-archetype-inventory:jar:7.0.0.
at org.apache.maven.archetype.downloader.DefaultDownloader.download(DefaultDownloader.java:74)
at org.apache.maven.archetype.common.DefaultArchetypeArtifactManager.exists(DefaultArchetypeArtifactManager.java:278)
at org.apache.maven.archetype.ui.generation.DefaultArchetypeGenerationConfigurator.configureArchetype(DefaultArchetypeGenerationConfigurator.java:116)
at org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execute(CreateProjectFromArchetypeMojo.java:189)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.artifact.resolver.ArtifactResolutionException: Could not transfer artifact com.vmware.o11n:o11n-plugin-archetype-inventory:jar:7.0.0 from/to o11n-plugin-archetype-inventory-repo (https://15.218.171.196:
8281/vco-repo): Failed to transfer file: https://15.218.171.196:8281/vco-repo/com/vmware/o11n/o11n-plugin-archetype-inventory/7.0.0/o11n-plug…. Return code is: 503 , ReasonPhrase:Service Unavailable.
com.vmware.o11n:o11n-plugin-archetype-inventory:jar:7.0.0
from the specified remote repositories:
o11n-plugin-archetype-inventory-repo (https://15.218.171.196:8281/vco-repo, releases=true, snapshots=true),
central (https://repo.maven.apache.org/maven2, releases=true, snapshots=false)
at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:225)
at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:154)
at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:555)
at org.apache.maven.archetype.downloader.DefaultDownloader.download(DefaultDownloader.java:70)
… 25 more
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not transfer artifact com.vmware.o11n:o11n-plugin-archetype-inventory:jar:7.0.0 from/to o11n-plugin-archetype-inventory-repo (https://15.218.171.196:8281/
vco-repo): Failed to transfer file: https://15.218.171.196:8281/vco-repo/com/vmware/o11n/o11n-plugin-archetype-inventory/7.0.0/o11n-plug…. Return code is: 503 , ReasonPhrase:Service Unavailable.
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:223)
at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:294)
at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:215)
… 28 more
Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer artifact com.vmware.o11n:o11n-plugin-archetype-inventory:jar:7.0.0 from/to o11n-plugin-archetype-inventory-repo (https://15.218.171.196:8281/vco-
repo): Failed to transfer file: https://15.218.171.196:8281/vco-repo/com/vmware/o11n/o11n-plugin-archetype-inventory/7.0.0/o11n-plug…. Return code is: 503 , ReasonPhrase:Service Unavailable.
at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:43)
at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:355)
at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
at org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:581)
at org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:249)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:520)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:421)
… 32 more
Caused by: org.apache.maven.wagon.TransferFailedException: Failed to transfer file: https://15.218.171.196:8281/vco-repo/com/vmware/o11n/o11n-plugin-archetype-inventory/7.0.0/o11n-plug…. Return code
is: 503 , ReasonPhrase:Service Unavailable.
at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:1021)
at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:960)
at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
at org.eclipse.aether.transport.wagon.WagonTransporter$GetTaskRunner.run(WagonTransporter.java:560)
at org.eclipse.aether.transport.wagon.WagonTransporter.execute(WagonTransporter.java:427)
at org.eclipse.aether.transport.wagon.WagonTransporter.get(WagonTransporter.java:404)
at org.eclipse.aether.connector.basic.BasicRepositoryConnector$GetTaskRunner.runTask(BasicRepositoryConnector.java:447)
at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:350)
… 37 more
[INFO] ————————————————————————
[INFO] BUILD FAILURE
[INFO] ————————————————————————
[INFO] Total time: 01:34 min
[INFO] Finished at: 2016-06-09T16:37:36+05:30
[INFO] Final Memory: 13M/31M
[INFO] ————————————————————————
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:generate (default-cli) on project standalone-pom: The desired archetype does not exist (com.vmware.o11n:o11n-plugin-archetype-inventory:7.0.0) -> [
Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:generate (default-cli) on project standalone-pom: The desired archetype does not exist (com.vmware.
o11n:o11n-plugin-archetype-inventory:7.0.0)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoFailureException: The desired archetype does not exist (com.vmware.o11n:o11n-plugin-archetype-inventory:7.0.0)
at org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execute(CreateProjectFromArchetypeMojo.java:205)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
… 20 more
Caused by: org.apache.maven.archetype.exception.UnknownArchetype: The desired archetype does not exist (com.vmware.o11n:o11n-plugin-archetype-inventory:7.0.0)
at org.apache.maven.archetype.ui.generation.DefaultArchetypeGenerationConfigurator.configureArchetype(DefaultArchetypeGenerationConfigurator.java:119)
at org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execute(CreateProjectFromArchetypeMojo.java:189)
… 22 more
[ERROR]
[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/MojoFailureException
Regards….
posted 7 years ago
-
-

Number of slices to send:
Optional ‘thank-you’ note:
-
-
Hi,
I am new to the Maven build tool. I have installed apache-maven-3.0.5 in my machine. After that I’ve try to run the below command. I am getting the below error.
Please help on this.
mvn archetype:generate -DgroupId=com.mytutorial -DartifactId=simple
Downloading: http://search.maven.org/org/wildfly/plugins/maven-metadata.xml
[INFO] ————————————————————————
[INFO] BUILD FAILURE
[INFO] ————————————————————————
[INFO] Total time: 7.612s
[INFO] Finished at: Wed Mar 18 20:17:46 IST 2015
[INFO] Final Memory: 5M/15M
[INFO] ————————————————————————
[ERROR] No plugin found for prefix ‘archetype’ in the current project and in the plugin groups [org.wildfly.plugins, org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (c:toolshome.m2repository), central (http://search.maven.org/)] -> [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
**********************************************************************************
posted 7 years ago
-
-

Number of slices to send:
Optional ‘thank-you’ note:
-
-
I could run that command fine.. I suspect you have messed around with your repository configurations. search.maven.org is not a maven repository . It should be http://central.maven.org/maven2/org/wildfly/plugins/
Can you post your settings.xml?
Anjaneya Reddy
Greenhorn
Posts: 11
posted 7 years ago
-
-

Number of slices to send:
Optional ‘thank-you’ note:
-
-
please find the setting.xml file
Jayesh A Lalwani
Rancher
Posts: 2759


posted 7 years ago
-
-

Number of slices to send:
Optional ‘thank-you’ note:
-
-
I don;t think this section is right. DO you know why you added this? Has it ever worked since you added that profile?
Just to try it out without that section, run
mvn archetype:generate -DgroupId=com.mytutorial -DartifactId=simple -P !nexus
This will disable the nexus profile. If it works, remove that profile from your settings.xml
Anjaneya Reddy
Greenhorn
Posts: 11
posted 7 years ago
-
-

Number of slices to send:
Optional ‘thank-you’ note:
-
-
Thank you for quick response.
I have tried below combination.it is working fine.
1. I have removed the profile tags and execute the(mvn archetype:generate -DgroupId=com.mytutorial -DartifactId=simple ) command, It is working fine as expected.
2. I have tried this (mvn archetype:generate -DgroupId=com.mytutorial -DartifactId=simple -P !nexus ) with my old settings.xml file. It is working fine as expected.
As per above disable nexus command. I think there is problem in Nexus profile. Can you please share what would be the correct approach.
Thank you. 
