When I trying create empty maven project using alfresco sdk:
mvn archetype:generate -DarchetypeCatalog=https://artifacts.alfresco.com/nexus/content/groups/public/archetype-catalog.xml -Dfilter=org.alfresco.maven.archetype
I get an error:
archetypeCatalog
'https://artifacts.alfresco.com/nexus/content/groups/public/archetype-catalog.xml'
is not supported anymore. Please read the plugin documentation for
details.
please tell me how can I fix this!!!
You are using wrong command. if you don't see the menu for creating the archetype, check firewall settings.
use the below command:
mvn archetype:generate -Dfilter=org.alfresco:
Related
I got a project written in java EE 5.
I use:
Java 7
Maven 3.5.4
idea 2018.2.5x64
When you build a project through idea, the project is not built.
enter image description here
But when I run the mvn package through console, the process completes successfully
Help me please for this issue.
Try to update your maven dependencies in Intellij. Usually you should see a prompt asking you to do that.
Read this for more details on updating dependencies: How can I make IntelliJ IDEA update my dependencies from Maven?
getting error Failed to execute goal org.apache.maven.plugins while running command mvn -PautoInstallPackage install for creating AEM 6.3 Project using adobe archetype11, following steps mentioned in article https://helpx.adobe.com/experience-manager/using/maven_arch11.html. I am using setting.xml available in this article. But when I remove proxy from setting.xml the build was successful using cmd mvn -PautoInstallPackage. How can I achieve build success without removing proxy tag from setting.xml?
used local.net|some.host.com and local.net|some.host.com . Still the issue exists. Please provide a help.
Deleting full .m2/repository local repository may solve your problem.
Or else you need to know what plugins are you using exactly with their dependencies as one of the plugin suffered a problem while downloading
I am new to MAVEN and restful services. I have MAVEN installed it correctly and set the variables. I was creating a webservice using the jersey-quickstart-webapp but found it did not appeared in the list of Archetypes.
I tried to add it using using ADD Archetypes option. After the entering the details
GroupId: org.glassfish.jersey.archetypes
ArtifactId: jersey-quickstart-webapp
Version : 2.16 // version is correct??
I get following error please help.
<b>
org.eclipse.core.runtime.CoreException: Could not resolve artifact
org.glassfish.jersey.archetypes:jersey-quickstart-webapp:pom:2.16</b>
I don't have a ready explanation as to why the Eclipse archetype plugin was giving you this error, since 2.16 is a valid version of jersey-quickstart-webapp. However, I would recommend that you try manually executing the following command from a command prompt:
mvn archetype:generate -DarchetypeArtifactId=jersey-quickstart-webapp
-DarchetypeGroupId=org.glassfish.jersey.archetypes -DinteractiveMode=false
-DgroupId=com.example -DartifactId=simple-service-webapp -Dpackage=com.example
-DarchetypeVersion=2.19
Make sure that you first delete the jersey-quickstart-webapp folder, if it exists, from your Maven .m2 directory. This may be necessary to avoid from something getting corrupted during the archetype install.
Here is a link to the official documentation for creating a Jersey EE application from a Maven archetype.
First off I'm not on a separate system in order to post this question and have no way of connecting the other system to the internet. This machine I'm on is locked down so I am not able to install or do anything other than email and view the web for research.
Used Reference: http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html
Environment: Maven 2.2.1
Yes the Maven build functions fine for the existing project.
Situation:
I'm new to Maven and this project I'm on, the other developers are GONE. There is a .bat file that was used to run the project builds and that's all I know of Maven.
I am attempting to learn Maven on the other machine that has it installed I am using the Apache site mentioned above. The instructions tells me to create a project using the command
mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false but, I get the
'BUILD FAILURE'
Error reading archetype catalog http://repo1.maven.org/maven2... (and other errors)
The desired archetype does not exist (org.apache.maven.archetypes:maven-archetype=quickstart:1.0
So, question is what am I to do in order to create a dummy project so I can see WTF is going on with Maven when I'm in an environment that is not able to reach the 'maven.org' site?
If there are threads on learning Maven offline that someone can point me to that too would be of use. I'm not seeing anything though that helps me get started on this.
Thank you for looking and your time.
The problem seems that maven is looking for the architype on the central repository.
You can create your own pom.xml with an editor:
http://maven.apache.org/guides/introduction/introduction-to-the-pom.html
currently I am trying to create maven project for activiti workflow engine. However, when I use command "mvn archetype: generate", it always show following error:
What is wrong with my maven?
NB: I have read this solution, but I can still access following link: http://repo.maven.apache.org/maven2/org/apache/maven/plugins and also I have checked that archetype plugin is there.
Thanks in advance.