My favorites | Sign in
Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 6: web script packing: what is the correct way to pack them ?
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----
Type-Defect
Priority-Medium
Milestone-Release1.1
Component-Amp-Archetype


Sign in to add a comment
 
Reported by romanno...@gmx.at, Jul 21, 2008
What steps will reproduce the problem?
1. put webscripts into
/src/main/resources/alfresco/extension/templates/webscripts/...
2. mvn package puts them into
module-1.0.amp/lib/module-1.0.jar/alfresco/extension/templates/webscripts/...
AND into module-1.0.amp/config/alfresco/extension/templates/webscripts/...

Is it corrent, that the files end up in both places? 

Affected:
amp version 2.0 (11.th Juli)
Comment 1 by columbro, Jul 28, 2008
This can be solved by pom.xml configuration.

Add to the maven-amp-plugin configuration a stricter configuration for the
mAmpJarExcludes property, which excludes from the AMP created JAR not only
alfresco/module package but also alfresco/extension (comma separated).

See [1] for more info.

If working, you can close the issue.

[1]
http://repository.sourcesense.com/maven2-sites/maven-amp-plugin/amp-mojo.html#mAmpJarExcludes
Comment 2 by romanno...@gmx.at, Jul 28, 2008
The following works for me:
...<plugin>
  <groupId>org.alfresco.maven.plugin</groupId>
  <artifactId>maven-amp-plugin</artifactId>
  <version>2.0.0</version>
  <extensions>true</extensions>
  <configuration>
    <!-- exclude for inner JAR -->
    <mAmpJarExcludes>alfresco/module/**, alfresco/extension/**,
alfresco/messages/**</mAmpJarExcludes>
    <archive>
	<addMavenDescriptor>false</addMavenDescriptor>
..


Thanks. Pls. close ticket (I don't see that option).
Comment 3 by columbro, Aug 05, 2008
Can you commit the change here ? I scheduled the change for the 1.1 maintainance release.
Labels: Milestone-Release1.1
Comment 4 by columbro, Aug 05, 2008
(No comment was entered for this change.)
Labels: Component-Amp-Archetype
Sign in to add a comment

Hosted by Google Code