Newbie question: I am trying to deploy an AMP. I did not write any
code of mine yet, but I already get an error.
Here is what I did:
1) As per the wiki I ran the following:
mvn archetype:generate -DarchetypeGroupId=com.sourcesense.alfresco -
DarchetypeArtifactId=maven-alfresco-amp-archetype -
DarchetypeVersion=1.9.1 -DgroupId=com.mycompany -DartifactId=myamp -
Dversion=1.0-SNAPSHOT -DarchetypeRepository=http://maven.alfresco.com/
nexus/content/repositories/releases -DinteractiveMode=false
2) I edited pom.xml to set the project's version to 0.1 instead of 0.1-
SNAPSHOT
3) I ran mvn install, it worked.
4) I ran mvn deploy, and the following error appeared:
[ERROR] BUILD ERROR
[INFO] Failed to configure plugin parameters for:
org.apache.maven.plugins:maven-deploy-plugin:2.4
check that the following section of the pom.xml is present and
correct:
<distributionManagement>
<!-- use the following if you're not using a snapshot version. -->
<repository>
<id>repo</id>
<name>Repository Name</name>
<url>scp://host/path/to/repo</url>
</repository>
<!-- use the following if you ARE using a snapshot version. -->
<snapshotRepository>
<id>repo</id>
<name>Repository Name</name>
<url>scp://host/path/to/repo</url>
</snapshotRepository>
</distributionManagement>
Cause: Class 'org.apache.maven.artifact.repository.ArtifactRepository'
cannot be instantiated
Is it normal?
Are the wiki instructions up-to-date?
http://wiki.alfresco.com/wiki/Managing_Alfresco_Lifecyle_with_Maven
Did I miss something?
Thanks a lot!
Nicolas Raoul
Newbie question: I am trying to deploy an AMP.
Are the wiki instructions up-to-date?
http://wiki.alfresco.com/wiki/Managing_Alfresco_Lifecyle_with_Maven
Did I miss something?
Thanks a lot!
Nicolas Raoul
--
You received this message because you are subscribed to the Google Groups "Maven Alfresco Lifecycle Discussion Group" group.
To post to this group, send email to maven-a...@googlegroups.com.
To unsubscribe from this group, send email to maven-alfresc...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/maven-alfresco?hl=en.