From f0e85330eb68e3a7e90e454f35c34a2eea58d847 Mon Sep 17 00:00:00 2001 From: mindthegab Date: Thu, 5 Nov 2009 22:00:36 +0000 Subject: [PATCH] added maven-alfresco-lifecycle 1.0.0 super pom using maven calm, refactored repositories urls and dependencies git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@209 04253f4f-3451-0410-a141-5562f1e59037 --- .../maven-alfresco-amp-archetype/pom.xml | 37 +- .../archetype-resources/module.properties | 2 +- .../resources/archetype-resources/pom.xml | 288 ++++--- .../pom.xml | 41 +- .../resources/archetype-resources/pom.xml | 48 +- .../src/site/src/changes/changes.xml | 24 + .../maven/plugin/amp/AbstractAmpMojo.java | 765 ++++++++++++++++++ .../maven/plugin/amp/AmpExplodedMojo.java | 42 + .../alfresco/maven/plugin/amp/AmpMojo.java | 348 ++++++++ .../alfresco/maven/plugin/amp/Overlay.java | 309 +++++++ .../plugin/amp/overlay/DefaultOverlay.java | 62 ++ .../InvalidOverlayConfigurationException.java | 44 + .../plugin/amp/overlay/OverlayManager.java | 257 ++++++ .../packaging/AbstractAmpPackagingTask.java | 409 ++++++++++ .../amp/packaging/AmpPackagingContext.java | 189 +++++ .../amp/packaging/AmpPackagingTask.java | 47 ++ .../amp/packaging/AmpPostPackagingTask.java | 27 + .../packaging/AmpProjectPackagingTask.java | 326 ++++++++ .../amp/packaging/ArtifactsPackagingTask.java | 135 ++++ .../amp/packaging/ClassesPackagingTask.java | 84 ++ .../amp/packaging/OverlayPackagingTask.java | 150 ++++ .../SaveAmpStructurePostPackagingTask.java | 50 ++ .../maven/plugin/amp/util/AmpStructure.java | 312 +++++++ .../amp/util/AmpStructureSerializer.java | 93 +++ .../maven/plugin/amp/util/CompositeMap.java | 61 ++ .../maven/plugin/amp/util/MappingUtils.java | 95 +++ .../maven/plugin/amp/util/PathSet.java | 284 +++++++ .../maven/plugin/amp/util/PropertyUtils.java | 155 ++++ .../plugin/amp/util/ReflectionProperties.java | 60 ++ .../alfresco/plexus/archiver/AmpArchiver.java | 114 +++ .../plexus/archiver/AmpUnArchiver.java | 279 +++++++ .../resources/META-INF/maven/lifecycle.xml | 17 + .../resources/META-INF/plexus/components.xml | 53 ++ .../src/site/src/site/apt/components.apt.vm | 37 + .../src/site/src/site/apt/index.apt.vm | 55 ++ .../src/site/src/site/site.xml | 38 + maven-alfresco-archetypes/pom.xml | 187 +---- plugins/maven-amp-plugin/pom.xml | 102 +-- plugins/maven-nosnapshot-plugin/pom.xml | 44 +- pom.xml | 221 +++++ src/changes/changes.xml | 13 + src/site/site.xml | 31 + 42 files changed, 5412 insertions(+), 523 deletions(-) create mode 100644 maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/site/src/changes/changes.xml create mode 100644 maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/site/src/main/java/org/alfresco/maven/plugin/amp/AbstractAmpMojo.java create mode 100644 maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/site/src/main/java/org/alfresco/maven/plugin/amp/AmpExplodedMojo.java create mode 100644 maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/site/src/main/java/org/alfresco/maven/plugin/amp/AmpMojo.java create mode 100644 maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/site/src/main/java/org/alfresco/maven/plugin/amp/Overlay.java create mode 100644 maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/site/src/main/java/org/alfresco/maven/plugin/amp/overlay/DefaultOverlay.java create mode 100644 maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/site/src/main/java/org/alfresco/maven/plugin/amp/overlay/InvalidOverlayConfigurationException.java create mode 100644 maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/site/src/main/java/org/alfresco/maven/plugin/amp/overlay/OverlayManager.java create mode 100644 maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/site/src/main/java/org/alfresco/maven/plugin/amp/packaging/AbstractAmpPackagingTask.java create mode 100644 maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/site/src/main/java/org/alfresco/maven/plugin/amp/packaging/AmpPackagingContext.java create mode 100644 maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/site/src/main/java/org/alfresco/maven/plugin/amp/packaging/AmpPackagingTask.java create mode 100644 maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/site/src/main/java/org/alfresco/maven/plugin/amp/packaging/AmpPostPackagingTask.java create mode 100644 maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/site/src/main/java/org/alfresco/maven/plugin/amp/packaging/AmpProjectPackagingTask.java create mode 100644 maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/site/src/main/java/org/alfresco/maven/plugin/amp/packaging/ArtifactsPackagingTask.java create mode 100644 maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/site/src/main/java/org/alfresco/maven/plugin/amp/packaging/ClassesPackagingTask.java create mode 100644 maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/site/src/main/java/org/alfresco/maven/plugin/amp/packaging/OverlayPackagingTask.java create mode 100644 maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/site/src/main/java/org/alfresco/maven/plugin/amp/packaging/SaveAmpStructurePostPackagingTask.java create mode 100644 maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/site/src/main/java/org/alfresco/maven/plugin/amp/util/AmpStructure.java create mode 100644 maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/site/src/main/java/org/alfresco/maven/plugin/amp/util/AmpStructureSerializer.java create mode 100644 maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/site/src/main/java/org/alfresco/maven/plugin/amp/util/CompositeMap.java create mode 100644 maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/site/src/main/java/org/alfresco/maven/plugin/amp/util/MappingUtils.java create mode 100644 maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/site/src/main/java/org/alfresco/maven/plugin/amp/util/PathSet.java create mode 100644 maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/site/src/main/java/org/alfresco/maven/plugin/amp/util/PropertyUtils.java create mode 100644 maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/site/src/main/java/org/alfresco/maven/plugin/amp/util/ReflectionProperties.java create mode 100644 maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/site/src/main/java/org/alfresco/plexus/archiver/AmpArchiver.java create mode 100644 maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/site/src/main/java/org/alfresco/plexus/archiver/AmpUnArchiver.java create mode 100644 maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/site/src/main/resources/META-INF/maven/lifecycle.xml create mode 100644 maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/site/src/main/resources/META-INF/plexus/components.xml create mode 100644 maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/site/src/site/apt/components.apt.vm create mode 100644 maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/site/src/site/apt/index.apt.vm create mode 100644 maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/site/src/site/site.xml create mode 100644 pom.xml create mode 100644 src/changes/changes.xml create mode 100644 src/site/site.xml diff --git a/maven-alfresco-archetypes/maven-alfresco-amp-archetype/pom.xml b/maven-alfresco-archetypes/maven-alfresco-amp-archetype/pom.xml index 7f592e32..2e96fb97 100644 --- a/maven-alfresco-archetypes/maven-alfresco-amp-archetype/pom.xml +++ b/maven-alfresco-archetypes/maven-alfresco-amp-archetype/pom.xml @@ -18,11 +18,9 @@ --> 4.0.0 - com.sourcesense.alfresco maven-alfresco-amp-archetype maven-archetype Maven Alfresco Amp Archetype - 1.0.5-SNAPSHOT This archetype aims to provide a standardized approach to development, release and deployment of Alfresco AMPs (as opposed to Alfresco extensions, released as a different artifact ). Using standard m2 lifecycle commands (mvn compile package deploy) and generally available @@ -30,18 +28,11 @@ minutes to have a compatible AMP module built and its lifecycle supported by Maven, in a fully transparent way also with open source available AMPs. - - ${svn.base.url}/trunk/maven-alfresco-archetypes/${artifactId} - https://repository.sourcesense.com/maven2-sites/maven-alfresco-archetypes/${pom.artifactId} - - - scm:svn:https://maven-alfresco-archetypes.googlecode.com/svn/trunk/maven-alfresco-archetypes/maven-alfresco-amp-archetype - https://maven-alfresco-archetypes.googlecode.com/svn/trunk/maven-alfresco-archetypes/maven-alfresco-amp-archetype - + ${project.artifactId} com.sourcesense.alfresco maven-alfresco-archetypes - 1.0.5-SNAPSHOT + 1.9.0-SNAPSHOT @@ -51,29 +42,5 @@ 2.0-alpha-3 - - - org.apache.maven.plugins - maven-release-plugin - 2.0-beta-7 - - - - clean package - deploy site:site site:deploy - ${svn.tags.url} - - - - - - ss-public - scp://repository.sourcesense.com/var/www/repository.sourcesense.com/maven2 - - - ss-public - scp://repository.sourcesense.com/var/www/repository.sourcesense.com/maven2-sites/${pom.artifactId} - - diff --git a/maven-alfresco-archetypes/maven-alfresco-amp-archetype/src/main/resources/archetype-resources/module.properties b/maven-alfresco-archetypes/maven-alfresco-amp-archetype/src/main/resources/archetype-resources/module.properties index d4aac065..d317e526 100644 --- a/maven-alfresco-archetypes/maven-alfresco-amp-archetype/src/main/resources/archetype-resources/module.properties +++ b/maven-alfresco-archetypes/maven-alfresco-amp-archetype/src/main/resources/archetype-resources/module.properties @@ -23,7 +23,7 @@ module.id=${pom.groupId}.${pom.artifactId} #module.aliases=myModule-123, my-module module.title=${pom.name} module.description=${pom.description} -module.version=${buildNumber} +module.version=${noSnapshotVersion}.${buildNumber} # The following optional properties can be used to prevent the module from being added # to inappropriate versions of the WAR file. diff --git a/maven-alfresco-archetypes/maven-alfresco-amp-archetype/src/main/resources/archetype-resources/pom.xml b/maven-alfresco-archetypes/maven-alfresco-amp-archetype/src/main/resources/archetype-resources/pom.xml index e0fada2e..719a37bc 100644 --- a/maven-alfresco-archetypes/maven-alfresco-amp-archetype/src/main/resources/archetype-resources/pom.xml +++ b/maven-alfresco-archetypes/maven-alfresco-amp-archetype/src/main/resources/archetype-resources/pom.xml @@ -1,83 +1,97 @@ - - + + 4.0.0 ${groupId} ${artifactId} amp Maven Alfresco AMP Packaging Sample - + ${version} Test AMP project - ss-public - http://repository.sourcesense.com/maven2 + ss-public-mirror + http://repository.sourcesense.com/nexus/content/groups/public + + + ss-public-snapshots-mirror + http://repository.sourcesense.com/nexus/content/groups/public-snapshots ss-public - http://repository.sourcesense.com/maven2 + http://repository.sourcesense.com/nexus/content/groups/public + + + ss-public-snapshots-mirror + http://repository.sourcesense.com/nexus/content/groups/public-snapshots + + true + - local ${artifactId}-webapp - ./alf_data_jetty alf_jetty alfresco - alfresco + alfresco error debug - @@ -95,24 +109,24 @@ 2.0 provided - - + - mysql mysql-connector-java @@ -120,32 +134,48 @@ - + - scm:svn:http://domain.com/svn/trunk/ - scm:svn:https://${maven.username}@domain.com/svn/trunk/ - http://domain.com/svn/trunk/ + scm:svn:http://domain.com/svn/trunk/ + scm:svn:https://${maven.username}@domain.com/svn/trunk/ + http://domain.com/svn/trunk/ - org.codehaus.mojo - buildnumber-maven-plugin - - - validate - - create - - - - - 1 - false - false - - - + maven-nosnapshot-plugin + com.sourcesense.maven + 0.0.5-SNAPSHOT + + + default + initialize + + strip + + + + + + org.codehaus.mojo + buildnumber-maven-plugin + + + validate + + create + + + + + 1 + false + false + + maven-compiler-plugin @@ -156,29 +186,31 @@ org.alfresco.maven.plugin maven-amp-plugin - 2.0.0 + 3.0.1-SNAPSHOT true false - - - + true @@ -187,8 +219,11 @@ **README-* - + true src/main/config @@ -200,11 +235,16 @@ - + webapp - src/test/properties/${env}/application.properties + + src/test/properties/${env}/application.properties + jetty:run-exploded @@ -225,8 +265,11 @@ - + org.alfresco.maven.plugin maven-amp-plugin @@ -252,7 +295,10 @@ false - + ${build.directory}/${webapp.name} false @@ -280,12 +326,15 @@ - + org.alfresco.maven.plugin maven-amp-plugin - 2.0.0 + 3.0.1-SNAPSHOT @@ -315,8 +364,11 @@ - @@ -329,9 +381,11 @@ src/test/properties/${env} alfresco/extension - @@ -344,13 +398,17 @@ - - + org.alfresco alfresco diff --git a/maven-alfresco-archetypes/maven-alfresco-extension-archetype/pom.xml b/maven-alfresco-archetypes/maven-alfresco-extension-archetype/pom.xml index 73960022..fe4ea4bf 100644 --- a/maven-alfresco-archetypes/maven-alfresco-extension-archetype/pom.xml +++ b/maven-alfresco-archetypes/maven-alfresco-extension-archetype/pom.xml @@ -18,16 +18,14 @@ --> 4.0.0 - com.sourcesense.alfresco maven-alfresco-extension-archetype - 1.1.5-SNAPSHOT maven-archetype Maven alfresco Extension archetype - ${site.url} + ${project.artifactId} com.sourcesense.alfresco maven-alfresco-archetypes - 1.0.5-SNAPSHOT + 1.9.0-SNAPSHOT This archetype developed aims to provide a standardized approach to development, release and deployment of Alfresco extensions (as opposed to @@ -39,14 +37,6 @@ least, m2 build is more likely to be maintained and improved (especially in the likely case Alfresco moves to maven2). For more details on the m2 apprach please refer instead to README Section (or directly and to README-m2.txt of the generated project). - - ${svn.base.url}/trunk/maven-alfresco-archetypes/${artifactId} - https://repository.sourcesense.com/maven2-sites/maven-alfresco-archetypes/${pom.artifactId} - - - scm:svn:https://maven-alfresco-archetypes.googlecode.com/svn/trunk/maven-alfresco-archetypes/maven-alfresco-extension-archetype - https://maven-alfresco-archetypes.googlecode.com/svn/trunk/maven-alfresco-archetypes/maven-alfresco-extension-archetype - @@ -57,31 +47,6 @@ - - - - - org.apache.maven.plugins - maven-release-plugin - 2.0-beta-7 - - - - clean package - deploy site:site site:deploy - ${svn.tags.url} - - - + - - - ss-public - scp://repository.sourcesense.com/var/www/repository.sourcesense.com/maven2 - - - ss-public - scp://repository.sourcesense.com/var/www/repository.sourcesense.com/maven2-sites/${pom.artifactId} - - diff --git a/maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/main/resources/archetype-resources/pom.xml b/maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/main/resources/archetype-resources/pom.xml index c945216f..efa90cda 100644 --- a/maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/main/resources/archetype-resources/pom.xml +++ b/maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/main/resources/archetype-resources/pom.xml @@ -38,12 +38,6 @@ | -Dwebapp.name= - name of the WAR artifact to be built (default: ${artifactId}-{version}.jar ) | -Denterprise - Includes LDAP configuration as defined in application.properties --> - - - ss-public - http://repository.sourcesense.com/maven2 - - @@ -95,26 +89,28 @@ | Alfresco Community dependencies are generally available in ss-public repo. | FIXME: Alfresco enterprise dependencies are only available on SS repo ATM. Alfresco *needs* to deliver their artifacts on (at least) partner repos |--> + + + ss-public-mirror + http://repository.sourcesense.com/nexus/content/groups/public + + + ss-public-snapshots-mirror + http://repository.sourcesense.com/nexus/content/groups/public-snapshots + + - codehaus snapshot repository - http://snapshots.repository.codehaus.org/ - - true - + ss-public + http://repository.sourcesense.com/nexus/content/groups/public - Maven Snapshots - http://snapshots.maven.codehaus.org/maven2/ - - - false - - - - ss-public - http://repository.sourcesense.com/maven2 - + ss-public-snapshots-mirror + http://repository.sourcesense.com/nexus/content/groups/public-snapshots + + true + + - - ss-private - dav:https://dev.sourcesense.com/repos/dev/maven2 - - - ss-site-private - dav:https://dev.sourcesense.com/cargo/maven2-sites - + + org.codehaus.plexus.archiver.UnArchiver + amp + org.alfresco.plexus.archiver.AmpUnArchiver + + + + \ No newline at end of file diff --git a/maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/site/src/site/apt/components.apt.vm b/maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/site/src/site/apt/components.apt.vm new file mode 100644 index 00000000..0db45ded --- /dev/null +++ b/maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/site/src/site/apt/components.apt.vm @@ -0,0 +1,37 @@ + ----- + Maven AMP Plugin Plexus Components + ----- + + + +AMP Lifecycle Mapping + + This plugin provides support for amp type of projects. \ + Lifecycle of an Alfresco modules is mapped in the file: + + {{ ${site_tags_url}/${site_pom_artifactId}-${site_pom_version}/src/main/resources/META-INF/plexus/components.xml }} + + This build produces an Alfresco compatible AMP as main build product. It supports (being derived from maven-war-plugin) + overlay of modules and transitive AMP dependency packing. + + An AMP depending on one ore more AMP will package those AMP in the final product of the build: + overlays can be configured same as in {{ http://maven.apache.org/plugins/maven-war-plugin/overlays.html }}. + A plain zip UnArchiver is used for this overlay. + + + +AMP -> WAR Unarchiver + + The default UnArchiver (role-hint="amp") used by the default maven infrastructure for .amp files is a custom UnArchiver + which behaves as the MMT, unarchiving AMPs in the proper places as dictated by {{{http://wiki.alfresco.com/wiki/AMP_Files} Alfresco AMP convention}} . + This little component allows any plugin to manage .amp dependencies in case the maven-amp-plugin is declared with true in + the current POM, basically supporting AMPs in Maven with no need for custom external tools like MMT. + + See {{ ${site_tags_url}/${site_pom_artifactId}-${site_pom_version}/src/main/resources/META-INF/plexus/components.xml }} + + +AMP Artifact Handler + + Instructs maven which type of Archive is the AMP, providing info about its inclusion in the classpath or the fact that already contains + its dependencies. + \ No newline at end of file diff --git a/maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/site/src/site/apt/index.apt.vm b/maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/site/src/site/apt/index.apt.vm new file mode 100644 index 00000000..aa0f430f --- /dev/null +++ b/maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/site/src/site/apt/index.apt.vm @@ -0,0 +1,55 @@ + ----- + Maven AMP Plugin + ----- + + + + +Welcome to the Maven Alfresco AMP plugin home + + You've reached the ({{ ${site_pom_url} }}) Maven Alfresco Extension archetype home page (version: ${site_pom_version}) + + + +Description + + ${site_pom_description} + + +References + + Deployed at: {{ http://repository.sourcesense.com/maven2/org/alfresco/maven/plugin }} + + Maven usage: + + +------------------------------------------ + + + ${site_pom_groupId} + ${site_pom_artifactId} + ${site_pom_version} + + true + + +------------------------------------------- + + + using repository (either in POM or settings.xml) : + + +------------------------------------------ + + + ss-public + http://repository.sourcesense.com/maven2 + + +------------------------------------------- + + +Quick usage + + Create a project using the maven-alfresco-amp-archetype (see {{ http://repository.sourcesense.com/maven2-sites/maven-alfresco-amp-archetype }} ). + \ No newline at end of file diff --git a/maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/site/src/site/site.xml b/maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/site/src/site/site.xml new file mode 100644 index 00000000..2ae769fd --- /dev/null +++ b/maven-alfresco-archetypes/maven-alfresco-extension-archetype/src/site/src/site/site.xml @@ -0,0 +1,38 @@ + + + org.apache.maven.skins + maven-stylus-skin + 1.0 + + + + + + + + Maven AMP Plugin - v. ${project.version} + ${site_site_url} + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/maven-alfresco-archetypes/pom.xml b/maven-alfresco-archetypes/pom.xml index 1fc26db3..9dcf991c 100644 --- a/maven-alfresco-archetypes/pom.xml +++ b/maven-alfresco-archetypes/pom.xml @@ -3,198 +3,27 @@ com.sourcesense.alfresco maven-alfresco-archetypes pom - 1.0.5-SNAPSHOT + 1.9.0-SNAPSHOT Maven Alfresco Archetypes base project - This project is meant to gather all commons configurations and settings between the two maven-alfresco-*-archetypes, i.e. - maven-alfresco-extension-archetype and maven-alfresco-amp-archetype + This project is meant to gather all commons configurations and settings between the two maven-alfresco-*-archetypes, i.e. maven-alfresco-extension-archetype and maven-alfresco-amp-archetype - ${site.url} - - Google Code - http://code.google.com/p/maven-alfresco-archetypes/issues/list - - - Sourcesense - http://www.sourcesense.com - + ${project.artifactId} + + org.alfresco + maven-alfresco-lifecycle + 1.0.0-SNAPSHOT + maven-alfresco-amp-archetype maven-alfresco-extension-archetype - - https://maven-alfresco-archetypes.googlecode.com/svn - ${svn.base.url}/trunk/${artifactId} - ${svn.base.url}/tags - https://repository.sourcesense.com/maven2-sites/${pom.artifactId} - - ${pom.description} - ${pom.organization.url} - ${pom.groupId} - ${pom.artifactId} - ${pom.version} - ${svn.tags.url} - ${site.url} - - - scm:svn:https://maven-alfresco-archetypes.googlecode.com/svn/trunk/maven-alfresco-archetypes - https://maven-alfresco-archetypes.googlecode.com/svn/trunk/maven-alfresco-archetypes - - - - ss-public - http://repository.sourcesense.com/maven2 - - - - snapshots.apache - http://people.apache.org/repo/m2-snapshot-repository - - - daily - - - - - - g.columbro - Gabriele Columbro - g.columbro@sourcesense.com - - Alfresco Architect - Developer - - Sourcesense - http://www.sourcesense.com - - - - - Sourcesense Alfresco Dev Mailing list - alfresco-dev-subscribe@lists.sourcesense.com - alfresco-dev-unsubscribe@lists.sourcesense.com - alfresco-dev@lists.sourcesense.com - - - - - - - org.apache.maven.wagon - wagon-webdav - 1.0-beta-3 - - maven-archetype-plugin true - - org.apache.maven.plugins - maven-changes-plugin - - - - announcement-generate - - announcement-generate - - - - announcement-mail - - announcement-mail - - - - - mail.sourcesense.com - 25 - - - g.columbro@sourcesense.com - - ${smtp.username} - ${smtp.password} - g.columbro - - - - org.apache.maven.plugins - maven-release-plugin - 2.0-beta-9 - - - clean package - deploy site-deploy - ${svn.tags.url} - - - - - - maven-compiler-plugin - - 1.5 - 1.5 - - - - maven-surefire-plugin - - - maven-javadoc-plugin - - - org.codehaus.mojo - jxr-maven-plugin - - - maven-clover-plugin - - - org.apache.maven.plugins - maven-changes-plugin - - - - changes-report - - - - - - org.codehaus.mojo - changelog-maven-plugin - - - org.codehaus.mojo - taglist-maven-plugin - - - org.apache.maven.plugins - maven-plugin-plugin - - - - - - ss-public - scp://repository.sourcesense.com/var/www/repository.sourcesense.com/maven2 - - - ss-public - scp://repository.sourcesense.com/var/www/repository.sourcesense.com/maven2-sites/${pom.artifactId} - - diff --git a/plugins/maven-amp-plugin/pom.xml b/plugins/maven-amp-plugin/pom.xml index ad019905..d5a31764 100644 --- a/plugins/maven-amp-plugin/pom.xml +++ b/plugins/maven-amp-plugin/pom.xml @@ -1,15 +1,16 @@ - - maven-plugins - org.apache.maven.plugins - 8 - 4.0.0 org.alfresco.maven.plugin maven-amp-plugin maven-plugin Alfresco AMP Plugin 3.0.1-SNAPSHOT + + org.alfresco + maven-alfresco-lifecycle + 1.0.0-SNAPSHOT + ../../pom.xml + This plugin defines a lifecycle for Alfresco ECM Modules packaging (.amp), handles AMP transitive dependencies from AMP and WAR projects, providing a more enterprise oriented support alternative to the Alfresco MMT (module management tool) usage. It is used by @@ -17,18 +18,8 @@ AMPs and WARs. It is a modification of the org.apache.maven.plugins:maven-war-plugin of which it uses the whole core infrastructure. See ${site.url} for more info - ${site.url} - - 2.0.8 - - - GForge - https://forge.alfresco.com/tracker/?group_id=121 - + ${project.artifactId} - https://maven-alfresco-archetypes.googlecode.com/svn/trunk/plugins/maven-amp-plugin - https://maven-alfresco-archetypes.googlecode.com/svn/tags - https://repository.sourcesense.com/maven2-sites/${pom.artifactId} ${pom.description} ${pom.url} ${pom.groupId} @@ -38,12 +29,12 @@ - mindthegab + columbro Gabriele Columbro - g.columbro@sourcesense.com + gabriele.columbro@alfresco.com - Sourcesense - http://www.sourcesense.com + Alfresco + http://www.alfresco.com rdanner @@ -53,62 +44,6 @@ - - scm:svn:https://forge.alfresco.com/svn/maven4alfresco/amp-plugin/tags/maven-amp-plugin-3.0.0 - https://forge.alfresco.com/svn/maven4alfresco/amp-plugin/tags/maven-amp-plugin-3.0.0 - scm:svn:https://forge.alfresco.com/svn/maven4alfresco/amp-plugin/tags/maven-amp-plugin-3.0.0 - - - - - - maven-compiler-plugin - - 1.5 - 1.5 - - - - org.apache.maven.plugins - maven-changes-plugin - - - mail.sourcesense.com - 25 - - sysadmin@sourcesense.com - alfresco@sourcesense.com - alfresco-dev@lists.sourcesense.com - users@maven.apache.org - announce@maven.apache.org - - ${smtp.username} - ${smtp.password} - mindthegab - - - - org.apache.maven.plugins - maven-release-plugin - 2.0-beta-5 - - - - clean package - deploy site:site site:deploy changes:announcement-mail - ${svn.tags.url} - -Dgpg.skip=true - - - - maven-gpg-plugin - org.apache.maven.plugins - - true - - - - org.apache.maven @@ -148,19 +83,4 @@ test - - - ss-public - scp://repository.sourcesense.com/var/www/repository.sourcesense.com/maven2 - - - ss-public - SS public repo - scp://repository.sourcesense.com/var/www/repository.sourcesense.com/maven2-snapshots - - - ss-site-public - scp://repository.sourcesense.com/var/www/repository.sourcesense.com/maven2-sites/${pom.artifactId} - - diff --git a/plugins/maven-nosnapshot-plugin/pom.xml b/plugins/maven-nosnapshot-plugin/pom.xml index 336b7b10..bb9c0430 100644 --- a/plugins/maven-nosnapshot-plugin/pom.xml +++ b/plugins/maven-nosnapshot-plugin/pom.xml @@ -4,12 +4,15 @@ maven-nosnapshot-plugin maven-plugin 0.0.5-SNAPSHOT - Custom version manipulator Maven Plugin. It's non invasive and puts modified versions in configurable pom properties - http://maven.apache.org - - scm:svn:https://maven-alfresco-archetypes.googlecode.com/svn/trunk/plugins/maven-nosnapshot-plugin - https://maven-alfresco-archetypes.googlecode.com/svn/trunk/plugins/maven-nosnapshot-plugin - + Custom version manipulator Maven Plugin + It's non invasive and puts modified versions in configurable pom properties + ${project.artifactId} + + org.alfresco + maven-alfresco-lifecycle + 1.0.0-SNAPSHOT + ../../pom.xml + org.apache.maven @@ -34,32 +37,5 @@ test - - - - maven-compiler-plugin - - 1.5 - 1.5 - - - - org.apache.maven.plugins - maven-release-plugin - - - clean - deploy - https://maven-alfresco-archetypes.googlecode.com/svn/tags - true - - - - - - - ss-nexus - http://repository.sourcesense.com/nexus/content/repositories/releases - - + diff --git a/pom.xml b/pom.xml new file mode 100644 index 00000000..e8931a4c --- /dev/null +++ b/pom.xml @@ -0,0 +1,221 @@ + + 4.0.0 + org.alfresco + maven-alfresco-lifecycle + pom + 1.0.0-SNAPSHOT + Maven Alfresco Lifecycle support base project + + com.sourcesense.maven + maven-calm + 1.0-beta-21 + + + This project is meant to gather all commons configurations, plugins and archetypes + for the full Maven Alfresco lifecycle support + + + Google Code + http://code.google.com/p/maven-alfresco-archetypes/issues/list + + + Sourcesense + http://www.sourcesense.com + + + maven-alfresco-archetypes + plugins/maven-amp-plugin + plugins/maven-nosnapshot-plugin + + + https://maven-alfresco-archetypes.googlecode.com/svn + ${svn.base.url}/trunk + ${svn.base.url}/tags + http://repository.sourcesense.com/nexus/content/repositories/alfresco.public.sites/${pom.artifactId} + + ${pom.description} + ${pom.organization.url} + ${pom.groupId} + ${pom.artifactId} + ${pom.version} + ${svn.tags.url} + ${site.url} + + + scm:svn:${svn.url} + scm:svn:${svn.url} + ${svn.url} + + + + ss-public-mirror + http://repository.sourcesense.com/nexus/content/groups/public + + + ss-public-snapshots-mirror + http://repository.sourcesense.com/nexus/content/groups/public-snapshots + + true + daily + + + + + + ss-public-mirror + http://repository.sourcesense.com/nexus/content/groups/public + + + ss-public-snapshots-mirror + http://repository.sourcesense.com/nexus/content/groups/public-snapshots + + true + daily + + + + + + columbro + Gabriele Columbro + gabriele.columbro@alfresco.com + + Founder + Alfresco Solution Engineer + Developer + + Alfresco + http://www.alfresco.com + + + maurizio@session.it + Maurizio Pillitu + m.pillitu@sourcesense.com + Sourcesense + http://www.sourcesense.com + + Solution architect + Agile guru + Maven Calm Expert + + + + + + Maven Alfresco Google Group + http://groups.google.com/group/maven-alfresco + http://groups.google.com/group/maven-alfresco/subscribe + + + + + + org.apache.maven.plugins + maven-changes-plugin + + + + announcement-generate + + announcement-generate + + + + announcement-mail + + announcement-mail + + + + + + ${smtp.server} + ${smtp.port} + + columbro@gmail.com + + ${smtp.username} + ${smtp.password} + columbro + + + + org.apache.maven.plugins + maven-release-plugin + + + clean package + deploy site-deploy changes:announcement-generate + changes:announcement-email site-deploy + ${svn.tags.url} + + + + + + + + maven-compiler-plugin + + 1.5 + 1.5 + + + + maven-surefire-plugin + + + + report-only + + + + + + maven-javadoc-plugin + + + org.codehaus.mojo + jxr-maven-plugin + + + maven-changes-plugin + + + + changes-report + + + + + + org.codehaus.mojo + changelog-maven-plugin + + + + + + ss-public + http://repository.sourcesense.com/nexus/content/repositories/alfresco.public.releases + + + ss-public-snapshots + http://repository.sourcesense.com/nexus/content/repositories/alfresco.public.snapshots + + + ss-public-sites + http://repository.sourcesense.com/nexus/content/repositories/alfresco.public.sites/${project.artifactId} + + + diff --git a/src/changes/changes.xml b/src/changes/changes.xml new file mode 100644 index 00000000..a8bc5422 --- /dev/null +++ b/src/changes/changes.xml @@ -0,0 +1,13 @@ + + + Maven Alfresco Extension archetype + Gabriele Columbro + + + + + Added this wrapper project to group all Maven Alfresco plugins and archetype useful for the Maven Alfresco Lifecycle support + + + + diff --git a/src/site/site.xml b/src/site/site.xml new file mode 100644 index 00000000..250b1a5a --- /dev/null +++ b/src/site/site.xml @@ -0,0 +1,31 @@ + + + org.apache.maven.skins + maven-stylus-skin + 1.0 + + + + + + + + Maven Alfresco Lifecycle support - v. ${project.version} + ${site_site_url} + images/logo_noclaim.png + + + + + + + + + + + + + + + +