DPascalBernard / maven-alfresco-archetypes

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

alfresco-amp-archetype should allow to customise the Jetty contextPath when running -Pamp-to-war #142

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Add the following elements to the alfresco-sdk-parent POM

<properties>
  ...
  <alfresco.client.contextPath>${project.finalName}</alfresco.client.contextPath>
</properties>

<plugin>
  <groupId>org.mortbay.jetty</groupId>
  <artifactId>maven-jetty-plugin</artifactId>
  ....
  <configuration>
    ...
    <contextPath>$alfresco.client.contextPath</contextPath>
  </configuration>
</plugin>

This will allow devs to easily customise their contextPath without redefining 
the jetty-plugin code in their pom files, but simply re-defining 
<alfresco.client.contextPath>/mycontextpath</alfresco.client.contextPath>

Original issue reported on code.google.com by maurizio...@alfresco.com on 27 Sep 2013 at 1:52

GoogleCodeExporter commented 9 years ago
Correct value of the property is 

<alfresco.client.contextPath>${project.build.finalName}</alfresco.client.context
Path>

ContextPath syntax is 

<contextPath>${alfresco.client.contextPath}</contextPath>

Original comment by maurizio...@alfresco.com on 27 Sep 2013 at 1:56

GoogleCodeExporter commented 9 years ago
Tested successfully. Committed fix and resolved issue.

Anyone willing to peer review? Thanks!

Original comment by maurizio...@alfresco.com on 27 Sep 2013 at 2:03