DPascalBernard / maven-alfresco-archetypes

Automatically exported from code.google.com/p/maven-alfresco-archetypes
0 stars 0 forks source link

Default webapp name to 'alfresco' in AMP archetype #84

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create project with AMP archetype:

mvn archetype:generate -DarchetypeGroupId=org.alfresco 
-DarchetypeArtifactId=maven-alfresco-amp-archetype -DarchetypeVersion=3.9.1 
-DgroupId=com.someco -DartifactId=alfresco -Dversion=1.0-SNAPSHOT 
-DarchetypeRepository=http://maven.alfresco.com/nexus/content/repositories/relea
ses -DinteractiveMode=false

2. Create project with Share archetype:

mvn archetype:generate -DarchetypeGroupId=org.alfresco.maven 
-DarchetypeArtifactId=maven-alfresco-share-archetype -DarchetypeVersion=3.9.1 
-DgroupId=uk.gov.bristol.edrmcc -DartifactId=share -Dversion=1.0-SNAPSHOT 
-DarchetypeRepository=http://maven.alfresco.com/nexus/content/repositories/relea
ses -DinteractiveMode=false

What is the expected output? What do you see instead?

This is an enhancement request:

1. The AMP archetype's POM specifies the webapp name as ${artifactId}-webapp 
when running in Jetty. Can this be switched to a property called 
${alfresco.context} instead with default value 'alfresco'? I would suggest that 
defaulting the embedded Alfresco instance to http://localhost:8080/alfresco 
would be a sensible default - most developers would expect such a URL.

2. The Share archetype's share-config-custom.xml specifies the endpoint-url as:

${alfresco.server.scheme}://${alfresco.server.name}:${alfresco.server.port}/alfr
esco/s

Can this be switched to..

${alfresco.server.scheme}://${alfresco.server.name}:${alfresco.server.port}/${al
fresco.webapp.name}/s

Implementing the first enhancement would mean that the Share webapp will just 
run without any configuration changes. Implementing the second enhancement 
would mean that it's easy to switch the remote Alfresco context - just change 
the alfresco.webapp.name property value.

What version of the product are you using? On what operating system?

Alfresco and Share Archetypes 3.9.1

Please provide any additional information below.

Original issue reported on code.google.com by ukdavo on 17 Apr 2012 at 8:38

GoogleCodeExporter commented 9 years ago
The maven alfresco sdk 1.0 already fixes that defaulting to alfresco and share 
as webapp contexts.

Original comment by colum...@gmail.com on 30 Oct 2012 at 12:11

GoogleCodeExporter commented 9 years ago

Original comment by colum...@gmail.com on 30 Oct 2012 at 12:35