-- added maven alfresco share archetype

-- improved documentation and prepared 1.9.1 release
-- updated changes.xml

git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@251 04253f4f-3451-0410-a141-5562f1e59037
This commit is contained in:
mindthegab
2009-12-03 20:24:52 +00:00
parent 4da863cd0a
commit d7fd79f5ea
43 changed files with 1438 additions and 38 deletions

View File

@@ -1,21 +1,39 @@
<document>
<properties>
<title>Maven Alfresco AMP archetype</title>
<author email="g.columbro@sourcesense.com">Gabriele Columbro</author>
</properties>
<body>
<release version="1.9.0" date="2009-11-07" description="Public release alfresco 3.2r based">
<action dev="g.columbro" type="add">
Updated to Alfresco 3.2r artifacts
<properties>
<title>Maven Alfresco AMP archetype</title>
<author email="gabriele.columbro@alfresco.com">Gabriele Columbro</author>
</properties>
<body>
<release version="1.9.1" date="2009-12-07"
description="Moved to maven.alfresco.com">
<action dev="columbro" type="add">
Moved to http://maven.alfresco.com
</action>
<action dev="g.columbro" type="add">
Updated to new Sourcesense repository
<action dev="columbro" type="fix">
Fixed version of maven-buildnumber-plugin (for compatibility issues with maven 2.2.1)
</action>
</release>
<release version="1.0.0" date="2008-07-06" description="Public release">
<action dev="g.columbro" type="add">
Added full AMP lifecycle management
<action dev="columbro" type="enhancement">
Documented versioning scheme and maven-nosnapshot-plugin
</action>
</release>
</body>
</release>
<release version="1.0.0" date="2008-07-06" description="Public release">
<action dev="g.columbro" type="add">
Added full AMP lifecycle management
</action>
</release>
<release version="1.9.0" date="2009-11-07"
description="Public release alfresco 3.2r based">
<action dev="g.columbro" type="add">
Updated to Alfresco 3.2r artifacts
</action>
<action dev="g.columbro" type="add">
Updated to new Sourcesense repository
</action>
</release>
<release version="1.0.0" date="2008-07-06" description="Public release">
<action dev="g.columbro" type="add">
Added full AMP lifecycle management
</action>
</release>
</body>
</document>

View File

@@ -8,8 +8,7 @@
Welcome to the Maven Alfresco AMP Archetype home
You've reached the ({{ ${site_pom_url} }}) Maven Alfresco AMP archetype home page (version: ${site_pom_version})
You've reached the Maven Alfresco AMP archetype version ${site_pom_version} ) home page.
Description
@@ -42,4 +41,4 @@ mvn install
--------------------------------------------
You can then use the AMP by depending on it using the Maven Alfresco Extension Archetype, without any external tool (e.g. MMT).
See {{http://maven.alfresco.com/nexus/content/repositories/alfresco-docs/maven-alfresco-lifecycle/maven-alfresco-archetypes/maven-alfresco-extension-archetype/profiles.html}}
See {{{http://maven.alfresco.com/nexus/content/repositories/alfresco-docs/maven-alfresco-lifecycle/maven-alfresco-archetypes/maven-alfresco-extension-archetype/profiles.html} available profiles for Extension archetypes}}

View File

@@ -0,0 +1,33 @@
-----
AMP used versioning scheme
-----
Progressive Versioning Scheme
This scheme was designed to:
* reach properties single sourcing from the POM (so to automatically fill module.properties based on POM properties)
* to be able to use Maven SNAPSHOT capabilities during development
* maintain a senseful progressive order in the versions and builds
and had to overcome the following shortcomings:
* Alfresco Module Packages (AMPs) versions cannot contain letters (therefore no -SNAPSHOT is allowed)
For this the AMP version (in the module.properties) is filtered to be equals to:
<<<module.version=${noSnapshotVersion}.${buildNumber}>>>
where:
* noShapshotVersion --> is anything before '-SNAPSHOT' in the current POM version, generated by the maven-no-snapshot-plugin
* buildNumber --> is the buildNumber generated by the maven-buildnumber-plugin from the SCM information for your project, or defaults to 1 if no SCM was configured
Custom Versioning Schemes
You can always maintain your <<<module.properties>>> version manually and remove the plugins invocations from the generated POMs.

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@@ -9,11 +9,6 @@
<logo name="Alfresco - Open source ECM" img="http://alfresco.com/assets/images/icons/powered_by_alfresco.gif" href="http://www.sourcesense.com" />
</poweredBy>
<publishDate position="navigation-bottom" format="MM-dd-yy" />
<bannerLeft>
<name>Maven alfresco Extension archetype - v. ${project.version}</name>
<href>${site_site_url}</href>
<src>images/Alfresco-logo-transparent.gif</src>
</bannerLeft>
<body>
<links>
<item name="Maven" href="http://maven.apache.org/"/>
@@ -24,6 +19,7 @@
<item name="Introduction" href="/index.html"/>
<item name="README" href="/readme.html"/>
<item name="Generated Project Layout " href="layout.html"/>
<item name="Versioning scheme" href="/versions.html"/>
<item name="FAQ" href="faq.html"/>
</menu>
@@ -33,7 +29,7 @@
<item name="Alfresco AMP files" href="http://wiki.alfresco.com/wiki/AMP_Files" />
</menu>
<menu ref="reports" />
<menu ref="reports" />
</body>
</project>

View File

@@ -1,30 +1,33 @@
<document>
<properties>
<title>Maven Alfresco Extension archetype</title>
<author email="g.columbro@sourcesense.com">Gabriele Columbro</author>
<author email="gabriele.columbro@alfresco.com">Gabriele Columbro</author>
</properties>
<body>
<release version="3.0.0-beta-1" date="2009-12-03" description="Consolidated release to maven.alfresco.com">
<action dev="g.columbro" type="add">
<release version="1.9.1" date="2009-12-03" description="Consolidated release to maven.alfresco.com">
<action dev="columbro" type="add">
Added -Prun profile to encapsulate jetty embedded running capabilities
</action>
<action dev="columbro" type="add">
Added -Pinitialize profile to clean alf_data and drop/create DB within the build
</action>
<action dev="g.columbro" type="add">
<action dev="columbro" type="add">
Updated all docs to Maven Alfresco repository
</action>
<action dev="g.columbro" type="enhancement">
<action dev="columbro" type="enhancement">
Incapsulated jetty run in the -Prun profile, which runs by default jetty during the integration-test phase
</action>
</release>
<release version="1.9.0" date="2009-11-07" description="Public release alfresco 3.2r based">
<action dev="g.columbro" type="add">
<action dev="columbro" type="add">
Updated to Alfresco 3.2r artifacts
</action>
<action dev="g.columbro" type="add">
<action dev="columbro" type="add">
Updated to new Sourcesense repository
</action>
</release>
<release version="1.1.0" date="2008-07-11" description="Public release">
<action dev="g.columbro" type="add">
<action dev="columbro" type="add">
Added full AMP lifecycle management.
</action>
</release>

View File

@@ -10,11 +10,12 @@
href="http://www.alfresco.com" />
</poweredBy>
<publishDate position="navigation-bottom" format="MM-dd-yy" />
<bannerLeft>
<name>Maven alfresco Extension archetype - v. ${project.version}</name>
<href>${site_site_url}</href>
<src>images/Alfresco-logo-transparent.gif</src>
</bannerLeft>
<bannerLeft>
<name>Maven alfresco Share archetype - v. ${project.version}</name>
<href>${site_site_url}</href>
<src>images/Alfresco-logo-transparent.gif</src>
</bannerLeft>
<body>

View File

@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>org.alfresco.maven</groupId>
<artifactId>alfresco-share-extension-archetype</artifactId>
<packaging>maven-archetype</packaging>
<name>alfresco-share-extension-archetype</name>
<parent>
<groupId>com.sourcesense.alfresco</groupId>
<artifactId>maven-alfresco-archetypes</artifactId>
<version>1.9.1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<build>
<extensions>
<extension>
<groupId>org.apache.maven.archetype</groupId>
<artifactId>archetype-packaging</artifactId>
<version>2.0-alpha-4</version>
</extension>
</extensions>
<plugins>
<plugin>
<artifactId>maven-archetype-plugin</artifactId>
<version>2.0-alpha-4</version>
<extensions>true</extensions>
</plugin>
</plugins>
</build>
</project>

View File

@@ -0,0 +1,28 @@
<document>
<properties>
<title>Maven Alfresco Share Archetype</title>
<author email="gabriele.columbro@alfresco.com">Gabriele Columbro</author>
</properties>
<body>
<release version="1.9.1" date="2009-12-03" description="First public release working against Share 3.2r">
<action dev="columbro" type="add">
Addded 3.2r samples
</action>
<action dev="columbro" type="add">
Added base SHARE overlay structure
</action>
<action dev="columbro" type="add">
Tested against a non localhost Alfresco server
</action>
<action dev="columbro" type="add">
Added Share port configurability
</action>
<action dev="columbro" type="enhancement">
Incapsulated jetty run in the -Prun profile, which runs by default jetty during the integration-test phase
</action>
<action dev="columbro" type="enhancement">
Added basic docs
</action>
</release>
</body>
</document>

View File

@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?><archetype-descriptor name="alfresco-share-extension">
<fileSets>
<fileSet filtered="false" encoding="UTF-8">
<directory>src/main/properties</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.txt</include>
</includes>
</fileSet>
<fileSet filtered="false" encoding="UTF-8">
<directory>src/main/resources</directory>
<includes>
<include>**/*.xml</include>
<include>**/*.properties</include>
</includes>
</fileSet>
<fileSet encoding="UTF-8" filtered="false">
<directory>src/main/resources</directory>
<includes>
<include>**/*.keepme</include>
<include>**/*.sample</include>
</includes>
</fileSet>
<fileSet filtered="false" encoding="UTF-8">
<directory>src/site</directory>
<includes>
<include>**/*.vm</include>
<include>**/*.xml</include>
</includes>
</fileSet>
<fileSet encoding="UTF-8" filtered="false">
<directory>src/site</directory>
<includes>
<include>**/*.apt</include>
<include>**/*.fml</include>
</includes>
</fileSet>
<fileSet filtered="false" encoding="UTF-8">
<directory>src/books</directory>
<includes>
<include>**/*.xml</include>
</includes>
</fileSet>
</fileSets>
</archetype-descriptor>

View File

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?><archetype>
<id>alfresco-share-extension</id>
<resources>
<resource>src/main/properties/ci/application.properties</resource>
<resource>src/main/properties/local/application.properties</resource>
<resource>src/main/properties/local/README-properties.txt</resource>
<resource>src/main/resources/alfresco/site-data/chrome/.keepme</resource>
<resource>src/main/resources/alfresco/site-data/content-associations/.keepme</resource>
<resource>src/main/resources/alfresco/site-data/page-associations/.keepme</resource>
<resource>src/main/resources/alfresco/web-extension/2-column-edit-form.ftl.sample</resource>
<resource>src/main/resources/alfresco/web-extension/custom-set-dublincore.ftl.sample</resource>
<resource>src/main/resources/alfresco/web-extension/custom-slingshot-application-context.xml</resource>
<resource>src/main/resources/alfresco/web-extension/ttl-forms-32-share.zip.sample</resource>
<resource>src/main/resources/alfresco/web-extension/ttl-forms-32.amp.sample</resource>
<resource>src/main/resources/alfresco/web-extension/web-framework-config-custom.xml.sample</resource>
<resource>src/main/resources/alfresco/web-extension/webscript-framework-config-custom.xml</resource>
<resource>src/main/resources/log4j.properties</resource>
<resource>tools/cas/web.xml</resource>
</resources>
<siteResources>
<resource>src/site/apt/book-index.apt</resource>
<resource>src/site/apt/index.apt.vm</resource>
<resource>src/site/fml/faq.fml</resource>
<resource>src/site/site.xml</resource>
</siteResources>
</archetype>

View File

@@ -0,0 +1,11 @@
#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/properties"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>

View File

@@ -0,0 +1,26 @@
#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>${artifactId}</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.maven.ide.eclipse.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.maven.ide.eclipse.maven2Nature</nature>
</natures>
</projectDescription>

View File

@@ -0,0 +1,5 @@
#Thu Dec 03 19:33:05 CET 2009
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.2
org.eclipse.jdt.core.compiler.compliance=1.4
org.eclipse.jdt.core.compiler.source=1.3

View File

@@ -0,0 +1,8 @@
#Fri Nov 20 17:39:26 CET 2009
activeProfiles=
eclipse.preferences.version=1
fullBuildGoals=process-test-resources
includeModules=false
resolveWorkspaceProjects=true
resourceFilterGoals=process-resources resources\:testResources
version=1

View File

@@ -0,0 +1,122 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>${groupId}</groupId>
<artifactId>${artifactId}</artifactId>
<version>${version}</version>
<name>Alfresco Share client</name>
<packaging>war</packaging>
<description>SHARE customization meant to be the main Alfresco UI, which enables collaboration and easy ReST based remotable customization.</description>
<repositories>
<repository>
<id>alfresco-public</id>
<url>http://maven.lfresco.com/nexus/content/groups/public/</url>
</repository>
</repositories>
<!-- Configuration point for the build time properties -->
<properties>
<env>local</env>
<alfresco.version>3.2r</alfresco.version>
<share.log.level>info</share.log.level>
<share.servlet.port>8081</share.servlet.port>
</properties>
<!-- Alfresco dependencies -->
<dependencies>
<!--
Alfresco Dependencies. Use this dependency to switch SHARE version
-->
<dependency>
<groupId>org.alfresco</groupId>
<artifactId>share</artifactId>
<type>war</type>
<version>${alfresco.version}</version>
<classifier>community</classifier>
</dependency>
</dependencies>
<build>
<!-- Runtime properties file which is used to configure your Share instance. It's multi-environment aware (-Denv=yourEnv) -->
<filters>
<filter>src/main/properties/${env}/application.properties</filter>
</filters>
<!--
Default profile to build as an Alfresco extension - resources are
copied into classpath
-->
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
<!--
| Include application properties file in classpath: this allows
Spring contexts to have customization properties available at |
classpath:alfresco/extension/application.properties
-->
<resource>
<directory>src/main/properties</directory>
<includes>
<include>application.properties</include>
</includes>
<!--
This gets loaded to be the filter for spring runtime placeholding,
so no need for build time filtering
-->
<targetPath>alfresco/web-extension</targetPath>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<archiveClasses>false</archiveClasses>
<filters>
<filter>src/main/properties/${env}/application.properties</filter>
</filters>
<webResources></webResources>
</configuration>
</plugin>
</plugins>
</build>
<!-- Custom behaviors -->
<profiles>
<!-- Invoke this with -Prun to run embedded jetty during your build -->
<profile>
<id>run</id>
<build>
<plugins>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<configuration>
<connectors>
<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
<port>${share.servlet.port}</port>
</connector>
</connectors>
</configuration>
<executions>
<execution>
<id>run-jetty</id>
<phase>pre-integration-test</phase>
<goals>
<goal>run-exploded</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

View File

@@ -0,0 +1,36 @@
#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
<?xml version="1.0"?>
<!--
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.
-->
<book>
<id>manual</id>
<title>Alfresco Extension Manual</title>
<chapters>
<chapter>
<id>introduction</id>
<title>Introduction</title>
<sections>
<section>
<id>book-index</id>
</section>
</sections>
</chapter>
</chapters>
</book>

View File

@@ -0,0 +1,8 @@
# SHARE continuous environment dependent properties ( build)
share.server.scheme=http
share.server.name=localhost
share.server.port=${share.servlet.port}
alfresco.server.scheme=http
alfresco.server.name=192.168.48.1
alfresco.server.port=8080
alfresco.webapp.name=alfresco

View File

@@ -0,0 +1,46 @@
#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
${symbol_pound} Licensed to the Apache Software Foundation (ASF) under one or more
${symbol_pound} contributor license agreements. See the NOTICE file distributed with
${symbol_pound} this work for additional information regarding copyright ownership.
${symbol_pound} The ASF licenses this file to You under the Apache License, Version 2.0
${symbol_pound} (the "License"); you may not use this file except in compliance with
${symbol_pound} the License. You may obtain a copy of the License at
${symbol_pound}
${symbol_pound} http://www.apache.org/licenses/LICENSE-2.0
${symbol_pound}
${symbol_pound} Unless required by applicable law or agreed to in writing, software
${symbol_pound} distributed under the License is distributed on an "AS IS" BASIS,
${symbol_pound} WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
${symbol_pound} See the License for the specific language governing permissions and
${symbol_pound} limitations under the License.
Ant/m2 runtime properties management
------------------------------------
Both build systems will comply to the following convention for properties:
- if -Denv=<yourEnv> property is specified at build time properties will be
looked up in folder
src/main/properties/<yourEnv>/application.properties
and copied in the classpath under
alfresco/extension/application.properties
- if no "env" system property is specified env=local default value will be used
Buildtime properties management - Note for Ant Users:
-----------------------------------------------------
Here you can also configure buildtime properties which will be loaded in ant
build context with the same aforementioned convention.
This is done for tomcat ATM.
Buildtime properties management - Note for Maven Users:
-----------------------------------------------------
You should configure your buildtime properties as suggested by the maven
cascading build properties system, i.e. externalizing them from the project
by the means of settings.xml file.

View File

@@ -0,0 +1,11 @@
#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
${symbol_pound} SHARE client environment dependent properties (local build)
share.server.scheme=http
share.server.name=localhost
share.server.port=${symbol_dollar}{share.servlet.port}
alfresco.server.scheme=http
alfresco.server.name=localhost
alfresco.server.port=8080
alfresco.webapp.name=alfresco

View File

@@ -0,0 +1,77 @@
<#import "/org/alfresco/components/form/form.lib.ftl" as formLib />
<#if error?exists>
<div class="error">${error}</div>
<#elseif form?exists>
<#assign formId=args.htmlid + "-form">
<#assign formUI><#if args.formUI??>${args.formUI}<#else>true</#if></#assign>
<#if formUI == "true">
<@formLib.renderFormsRuntime formId=formId />
</#if>
<div id="${formId}-container" class="form-container">
<#if form.showCaption?exists && form.showCaption>
<div id="${formId}-caption" class="caption"><span class="mandatory-indicator">*</span>${msg("form.required.fields")}</div>
</#if>
<#if form.mode != "view">
<form id="${formId}" method="${form.method}" accept-charset="utf-8" enctype="${form.enctype}" action="${form.submissionUrl}">
</#if>
<div id="${formId}-fields" class="form-fields">
<#list form.structure as item>
<#if item.kind == "set">
<@renderSetWithColumns set=item />
<#else>
<@formLib.renderField field=form.fields[item.id] />
</#if>
</#list>
</div>
<#if form.mode != "view">
<@formLib.renderFormButtons formId=formId />
</form>
</#if>
</div>
</#if>
<#macro renderSetWithColumns set>
<#if set.appearance?exists>
<#if set.appearance == "fieldset">
<fieldset><legend>${set.label}</legend>
<#elseif set.appearance == "panel">
<div class="form-panel">
<div class="form-panel-heading">${set.label}</div>
<div class="form-panel-body">
</#if>
</#if>
<#list set.children as item>
<#if item.kind == "set">
<@renderSetWithColumns set=item />
<#else>
<#if (item_index % 2) == 0>
<div class="yui-g"><div class="yui-u first">
<#else>
<div class="yui-u">
</#if>
<@formLib.renderField field=form.fields[item.id] />
</div>
<#if ((item_index % 2) != 0) || !item_has_next></div></#if>
</#if>
</#list>
<#if set.appearance?exists>
<#if set.appearance == "fieldset">
</fieldset>
<#elseif set.appearance == "panel">
</div>
</div>
</#if>
</#if>
</#macro>

View File

@@ -0,0 +1,47 @@
<#if form.fields["prop_cm_publisher"]??>
<#if form.mode == "view">
<@formLib.renderField field=form.fields["prop_cm_publisher"] />
<@formLib.renderField field=form.fields["prop_cm_contributor"] />
<@formLib.renderField field=form.fields["prop_cm_type"] />
<@formLib.renderField field=form.fields["prop_cm_identifier"] />
<@formLib.renderField field=form.fields["prop_cm_dcsource"] />
<@formLib.renderField field=form.fields["prop_cm_coverage"] />
<@formLib.renderField field=form.fields["prop_cm_rights"] />
<@formLib.renderField field=form.fields["prop_cm_subject"] />
<#else>
<div class="yui-g">
<div class="yui-u first">
<@formLib.renderField field=form.fields["prop_cm_publisher"] />
</div>
<div class="yui-u">
<@formLib.renderField field=form.fields["prop_cm_contributor"] />
</div>
</div>
<div class="yui-g">
<div class="yui-u first">
<@formLib.renderField field=form.fields["prop_cm_type"] />
</div>
<div class="yui-u">
<@formLib.renderField field=form.fields["prop_cm_identifier"] />
</div>
</div>
<div class="yui-g">
<div class="yui-u first">
<@formLib.renderField field=form.fields["prop_cm_dcsource"] />
</div>
<div class="yui-u">
<@formLib.renderField field=form.fields["prop_cm_coverage"] />
</div>
</div>
<div class="yui-g">
<div class="yui-u first">
<@formLib.renderField field=form.fields["prop_cm_rights"] />
</div>
<div class="yui-u">
<@formLib.renderField field=form.fields["prop_cm_subject"] />
</div>
</div>
<div style="clear: both;"></div>
</#if>
</#if>

View File

@@ -0,0 +1,52 @@
#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<!-- Custom application properties loading -->
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="ignoreResourceNotFound" value="true" />
<property name="locations">
<list>
<value>classpath:alfresco/web-extension/application.properties</value>
</list>
</property>
</bean>
<!-- uncomment this section (or override bean def in custom app context) for remote component deploy -->
<!-- Override WebScripts searchpath - to include remote store -->
<!--
<bean id="webframework.searchpath" class="org.alfresco.web.scripts.SearchPath">
<property name="searchPath">
<list>
<ref bean="webframework.remotestore.webscripts" />
<ref bean="webframework.store.webscripts.custom" />
<ref bean="webframework.store.webscripts" />
<ref bean="webscripts.store" />
</list>
</property>
</bean>
-->
<!-- uncomment this section (or override bean def in custom app context) for remote component deploy -->
<!-- Override Templates and Scripts searchpath - to include remote store -->
<!--
<bean id="webframework.templates.searchpath" class="org.alfresco.web.scripts.SearchPath">
<property name="searchPath">
<list>
<ref bean="webframework.remotestore.webscripts" />
<ref bean="webframework.store.webscripts.custom" />
<ref bean="webframework.store.system-templates" />
<ref bean="webframework.store.templates" />
<ref bean="webframework.store.webscripts" />
</list>
</property>
</bean>
-->
</beans>

View File

@@ -0,0 +1,46 @@
<alfresco-config>
<!-- Disabling caches for components and pages - to allow share web-app clustering (web farm) -->
<!-- A load balancer may then be enabled between multiple web-app instances and the client browser -->
<!-- NOTE: the "sticky sessions" feature of your load balancer must be enabled -->
<!--
<config evaluator="string-compare" condition="WebFramework">
<web-framework>
<model-type>
<id>component</id>
<version>1.0</version>
<name>Component</name>
<description>Component</description>
<namespace></namespace>
<class>org.alfresco.web.framework.model.Component</class>
<search-path-id>webframework.searchpath.component</search-path-id>
<default-store-id>webframework.remotestore.component</default-store-id>
<cache-enabled>false</cache-enabled>
</model-type>
<model-type>
<id>page</id>
<version>1.0</version>
<name>Page</name>
<description>Page</description>
<namespace></namespace>
<class>org.alfresco.web.framework.model.Page</class>
<search-path-id>webframework.searchpath.page</search-path-id>
<default-store-id>webframework.remotestore.page</default-store-id>
<cache-enabled>false</cache-enabled>
</model-type>
</web-framework>
</config>
-->
<!-- Specify another theme as the default theme -->
<!--
<config evaluator="string-compare" condition="WebFramework">
<web-framework>
<application-defaults>
<theme>default</theme>
</application-defaults>
</web-framework>
</config>
-->
</alfresco-config>

View File

@@ -0,0 +1,96 @@
#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
<alfresco-config>
<config evaluator="string-compare" condition="Server">
<server>
<!-- Enable and adjust the following settings to allow for external access URLs to the
WebScript Framework - to return an externally accessable address for absolute url generation.
-->
<scheme>${symbol_dollar}{share.server.scheme}</scheme>
<hostname>${symbol_dollar}{share.server.name}</hostname>
<port>${symbol_dollar}{share.server.port}</port>
</server>
</config>
<!-- Overriding endpoints to reference a remote Alfresco server -->
<config evaluator="string-compare" condition="Remote">
<remote>
<!-- Endpoints -->
<!-- Example of a 'declared' identity endpoint configuration
<endpoint>
<id>alfresco-system</id>
<name>Alfresco - System access</name>
<description>System account access to Alfresco</description>
<connector-id>alfresco</connector-id>
<endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
<identity>declared</identity>
<username>admin</username>
<password>admin</password>
<unsecure>true</unsecure>
</endpoint> -->
<endpoint>
<id>alfresco-noauth</id>
<name>Alfresco - unauthenticated access</name>
<description>Access to Alfresco Repository WebScripts that do not require authentication</description>
<connector-id>alfresco</connector-id>
<endpoint-url>${symbol_dollar}{alfresco.server.scheme}://${symbol_dollar}{alfresco.server.name}:${symbol_dollar}{alfresco.server.port}/${symbol_dollar}{alfresco.webapp.name}/s</endpoint-url>
<identity>none</identity>
</endpoint>
<endpoint>
<id>alfresco</id>
<name>Alfresco - user access</name>
<description>Access to Alfresco Repository WebScripts that require user authentication</description>
<connector-id>alfresco</connector-id>
<endpoint-url>${symbol_dollar}{alfresco.server.scheme}://${symbol_dollar}{alfresco.server.name}:${symbol_dollar}{alfresco.server.port}/${symbol_dollar}{alfresco.webapp.name}/s</endpoint-url>
<identity>user</identity>
</endpoint>
</remote>
</config>
<!-- Overriding endpoints to reference an Alfresco server with external SSO or NTLM enabled -->
<!-- NOTE: For NTLM, the NTLM Authentication Filter must also be enabled in share web.xml -->
<!-- NOTE: if utilising a load balancer between web-tier and repository cluster, the "sticky -->
<!-- sessions" feature of your load balancer must be used -->
<!-- Uses SSL client certificate + trusted CAs. Optionally used to authenticate share to an external SSO system such as CAS
<config evaluator="string-compare" condition="Remote">
<remote>
<keystore>
<path>alfresco/web-extension/alfresco-system.p12</path>
<type>pkcs12</type>
<password>alfresco-system</password>
</keystore>
<connector>
<id>alfrescoCookie</id>
<name>Alfresco Connector</name>
<description>Connects to an Alfresco instance using cookie-based authentication</description>
<class>org.alfresco.connector.AlfrescoConnector</class>
</connector>
<endpoint>
<id>alfresco</id>
<name>Alfresco - user access</name>
<description>Access to Alfresco Repository WebScripts that require user authentication</description>
<connector-id>alfrescoCookie</connector-id>
<endpoint-url>http://localhost/alfresco/wcs</endpoint-url>
<identity>user</identity>
<external-auth>true</external-auth>
</endpoint>
</remote>
</config>
-->
</alfresco-config>

View File

@@ -0,0 +1,195 @@
#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
${symbol_pound} Set root logger level to error
log4j.rootLogger=error, Console, File
${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound} Console appender definition ${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}
${symbol_pound} All outputs currently set to be a ConsoleAppender.
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
${symbol_pound} use log4j NDC to replace %x with tenant domain / username
log4j.appender.Console.layout.ConversionPattern=%d{ABSOLUTE} %x %-5p [%c{3}] %m%n
${symbol_pound}log4j.appender.Console.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n
${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound} File appender definition ${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}
log4j.appender.File=org.apache.log4j.DailyRollingFileAppender
log4j.appender.File.File=share.log
log4j.appender.File.Append=true
log4j.appender.File.DatePattern='.'yyyy-MM-dd
log4j.appender.File.layout=org.apache.log4j.PatternLayout
log4j.appender.File.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n
${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound} Hibernate specific appender definition ${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}
${symbol_pound}log4j.appender.file=org.apache.log4j.FileAppender
${symbol_pound}log4j.appender.file.File=hibernate.log
${symbol_pound}log4j.appender.file.layout=org.apache.log4j.PatternLayout
${symbol_pound}log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound} Log level overrides ${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}
${symbol_pound} Commented-in loggers will be exposed as JMX MBeans (refer to org.alfresco.repo.admin.Log4JHierarchyInit)
${symbol_pound} Hence, generally useful loggers should be listed with at least ERROR level to allow simple runtime
${symbol_pound} control of the level via a suitable JMX Console. Also, any other loggers can be added transiently via
${symbol_pound} Log4j addLoggerMBean as long as the logger exists and has been loaded.
${symbol_pound} Hibernate
log4j.logger.org.hibernate=error
log4j.logger.org.hibernate.util.JDBCExceptionReporter=fatal
log4j.logger.org.hibernate.event.def.AbstractFlushingEventListener=fatal
${symbol_pound}log4j.logger.org.hibernate.cache.EhCacheProvider=warn
log4j.logger.org.hibernate.type=warn
${symbol_pound}log4j.logger.org.hibernate.persister.collection=DEBUG
${symbol_pound} Spring
log4j.logger.org.springframework=warn
${symbol_pound} Turn off Spring remoting warnings that should really be info or debug.
log4j.logger.org.springframework.remoting.support=error
${symbol_pound} Axis/WSS4J
log4j.logger.org.apache.axis=info
log4j.logger.org.apache.ws=info
${symbol_pound} CXF
log4j.logger.org.apache.cxf=error
${symbol_pound} MyFaces
log4j.logger.org.apache.myfaces.util.DebugUtils=info
log4j.logger.org.apache.myfaces.el.VariableResolverImpl=error
log4j.logger.org.apache.myfaces.application.jsp.JspViewHandlerImpl=error
log4j.logger.org.apache.myfaces.taglib=error
${symbol_pound} OpenOfficeConnection
log4j.logger.net.sf.jooreports.openoffice.connection=fatal
${symbol_pound} log prepared statement cache activity ${symbol_pound}${symbol_pound}${symbol_pound}
log4j.logger.org.hibernate.ps.PreparedStatementCache=info
${symbol_pound} Alfresco
log4j.logger.org.alfresco=error
log4j.logger.org.alfresco.repo.admin=info
log4j.logger.org.alfresco.repo.model.filefolder=info
log4j.logger.org.alfresco.repo.tenant=info
log4j.logger.org.alfresco.repo.avm=info
log4j.logger.org.alfresco.config=info
log4j.logger.org.alfresco.sample=info
log4j.logger.org.alfresco.web=info
${symbol_pound}log4j.logger.org.alfresco.web.app.AlfrescoNavigationHandler=debug
${symbol_pound}log4j.logger.org.alfresco.web.ui.repo.component.UIActions=debug
${symbol_pound}log4j.logger.org.alfresco.web.ui.repo.tag.PageTag=debug
${symbol_pound}log4j.logger.org.alfresco.web.bean.clipboard=debug
log4j.logger.org.alfresco.repo.webservice=info
log4j.logger.org.alfresco.cmis.ws=info
log4j.logger.org.alfresco.service.descriptor.DescriptorService=info
${symbol_pound}log4j.logger.org.alfresco.web.page=debug
log4j.logger.org.alfresco.repo.importer.ImporterBootstrap=error
${symbol_pound}log4j.logger.org.alfresco.repo.importer.ImporterBootstrap=info
log4j.logger.org.alfresco.web.ui.common.Utils=error
${symbol_pound}log4j.logger.org.alfresco.web.ui.common.Utils=info
log4j.logger.org.alfresco.repo.admin.patch.PatchExecuter=info
log4j.logger.org.alfresco.repo.admin.patch.impl.DeploymentMigrationPatch=info
log4j.logger.org.alfresco.repo.version.VersionMigrator=info
log4j.logger.org.alfresco.repo.module.ModuleServiceImpl=info
log4j.logger.org.alfresco.repo.domain.schema.SchemaBootstrap=info
log4j.logger.org.alfresco.repo.admin.ConfigurationChecker=info
log4j.logger.org.alfresco.repo.node.index.IndexTransactionTracker=info
log4j.logger.org.alfresco.repo.node.index.FullIndexRecoveryComponent=info
log4j.logger.org.alfresco.repo.node.index.AVMFullIndexRecoveryComponent=info
log4j.logger.org.alfresco.util.OpenOfficeConnectionTester=info
log4j.logger.org.alfresco.repo.node.db.hibernate.HibernateNodeDaoServiceImpl=warn
log4j.logger.org.alfresco.repo.domain.hibernate.DirtySessionMethodInterceptor=warn
log4j.logger.org.alfresco.repo.transaction.RetryingTransactionHelper=warn
${symbol_pound}log4j.logger.org.alfresco.web.app.DebugPhaseListener=debug
${symbol_pound}log4j.logger.org.alfresco.repo.cache.EhCacheTracerJob=debug
log4j.logger.org.alfresco.repo.workflow=error
${symbol_pound}log4j.logger.org.alfresco.repo.workflow=info
${symbol_pound} CIFS server debugging
log4j.logger.org.alfresco.smb.protocol=error
${symbol_pound}log4j.logger.org.alfresco.smb.protocol.auth=debug
${symbol_pound}log4j.logger.org.alfresco.acegi=debug
${symbol_pound} FTP server debugging
log4j.logger.org.alfresco.ftp.protocol=error
${symbol_pound}log4j.logger.org.alfresco.ftp.server=debug
${symbol_pound} WebDAV debugging
${symbol_pound}log4j.logger.org.alfresco.webdav.protocol=debug
log4j.logger.org.alfresco.webdav.protocol=error
${symbol_pound} NTLM servlet filters
${symbol_pound}log4j.logger.org.alfresco.web.app.servlet.NTLMAuthenticationFilter=debug
${symbol_pound}log4j.logger.org.alfresco.repo.webdav.auth.NTLMAuthenticationFilter=debug
${symbol_pound} Integrity message threshold - if 'failOnViolation' is off, then WARNINGS are generated
log4j.logger.org.alfresco.repo.node.integrity=ERROR
${symbol_pound} Indexer debugging
log4j.logger.org.alfresco.repo.search.Indexer=error
${symbol_pound}log4j.logger.org.alfresco.repo.search.Indexer=debug
log4j.logger.org.alfresco.repo.search.impl.lucene.index=error
${symbol_pound}log4j.logger.org.alfresco.repo.search.impl.lucene.index=DEBUG
${symbol_pound} Audit debugging
${symbol_pound} log4j.logger.org.alfresco.repo.audit=DEBUG
${symbol_pound} log4j.logger.org.alfresco.repo.audit.model=DEBUG
${symbol_pound} Forms debugging
${symbol_pound} log4j.logger.org.alfresco.web.forms=debug
${symbol_pound} log4j.logger.org.chiba.xml.xforms=debug
log4j.logger.org.alfresco.web.forms.xforms.XFormsBean=error
log4j.logger.org.alfresco.web.forms.XSLTRenderingEngine=error
${symbol_pound} Property sheet and modelling debugging
${symbol_pound} change to error to hide the warnings about missing properties and associations
log4j.logger.alfresco.missingProperties=warn
log4j.logger.org.alfresco.web.ui.repo.component.property.UIChildAssociation=warn
log4j.logger.org.alfresco.web.ui.repo.component.property.UIAssociation=warn
${symbol_pound}log4j.logger.org.alfresco.web.ui.repo.component.property=debug
${symbol_pound} Dictionary/Model debugging
log4j.logger.org.alfresco.repo.dictionary.DictionaryDAO=error
${symbol_pound}log4j.logger.org.alfresco.repo.dictionary.DictionaryDAO=info
${symbol_pound} Virtualization Server Registry
log4j.logger.org.alfresco.mbeans.VirtServerRegistry=warn
${symbol_pound} Spring context runtime property setter
log4j.logger.org.alfresco.util.RuntimeSystemPropertiesSetter=info
${symbol_pound} Link Validation debugging
log4j.logger.org.alfresco.linkvalidation.LinkValidationServiceImpl=info
log4j.logger.org.alfresco.linkvalidation.LinkValidationStoreCallbackHandler=warn
${symbol_pound} Debugging options for clustering
log4j.logger.org.alfresco.repo.content.ReplicatingContentStore=error
log4j.logger.org.alfresco.repo.content.replication=error
${symbol_pound}log4j.logger.org.alfresco.repo.deploy.DeploymentServiceImpl=debug
${symbol_pound} Activity service
log4j.logger.org.alfresco.repo.activities=info
${symbol_pound} Sharepoint
${symbol_pound}log4j.logger.org.alfresco.module.vti=debug
${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound} Scripting ${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}
${symbol_pound} Web Framework
log4j.logger.org.alfresco.web.scripts=${symbol_dollar}{share.log.level}
log4j.logger.org.alfresco.web.scripts.AlfrescoScriptDebugger=off
${symbol_pound} Repository
log4j.logger.org.alfresco.repo.web.scripts=${symbol_dollar}{share.log.level}
log4j.logger.org.alfresco.repo.web.scripts.BaseWebScriptTest=info
log4j.logger.org.alfresco.repo.web.scripts.AlfrescoRhinoScriptDebugger=off
log4j.logger.org.alfresco.repo.jscript=error
log4j.logger.org.alfresco.repo.cmis.rest.CMISTest=info

View File

@@ -0,0 +1,76 @@
-----
Maven Alfresco Extension Manual
-----
Sourcesense
-----
Introduction
Welcome to the Maven Alfresco Extension Archetype manual
How to edit this manual
This page is generated from <<<$PROJECT_HOME/src/site/book-index.apt>>> file. \
Book sections and chapters can be edited in the <<<$PROJECT_HOME/src/site/manual.xml>>> file. \
While related POM configuration snippet follows>
+-------------------------------------------
<!-- Adds support for books PDF and RTF generation for single sourced documentation -->
<plugin>
<groupId>org.apache.maven.doxia</groupId>
<artifactId>doxia-maven-plugin</artifactId>
<version>1.0-alpha-10</version>
<executions>
<execution>
<phase>pre-site</phase>
<goals>
<goal>render-books</goal>
</goals>
</execution>
</executions>
<configuration>
<!--
| Target books dir: within the site so it can be linked and deployed
| TODO: Use ${pom.target.dir} or so similar property instead of
| hard wiring 'target'
-->
<generatedDocs>target/site/books</generatedDocs>
<books>
<book>
<directory>src/site</directory>
<descriptor>src/books/manual.xml</descriptor>
<formats>
<format>
<id>xdoc</id>
</format>
<format>
<id>pdf</id>
</format>
<format>
<id>rtf</id>
</format>
</formats>
</book>
</books>
</configuration>
</plugin>
+-------------------------------------------
Limitations
* Book sections are matched on id, so a file named section.* must be found
at any depth level withing the folder specified in the POM as book folder
* Books cannot use property filtering
* Books cannot use .vm files as filename cannot be specified, so this makes
only static (no filtering needed) APT/XDOC/FML pages usable for both site
and manual in a single sourcing fashion

View File

@@ -0,0 +1,45 @@
-----
Maven Alfresco SHARE archetype
-----
Sourcesense
-----
Welcome to the Maven Alfresco Extension Archetype manual
You've reached the Sourcesense Maven Alfresco Extension archetype home page (version: ${site_pom_version}) .
Description
${symbol_dollar}{site_pom_description}
Full documentation
You can also download the full application manual {{{books/pdf/manual/manual.pdf} PDF}} or {{{books/rtf/manual/manual.rtf} RTF}} format.
Quick Start (maven2)
For a quick start you can a run alfresco extension project by just running <<(maven 2.0.6+ required)>>:
--------------------------------------------
mvn jetty:run-exploded
--------------------------------------------
Quick Start (Ant)
For a quick start you can package alfresco by running <<(Default target : package)>> :
--------------------------------------------
ant
--------------------------------------------

View File

@@ -0,0 +1,121 @@
<?xml version="1.0"?>
<!--
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.
-->
<faqs id="Maven Alfresco Extension FAQ">
<part id="General">
<title>General</title>
<faq id="eclipse">
<question>How do I configure Eclipse?</question>
<answer>
<ul>
<li>Run ' mvn eclipse:eclipse '</li>
<li>"Refresh" on your Eclipse project</li>
</ul>
</answer>
</faq>
<faq id="dbaccess">
<question>Why I cannot access db "alf_[jetty,tomcat,jboss] "?</question>
<answer>
<p>
Remember to setup appropriate permissions for selected db / build profile. You have 2 methods to configure/remove your db:
<ol>
<li>
Properly edit
<i>tools/mysql/db_setup.sql</i>
and run from project home
<verbatim>mysql -u root &#60; tools/mysql/db_setup.sql</verbatim>
</li>
<li>
if you use POM property 'alfresco.db.name' you have sql files already filtered (after process-resources phase), and run
directly
<verbatim>mysql -u root -p &#60; target/classes/tools/[db_setup,db_remove].sql</verbatim>
</li>
</ol>
</p>
</answer>
</faq>
<faq id="jettymemory">
<question>Why do I get memory errors running jetty?</question>
<answer>
<p>
Run your build with :
<verbatim>MAVEN_OPTS="-Xms256m -Xmx512m -XX:PermSize=128m" mvn jetty:[run-war,run-exploded]</verbatim>
</p>
</answer>
</faq>
</part>
<part id="Release">
<title>Release</title>
<faq id="howo">
<question>How do I release?</question>
<answer>
<ul>
<li>Uncommenting in generated POM svn.tags.url and maven-release-plugin configuration</li>
<li>Ensuring dryRun="false" element in that configuration</li>
<li>
Running a single command:
<verbatim>mvn release:prepare release:perforn</verbatim>
</li>
</ul>
</answer>
</faq>
<faq id="lcall">
<question>Why my release process complains about svn LC_ALL variable?</question>
<answer>
<p>
If underlying svn complains about LC_ALL variable please consider running your release prepending:
<verbatim>LC_ALL="C"</verbatim>
(macosx environments, see http://svn.haxx.se/users/archive-2006-07/0320.shtml)
</p>
</answer>
</faq>
<faq id="integrity">
<question>Why do I get Content integrity errors on restore running with jetty embedded/during release?</question>
<answer>
<p>Did you remove also alf_data_jetty (or how you renamed it) apart from the alf_jetty (or how you renamed it) db ;) ?</p>
</answer>
</faq>
</part>
<part id="Dependencies">
<title>Dependency management</title>
<faq id="jta">
<question>Why JTA can't be properly found on maven repos?</question>
<answer>
<p>
Due to redistribution problems you have to install JTA manuall when you need it with:
<verbatim>
- Download jta-1_0_1B-classes.zip from http://java.sun.com/products/jta/ - mvn install:install-file
-Dfile=./jta-1_0_1B-classes.zip -DgroupId=jta -DartifactId=jta -Dversion=1.0.1B -Dpackaging=jar
</verbatim>
</p>
</answer>
</faq>
</part>
<part id="Documentation">
<title>Documentation</title>
<faq id="filtering">
<question>Why I have duplicated properties with '_' character in my POM?</question>
<answer>
<p>
Due to maven/velocity filtering limitation,
dot based properties will not work in filtered site files. That's why a '_' separator is needed.
</p>
</answer>
</faq>
</part>
</faqs>

View File

@@ -0,0 +1,49 @@
<?xml version="1.0"?>
<!--
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>
<poweredBy>
<logo name="Maven" href="http://maven.apache.org" img="http://maven.apache.org/images/logos/maven-feather.png"/>
</poweredBy>
<skin>
<groupId>org.apache.maven.skins</groupId>
<artifactId>maven-application-skin</artifactId>
<version>1.0</version>
</skin>
<bannerLeft>
<name>Maven Alfresco Share Customization Sample - v. ${site_pom_version}</name>
<href>${site_site_url}</href>
</bannerLeft>
<bannerRight>
</bannerRight>
<body>
<links>
<item name="Maven" href="http://maven.apache.org/"/>
<item name="Apache" href="http://www.apache.org/"/>
</links>
<menu name="Maven Alfresco Extension Archetype Generated Project Instance - Howto ">
<item name="Introduction" href="index.html"/>
<item name="FAQ" href="faq.html"/>
</menu>
<menu ref="reports"/>
</body>
</project>

View File

@@ -0,0 +1,59 @@
-----
Maven Alfresco Extension Archetype
-----
Alfresco
-----
Welcome to the Maven Alfresco Share Archetype home
You've reached the ({{ ${site_pom_url} }}) Maven Alfresco Extension archetype home page (version: ${site_pom_version})
Description
${site_pom_description}
Quick Start Project Creation
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://maven.alfresco.com/nexus/content/repositories/releases/archetype-catalog.xml
--------------------------------------------
and then choose the option 'maven-alfresco-share-archetype' and fill your custom project information. You can also do this via Eclipse
using the m2eclipse plugin.
Run your project in 3 minutes
The command below allows you to package your Share customization, run unit tests and eventually run jetty embedded with Alfresco
--------------------------------------------
mvn install -Prun
--------------------------------------------
You should be able to point your browser to http://localhost:8081/share and see your nice custom Alfresco Share running.
You might need to raise the MAVEN_OPTS memory allocated to Maven.
<<Prerequisite>>:
The only prerequisite is to have a previously running Alfresco instance (by default at http://localhost:8080/alfresco/). \
You can configure the Alfresco endpoint and runtime directly via the generated pom.xml using the following POM properties:
--------------------------------------------
<env>local</env>
<share.servlet.port>8081</share.servlet.port>
--------------------------------------------
The <<<<env>>>>> property (default 'local') is used to switch between the different property files in <<<src/main/properties>>> allowing fully environment
independent builds. You can tune your Share behavior using your custom env and configuring an additional <<<application.properties>>> file.
The <<<<share.servlet.port>>>> (default 8081) is the port bound by Jetty during run embedded.

View File

@@ -0,0 +1,39 @@
-----
Archetype Project Generated Layout
-----
What do I get when creating the project?
You will encounter an Share project structure, filtered with values you provided in creation phase,
which has the following layout:
------------------------------------------------------------------
src --------------------------------------------------------> (source folder)
|
|__ main ___ __ resources --------------------------> mapped in the classpath
| | |
| | |__ alfresco/web-extension ---> alfresco overriding web Spring contexts
| | ---> sample alfresco share customizations
| |
| |__ properties -------------------------> environment aware application properties files
| | |
| | |__ local -------------> default application.properties
| |
| |__ java -------------------------------> customization java classes
| |
| |__ webapp -----------------------------> alfresco webapp overlay folder - this folder is overlayed (so may overwrite alfresco war)
| |
| |__ Any web customization to be overlayed to the SHARE webapp (e.g. src/main/webapp/WEB-INF/web.xml)
|
|__ test
target - Project build dir
------------------------------------------------------------------

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@@ -0,0 +1,44 @@
<project>
<skin>
<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.alfresco.com" />
</poweredBy>
<publishDate position="navigation-bottom" format="MM-dd-yy" />
<bannerLeft>
<name>Maven alfresco Share archetype - v. ${project.version}</name>
<href>${site_site_url}</href>
<src>images/Alfresco-logo-transparent.gif</src>
</bannerLeft>
<body>
<menu name="M2 Alfresco Share Archetype">
<item name="Introduction" href="index.html" />
<item name="Generated Project Layout " href="layout.html"/>
</menu>
<menu name="See also">
<item name="Maven Alfresco Extension Archetype" href="http://maven.alfresco.com/nexus/content/repositories/alfresco-docs/maven-alfresco-lifecycle/maven-alfresco-archetypes/maven-alfresco-extension-archetype/index.html" />
<item name="Maven Alfresco AMP Archetype" href="http://maven.alfresco.com/nexus/content/repositories/alfresco-docs/maven-alfresco-lifecycle/maven-alfresco-archetypes/maven-alfresco-amp-archetype/index.html" />
</menu>
<links>
<item name="Maven" href="http://maven.apache.org/" />
<item name="Apache" href="http://www.apache.org/" />
<item name="Alfresco" href="http://www.alfresco.com/" />
<item name="Maven Alfresco Community Repository" href="http://maven.alfresco.com/" />
</links>
<menu ref="parent" />
<menu ref="reports" />
</body>
</project>

View File

@@ -21,6 +21,7 @@
<modules>
<module>maven-alfresco-amp-archetype</module>
<module>maven-alfresco-extension-archetype</module>
<module>maven-alfresco-share-archetype</module>
</modules>
<build>
<extensions>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB