mirror of
https://github.com/Alfresco/alfresco-sdk.git
synced 2025-10-08 14:51:55 +00:00
-- worked around stupid maven site
-- fixed and updated docs git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@238 04253f4f-3451-0410-a141-5562f1e59037
This commit is contained in:
@@ -28,11 +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.
|
||||
</description>
|
||||
<url>${project.artifactId}</url>
|
||||
<parent>
|
||||
<groupId>com.sourcesense.alfresco</groupId>
|
||||
<artifactId>maven-alfresco-archetypes</artifactId>
|
||||
<version>1.9.0-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<build>
|
||||
<extensions>
|
||||
|
@@ -99,7 +99,7 @@
|
||||
<dependency>
|
||||
<groupId>org.alfresco</groupId>
|
||||
<artifactId>alfresco-repository</artifactId>
|
||||
<version>3.0Stable</version>
|
||||
<version>3.2r</version>
|
||||
<scope>provided</scope>
|
||||
<classifier>labs</classifier>
|
||||
</dependency>
|
||||
@@ -412,7 +412,7 @@
|
||||
<dependency>
|
||||
<groupId>org.alfresco</groupId>
|
||||
<artifactId>alfresco</artifactId>
|
||||
<version>3.0Stable</version>
|
||||
<version>3.0r</version>
|
||||
<type>war</type>
|
||||
<classifier>labs</classifier>
|
||||
</dependency>
|
||||
|
@@ -23,7 +23,7 @@ Quick Start (maven2)
|
||||
For a quick start you can a maven alfresco AMP project created by just running <<(maven 2.0.6+ required)>>:
|
||||
|
||||
--------------------------------------------
|
||||
mvn archetype:generate -DarchetypeCatalog=http://repository.sourcesense.com/maven2/archetype-catalog.xml
|
||||
mvn archetype:generate -DarchetypeCatalog=http://repository.sourcesense.com/nexus/content/repositories/alfresco.public.releases/archetype-catalog.xml
|
||||
--------------------------------------------
|
||||
|
||||
and then choose the option 'maven-alfresco-amp-archetype'
|
||||
|
@@ -0,0 +1 @@
|
||||
.maven {}
|
@@ -28,8 +28,8 @@
|
||||
</menu>
|
||||
|
||||
<menu name="See also">
|
||||
<item name="Maven Alfresco Extension Archetype" href="http://repository.sourcesense.com/maven2-sites/maven-alfresco-extension-archetype"/>
|
||||
<item name="Maven AMP Plugin" href="http://repository.sourcesense.com/maven2-sites/maven-amp-plugin"/>
|
||||
<item name="Maven Alfresco Extension Archetype" href="http://repository.sourcesense.com/nexus/content/repositories/alfresco.public.sites/maven-alfresco-lifecyle/maven-alfresco-archetypes/maven-alfresco-extension-archetype"/>
|
||||
<item name="Maven AMP Plugin" href="http://repository.sourcesense.com/nexus/content/repositories/alfresco.public.sites/maven-alfresco-lifecyle/plugins/maven-amp-plugin"/>
|
||||
<item name="Alfresco AMP files" href="http://wiki.alfresco.com/wiki/AMP_Files" />
|
||||
</menu>
|
||||
|
||||
|
@@ -1,31 +1,30 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
contributor license agreements. See the NOTICE file distributed with
|
||||
this work for additional information regarding copyright ownership.
|
||||
The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
(the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
-->
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
contributor license agreements. See the NOTICE file distributed with
|
||||
this work for additional information regarding copyright ownership.
|
||||
The ASF licenses this file to You under the Apache License, Version
|
||||
2.0 (the "License"); you may not use this file except in compliance
|
||||
with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0 Unless required by
|
||||
applicable law or agreed to in writing, software distributed under the
|
||||
License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
||||
CONDITIONS OF ANY KIND, either express or implied. See the License for
|
||||
the specific language governing permissions and limitations under the
|
||||
License.
|
||||
-->
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>maven-alfresco-extension-archetype</artifactId>
|
||||
<packaging>maven-archetype</packaging>
|
||||
<name>Maven alfresco Extension archetype</name>
|
||||
<url>${project.artifactId}</url>
|
||||
<parent>
|
||||
<groupId>com.sourcesense.alfresco</groupId>
|
||||
<artifactId>maven-alfresco-archetypes</artifactId>
|
||||
<version>1.9.0-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<description>
|
||||
This archetype developed aims to provide a standardized approach to development, release and deployment of Alfresco extensions (as opposed to
|
||||
@@ -44,9 +43,11 @@
|
||||
<artifactId>archetype-packaging</artifactId>
|
||||
<version>2.0-alpha-2</version>
|
||||
</extension>
|
||||
<!-- Unreleased version of webdav wagon plugin which fixes a boring stacktrace logging from this provider.
|
||||
FIXME: Improve the fix and submit the patch
|
||||
<!--
|
||||
Unreleased version of webdav wagon plugin which fixes a boring
|
||||
stacktrace logging from this provider. FIXME: Improve the fix and
|
||||
submit the patch
|
||||
-->
|
||||
</extensions>
|
||||
</extensions>
|
||||
</build>
|
||||
</project>
|
||||
|
@@ -62,7 +62,7 @@
|
||||
<alfresco.db.name>alf_jetty</alfresco.db.name>
|
||||
<alfresco.db.username>alfresco</alfresco.db.username>
|
||||
<alfresco.db.password>alfresco</alfresco.db.password>
|
||||
<alfresco.version>3.0Stable</alfresco.version>
|
||||
<alfresco.version>3.2r</alfresco.version>
|
||||
<!-- Used for 2.1.0 -->
|
||||
<desktop.action.package>org.alfresco.filesys.repo.desk</desktop.action.package>
|
||||
<!-- Used for 2.9.0+ -->
|
||||
|
@@ -23,7 +23,7 @@ Quick Start (maven2)
|
||||
For a quick start you can a maven alfresco extension project created by just running <<(maven 2.0.6+ required)>>:
|
||||
|
||||
--------------------------------------------
|
||||
mvn archetype:generate -DarchetypeCatalog=http://repository.sourcesense.com/maven2/archetype-catalog.xml
|
||||
mvn archetype:generate -DarchetypeCatalog=http://repository.sourcesense.com/nexus/content/repositories/alfresco.public.releases/archetype-catalog.xml
|
||||
--------------------------------------------
|
||||
|
||||
and then choose the option 'maven-alfresco-extension-archetype'
|
||||
|
@@ -0,0 +1 @@
|
||||
.maven {}
|
@@ -1,4 +1,5 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.sourcesense.alfresco</groupId>
|
||||
<artifactId>maven-alfresco-archetypes</artifactId>
|
||||
@@ -8,22 +9,33 @@
|
||||
<description>
|
||||
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
|
||||
</description>
|
||||
<url>${project.artifactId}</url>
|
||||
<parent>
|
||||
<groupId>org.alfresco</groupId>
|
||||
<artifactId>maven-alfresco-lifecycle</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<organization>
|
||||
<name>Sourcesense</name>
|
||||
<url>http://www.sourcesense.com</url>
|
||||
</organization>
|
||||
<modules>
|
||||
<module>maven-alfresco-amp-archetype</module>
|
||||
<module>maven-alfresco-extension-archetype</module>
|
||||
</modules>
|
||||
<build>
|
||||
<extensions>
|
||||
<extension>
|
||||
<groupId>org.apache.maven.wagon</groupId>
|
||||
<artifactId>wagon-http-shared</artifactId>
|
||||
<version>1.0-beta-6-patched</version>
|
||||
</extension>
|
||||
</extensions>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-archetype-plugin</artifactId>
|
||||
<extensions>true</extensions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</build>
|
||||
</project>
|
||||
|
24
maven-alfresco-archetypes/src/site/fml/faq.fml
Normal file
24
maven-alfresco-archetypes/src/site/fml/faq.fml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0"?>
|
||||
<faqs id="Maven Alfresco Lifecycle FAQ">
|
||||
<part id="Project modules">
|
||||
<title>Backward compatibility</title>
|
||||
<faq id="project">
|
||||
<question>I'm lost in versions and repositories. Which one I should use?</question>
|
||||
<answer>
|
||||
<ul>
|
||||
<li>As the introduction of the parent project maven-alfresco-lifecycle you can refer to it as the latest working version of the full support</li>
|
||||
<li>You might (optionally) want to tweak specific modules versions (archetypes, plugins) in order to match the latest features</li>
|
||||
</ul>
|
||||
</answer>
|
||||
</faq>
|
||||
<faq id="howmany">
|
||||
<question>I see many project aroud Maven and Alfresco (m2alfresco, maven4alfresco, this project). Is there a reference one?</question>
|
||||
<answer>
|
||||
<p>
|
||||
The maven-alfresco-lifecycle project gathers all efforts made in previous projects and gather them
|
||||
under a common application lifecycle management suite.
|
||||
</p>
|
||||
</answer>
|
||||
</faq>
|
||||
</part>
|
||||
</faqs>
|
@@ -0,0 +1 @@
|
||||
.maven {}
|
@@ -0,0 +1 @@
|
||||
.maven {}
|
@@ -18,7 +18,6 @@
|
||||
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
|
||||
</description>
|
||||
<url>${project.artifactId}</url>
|
||||
<properties>
|
||||
<site_pom_description>${pom.description}</site_pom_description>
|
||||
<site_pom_url>${pom.url}</site_pom_url>
|
||||
|
@@ -36,20 +36,19 @@ References
|
||||
-------------------------------------------
|
||||
|
||||
|
||||
using repository (either in POM or settings.xml) :
|
||||
using this pluginRepository (either in POM or settings.xml) :
|
||||
|
||||
|
||||
------------------------------------------
|
||||
|
||||
<repository>
|
||||
<pluginRepository>
|
||||
<id>ss-public</id>
|
||||
<url>http://repository.sourcesense.com/maven2</url>
|
||||
</repository>
|
||||
<url>http://repository.sourcesense.com/nexus/content/groups/public</url>
|
||||
</pluginRepository>
|
||||
|
||||
-------------------------------------------
|
||||
|
||||
|
||||
Quick usage
|
||||
|
||||
Create a project using the maven-alfresco-amp-archetype (see {{ http://repository.sourcesense.com/maven2-sites/maven-alfresco-amp-archetype }} ).
|
||||
|
||||
Create a project using the maven-alfresco-amp-archetype (see {{ http://repository.sourcesense.com/nexus/content/repositories/alfresco.public.sites/maven-alfresco-lifecycle/maven-alfresco-archetypes/maven-alfresco-amp-archetype/index.html }} ).
|
@@ -6,7 +6,6 @@
|
||||
<version>0.0.5-SNAPSHOT</version>
|
||||
<name>Custom version manipulator Maven Plugin</name>
|
||||
<description>It's non invasive and puts modified versions in configurable pom properties</description>
|
||||
<url>${project.artifactId}</url>
|
||||
<parent>
|
||||
<groupId>org.alfresco</groupId>
|
||||
<artifactId>maven-alfresco-lifecycle</artifactId>
|
||||
|
45
pom.xml
45
pom.xml
@@ -6,11 +6,7 @@
|
||||
<packaging>pom</packaging>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
<name>Maven Alfresco Lifecycle support base project</name>
|
||||
<parent>
|
||||
<groupId>com.sourcesense.maven</groupId>
|
||||
<artifactId>maven-calm</artifactId>
|
||||
<version>1.0-beta-21</version>
|
||||
</parent>
|
||||
<url>http://repository.sourcesense.com/nexus/content/repositories/alfresco.public.sites/maven-alfresco-lifecycle</url>
|
||||
<description>
|
||||
This project is meant to gather all commons configurations, plugins and archetypes
|
||||
for the full Maven Alfresco lifecycle support
|
||||
@@ -20,8 +16,8 @@
|
||||
<url>http://code.google.com/p/maven-alfresco-archetypes/issues/list</url>
|
||||
</issueManagement>
|
||||
<organization>
|
||||
<name>Sourcesense</name>
|
||||
<url>http://www.sourcesense.com</url>
|
||||
<name>Alfresco</name>
|
||||
<url>http://www.alfresco.com</url>
|
||||
</organization>
|
||||
<modules>
|
||||
<module>maven-alfresco-archetypes</module>
|
||||
@@ -32,18 +28,17 @@
|
||||
<svn.base.url>https://maven-alfresco-archetypes.googlecode.com/svn</svn.base.url>
|
||||
<svn.url>${svn.base.url}/trunk</svn.url>
|
||||
<svn.tags.url>${svn.base.url}/tags</svn.tags.url>
|
||||
<site.url>http://repository.sourcesense.com/nexus/content/repositories/alfresco.public.sites/${pom.artifactId}</site.url>
|
||||
<!--
|
||||
These redundancies are due to filtering issues of Maven. See here
|
||||
http://maven.apache.org/plugins/maven-site-plugin/usage.html
|
||||
-->
|
||||
<site_pom_description>${pom.description}</site_pom_description>
|
||||
<site_pom_url>${pom.organization.url}</site_pom_url>
|
||||
<site_pom_groupId>${pom.groupId}</site_pom_groupId>
|
||||
<site_pom_artifactId>${pom.artifactId}</site_pom_artifactId>
|
||||
<site_pom_version>${pom.version}</site_pom_version>
|
||||
<site_pom_url>${project.url}</site_pom_url>
|
||||
<site_pom_groupId>${project.groupId}</site_pom_groupId>
|
||||
<site_pom_artifactId>${project.artifactId}</site_pom_artifactId>
|
||||
<site_pom_version>${project.version}</site_pom_version>
|
||||
<site_tags_url>${svn.tags.url}</site_tags_url>
|
||||
<site_site_url>${site.url}</site_site_url>
|
||||
<site_site_url>${project.url}</site_site_url>
|
||||
</properties>
|
||||
<scm>
|
||||
<connection>scm:svn:${svn.url}</connection>
|
||||
@@ -113,6 +108,17 @@
|
||||
</mailingLists>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<source>1.5</source>
|
||||
<target>1.5</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-site-plugin</artifactId>
|
||||
<version>2.0.1</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-changes-plugin</artifactId>
|
||||
@@ -162,6 +168,13 @@
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
<extensions>
|
||||
<extension>
|
||||
<groupId>org.apache.maven.wagon</groupId>
|
||||
<artifactId>wagon-webdav-jackrabbit</artifactId>
|
||||
<version>1.0-beta-6</version>
|
||||
</extension>
|
||||
</extensions>
|
||||
</build>
|
||||
<reporting>
|
||||
<plugins>
|
||||
@@ -199,10 +212,6 @@
|
||||
</reportSet>
|
||||
</reportSets>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>changelog-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</reporting>
|
||||
<distributionManagement>
|
||||
@@ -216,7 +225,7 @@
|
||||
</snapshotRepository>
|
||||
<site>
|
||||
<id>ss-public-sites</id>
|
||||
<url>dav:http://repository.sourcesense.com/nexus/content/repositories/alfresco.public.sites/${project.artifactId}</url>
|
||||
<url>dav:http://repository.sourcesense.com/nexus/content/repositories/alfresco.public.sites/maven-alfresco-lifecycle</url>
|
||||
</site>
|
||||
</distributionManagement>
|
||||
</project>
|
||||
|
1
src/site/resources/css/site.css
Normal file
1
src/site/resources/css/site.css
Normal file
@@ -0,0 +1 @@
|
||||
.pippo {}
|
@@ -1,31 +1,46 @@
|
||||
<project>
|
||||
<skin>
|
||||
<groupId>org.apache.maven.skins</groupId>
|
||||
<artifactId>maven-stylus-skin</artifactId>
|
||||
<version>1.0</version>
|
||||
<groupId>org.apache.maven.skins</groupId>
|
||||
<artifactId>maven-stylus-skin</artifactId>
|
||||
<version>1.0</version>
|
||||
</skin>
|
||||
<poweredBy>
|
||||
<logo name="Maven" href="http://maven.apache.org" img="http://maven.apache.org/images/logos/maven-feather.png"/>
|
||||
<logo name="Alfresco - Open source ECM" img="http://alfresco.com/assets/images/icons/powered_by_alfresco.gif" href="http://www.sourcesense.com" />
|
||||
<logo name="Maven" href="http://maven.apache.org" img="http://maven.apache.org/images/logos/maven-feather.png" />
|
||||
<logo name="Alfresco - Open source ECM" img="http://alfresco.com/assets/images/icons/powered_by_alfresco.gif"
|
||||
href="http://www.alfresco.com" />
|
||||
</poweredBy>
|
||||
<publishDate position="navigation-bottom" format="MM-dd-yy"/>
|
||||
<bannerLeft>
|
||||
<name>Maven Alfresco Lifecycle support - v. ${project.version}</name>
|
||||
<href>${site_site_url}</href>
|
||||
<src>images/logo_noclaim.png</src>
|
||||
</bannerLeft>
|
||||
<body>
|
||||
<links>
|
||||
<item name="Maven" href="http://maven.apache.org/"/>
|
||||
<item name="Apache" href="http://www.apache.org/"/>
|
||||
<item name="Alfresco" href="http://www.afresco.com/"/>
|
||||
</links>
|
||||
|
||||
<publishDate position="navigation-bottom" format="MM-dd-yy" />
|
||||
<bannerLeft>
|
||||
<name>Maven Alfresco Lifecycle Support - v. ${project.version}</name>
|
||||
<href>${site_site_url}</href>
|
||||
<src>images/logo_noclaim.png</src>
|
||||
</bannerLeft>
|
||||
<body>
|
||||
<links>
|
||||
<item name="Maven" href="http://maven.apache.org/" />
|
||||
<item name="Apache" href="http://www.apache.org/" />
|
||||
<item name="Alfresco" href="http://www.alfresco.org/" />
|
||||
<item name="Project founder" href="http://www.mindthegab.com/" />
|
||||
</links>
|
||||
|
||||
<menu ref="modules">
|
||||
</menu>
|
||||
|
||||
<menu ref="reports" />
|
||||
|
||||
</body>
|
||||
<menu ref="modules" inherit="bottom"/>
|
||||
<menu ref="parent" inherit="bottom"/>
|
||||
|
||||
<menu name="Maven2 Lifecycle Alfresco Support Resources">
|
||||
<item name="Enterprise use case" href="http://www.slideshare.net/guest67a9ba/maven-application-lifecycle-management-for-alfresco" />
|
||||
<item name="Alfresco wiki Maven howto" href="http://wiki.alfresco.com/wiki/Managing_Alfresco_Lifecyle_with_Maven" />
|
||||
<item name="Third party how to" href="http://www.cybermagic.co.nz/wiki/display/CM/Building+Alfresco+apps+with+Maven" />
|
||||
<item name="FAQ" href="faq.html" />
|
||||
</menu>
|
||||
|
||||
|
||||
|
||||
<menu name="See also">
|
||||
<item name="Maven Alfresco AMP Archetype" href="http://repository.sourcesense.com/maven2-sites/maven-alfresco-amp-archetype" />
|
||||
<item name="Maven AMP Plugin" href="http://repository.sourcesense.com/maven2-sites/maven-amp-plugin" />
|
||||
<item name="Third party how to" href="http://www.cybermagic.co.nz/wiki/display/CM/Building+Alfresco+apps+with+Maven" />
|
||||
</menu>
|
||||
|
||||
<menu ref="reports" />
|
||||
</body>
|
||||
</project>
|
||||
|
Reference in New Issue
Block a user