mirror of
https://github.com/Alfresco/alfresco-sdk.git
synced 2025-05-19 17:15:24 +00:00
bumped commit
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@4 04253f4f-3451-0410-a141-5562f1e59037
This commit is contained in:
parent
f0dedbea6f
commit
951fe80bcf
@ -1,9 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry excluding="src/main/resources/archetype-resources/src/main/java/|src/main/resources/archetype-resources/src/main/java/|src/main/resources/archetype-resources/src/main/resources/|src/main/resources/archetype-resources/src/main/resources/|src/main/resources/archetype-resources/|src/main/resources/archetype-resources/" kind="src" path=""/>
|
||||
<classpathentry kind="src" path="src/main/resources/archetype-resources/src/main/java"/>
|
||||
<classpathentry kind="src" path="src/main/resources/archetype-resources/src/main/resources"/>
|
||||
<classpathentry excluding="src/main/java/|src/main/resources/" kind="src" path="src/main/resources/archetype-resources"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
@ -1,9 +0,0 @@
|
||||
<projectDescription>
|
||||
<name>demoamp</name>
|
||||
<comment/>
|
||||
<projects/>
|
||||
<buildSpec/>
|
||||
<natures>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
@ -1,42 +0,0 @@
|
||||
<?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>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.sourcesense.alfresco</groupId>
|
||||
<artifactId>maven-alfresco-amp-archetype</artifactId>
|
||||
<packaging>maven-archetype</packaging>
|
||||
<name>demoamp</name>
|
||||
<version>1.0</version>
|
||||
<build>
|
||||
<extensions>
|
||||
<extension>
|
||||
<groupId>org.apache.maven.archetype</groupId>
|
||||
<artifactId>archetype-packaging</artifactId>
|
||||
<version>2.0-alpha-3</version>
|
||||
</extension>
|
||||
</extensions>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-archetype-plugin</artifactId>
|
||||
<version>2.0-alpha-3</version>
|
||||
<extensions>true</extensions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
@ -1,70 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?><archetype-descriptor name="demoamp">
|
||||
<!--
|
||||
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.
|
||||
|
||||
-->
|
||||
<fileSets>
|
||||
<fileSet filtered="true" packaged="true" encoding="UTF-8">
|
||||
<directory>src/main/java</directory>
|
||||
<includes>
|
||||
<include>**/*.java</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
<fileSet filtered="true" encoding="UTF-8">
|
||||
<directory>src/main/webapp</directory>
|
||||
<includes>
|
||||
<include>**/*.txt</include>
|
||||
<include>**/*.jsp</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
<fileSet filtered="true" encoding="UTF-8">
|
||||
<directory>src/main/resources</directory>
|
||||
<includes>
|
||||
<include>**/*.xml</include>
|
||||
<include>**/*.properties</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
<fileSet encoding="UTF-8">
|
||||
<directory>src/main/webapp</directory>
|
||||
<includes>
|
||||
<include>**/*.js</include>
|
||||
<include>**/*.gif</include>
|
||||
<include>**/*.css</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
<fileSet filtered="true" encoding="UTF-8">
|
||||
<directory>src/test/properties</directory>
|
||||
<includes>
|
||||
<include>**/*.properties</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
<fileSet filtered="true" encoding="UTF-8">
|
||||
<directory>src/test/resources</directory>
|
||||
<includes>
|
||||
<include>**/*.xml</include>
|
||||
<include>**/*.properties</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
<fileSet filtered="true" encoding="UTF-8">
|
||||
<directory></directory>
|
||||
<includes>
|
||||
<include>module.properties</include>
|
||||
<include>README.txt</include>
|
||||
<include>TODO.txt</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
</archetype-descriptor>
|
@ -1,44 +0,0 @@
|
||||
<?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.
|
||||
|
||||
-->
|
||||
<archetype>
|
||||
<id>maven-alfresco-amp-archetype</id>
|
||||
<sources>
|
||||
<source>src/main/java/Demo.java</source>
|
||||
<source>src/main/java/DemoComponent.java</source>
|
||||
</sources>
|
||||
<resources>
|
||||
<resource>src/main/resources/alfresco/module/org.alfresco.module.demoamp/context/service-context.xml</resource>
|
||||
<resource>src/main/resources/alfresco/module/org.alfresco.module.demoamp/log4j.properties</resource>
|
||||
<resource>src/main/resources/alfresco/module/org.alfresco.module.demoamp/module-context.xml</resource>
|
||||
<resource>src/main/webapp/css/demoamp.css</resource>
|
||||
<resource>src/main/webapp/images/sourcesense.gif</resource>
|
||||
<resource>src/main/webapp/jsp/demoamp.jsp</resource>
|
||||
<resource>src/main/webapp/licenses/README-licenses.txt</resource>
|
||||
<resource>src/main/webapp/scripts/demoamp.js</resource>
|
||||
<resource>module.properties</resource>
|
||||
<resource>README.txt</resource>
|
||||
<resource>TODO.txt</resource>
|
||||
</resources>
|
||||
<testResources>
|
||||
<resource>src/test/properties/local/application.properties</resource>
|
||||
<resource>src/test/resources/alfresco/extension/custom-repository-context.xml</resource>
|
||||
<resource>src/test/resources/alfresco/extension/file-servers-custom.xml</resource>
|
||||
<resource>src/test/resources/log4j.properties</resource>
|
||||
</testResources>
|
||||
</archetype>
|
@ -1,129 +0,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.
|
||||
======================================================================
|
||||
|
||||
|
||||
---------------------------------------
|
||||
Archetype Release: Archetype - maven-amp-archetype
|
||||
Author: g.columbro@sourcesense.com
|
||||
http://forge.alfresco.com/m2alfresco
|
||||
|
||||
Contacts:
|
||||
- alfresco-dev@lists.sourcesense.com (developer)
|
||||
- alfresco@sourcesense.com (commercial)
|
||||
|
||||
See Also:
|
||||
http://wiki.alfresco.com/wiki/Module_Management_Tool
|
||||
-----------------------------------------------------
|
||||
|
||||
|
||||
|
||||
M2 Instructions for Alfresco AMP:
|
||||
--------------------------------
|
||||
|
||||
The project can be built using Maven2.
|
||||
|
||||
|
||||
Alfresco maven2 AMP build
|
||||
-------------------------
|
||||
|
||||
|
||||
One command quickstart:
|
||||
$ MAVEN_OPTS="-Xms256m -Xmx512m -XX:PermSize=128m" mvn clean integration-test -P webapp
|
||||
|
||||
Runs the jetty embedded with overlayed the currently developed AMP
|
||||
|
||||
|
||||
FEATURES:
|
||||
---------
|
||||
|
||||
- AMP customized build : mvn clean package
|
||||
- AMP dependencies management: 'mvn clean package' can take care of overlay deps
|
||||
- Alfresco webapp integration via war creation mvn clean package -P webapp
|
||||
- jetty embedded build for fast testing, mvn clean integration-test -P webapp
|
||||
- install/deployment of Alfresco compatible AMPs on a m2 repo mvn install / deploy [ params ]
|
||||
|
||||
- using the maven-amp-plugin (http://forge.alfresco.com/maven4alfresco) WAR can depend on AMP artifacts and have them overlayed within the maven
|
||||
lifecycle, avoiding the boring MMT run.
|
||||
|
||||
Specific dependencies and different Alfresco versions can be specified in 'webapp' profile dependecies. Alfresco test webapp is overlayed (apart with
|
||||
all AMP and WAR dependencies specified) also with a sensible default 'alfresco/extension' folder to have a clean safe reproduceable and portable
|
||||
default alfresco run. Find these test configuaration files in 'src/test/resources' and environment dependent properties in src/test/properties/<env>/application.properties
|
||||
|
||||
|
||||
SOON TO COME:
|
||||
------------
|
||||
|
||||
- Shared configuration (site + release + plugin config) with maven-alfresco-extension-archetype via super POM
|
||||
|
||||
|
||||
PROJECT LAYOUT
|
||||
--------------
|
||||
|
||||
src --------------------------------------------------------> (source folder)
|
||||
|
|
||||
|__ main ___ __ resources --------------------------> mapped in the classpath (alfresco module config goes here, as well as other classpath resources)
|
||||
| | | NB: best practice groupId.artifactId=moduleId is used by the archetype and by the AMP unpacker
|
||||
| | |__ ex: alfresco/module/com.sourcesense.${artifactId} ---> Example Alfresco module config
|
||||
| |
|
||||
| |
|
||||
| |__ java -------------------------------> customization java classes
|
||||
| |
|
||||
| |__ webapp -----------------------------> AMP overlay folder - this folder is overlayed (so may overwrite other dependent AMPs)
|
||||
|
||||
|
|
||||
|__ test __ __ resources
|
||||
|
|
||||
| | |__ alfresco/extension ---> alfresco overriding Spring contexts
|
||||
| |__ properties -------------------------> environment aware application properties files
|
||||
| | |
|
||||
| | |__ local -------------> default application.properties
|
||||
| |
|
||||
|
||||
target - Project build dir
|
||||
|
||||
|
||||
FAQ:
|
||||
----
|
||||
--- Eclipse configuration
|
||||
-Run ' mvn eclipse:eclipse '
|
||||
-hit "Refresh" on your Eclipse project
|
||||
|
||||
--- Db access problems:
|
||||
Remember to setup appropriate permissions for selected db / build profile.
|
||||
You can either edit accordingly and then run: mysql -u root < tools/mysql/db_setup.sql
|
||||
|
||||
or if you use POM property 'alfresco.db.name' you have sql files already filtered (after process-resources phase) in
|
||||
|
||||
mysql -u root -p < target/classes/tools/[db_setup,db_remove].sql
|
||||
|
||||
--- Out of memory errors:
|
||||
Run your build with :
|
||||
MAVEN_OPTS="-Xms256m -Xmx512m -XX:PermSize=128m" mvn ... ...
|
||||
|
||||
--- Content integrity errors on restore running with jetty embedded
|
||||
Did you remove also alf_data_jetty apart from the alf_jetty db ?
|
||||
|
||||
--- Release Problems with LC_ALL
|
||||
If underlying svn complains about LC_ALL variable please consider running your release prepending:
|
||||
LC_ALL="C" (macosx environments, see http://svn.haxx.se/users/archive-2006-07/0320.shtml)
|
||||
|
||||
-- Deploy a generally available AMP into a maven repo for dependency usage
|
||||
|
||||
mvn deploy:deploy-file -DrepositoryId=repo
|
||||
-Dfile=/Users/youruser/projectz/alfresco/alfresco-recordsmanagement-2.1.0.amp
|
||||
-DgroupId=org.alfresco.community -DartifactId=recordsmanagement -Dversion=2.1.0
|
||||
-Dpackaging=amp -Durl=scp://...
|
@ -1,42 +0,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.
|
||||
======================================================================
|
||||
|
||||
Known Issues:
|
||||
-------------
|
||||
|
||||
|
||||
|
||||
MAJOR:
|
||||
- maven-amp-plugin filtering broken
|
||||
|
||||
|
||||
MINOR:
|
||||
- cannot use maven SNAPSHOT versioning as it's copied over in the module.properties
|
||||
file and not accepted by alfresco as valid module version number
|
||||
|
||||
|
||||
TRIVIAL:
|
||||
- Slighly different deployment for AMP and test WAR. In the test jetty
|
||||
war java classes are *not* packed in the war as in the AMP specification,
|
||||
but this *must* not have functional impacts on the application
|
||||
|
||||
IMPROVEMENTS:
|
||||
- maven-amp-plugin is *heavily* redundant. must be simplified to package an
|
||||
amp and process overlays
|
||||
- maven-amp-plugin could read maven dependencies and turn them into
|
||||
module dependencies in module.properties
|
||||
- maven-sql-plugin to autocreate jetty db
|
@ -1,47 +0,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.
|
||||
|
||||
|
||||
|
||||
# SDK Sample module
|
||||
|
||||
# ==== Beginning of Alfresco required/optional properties ====== #
|
||||
|
||||
module.id=${pom.groupId}.${pom.artifactId}
|
||||
#module.aliases=myModule-123, my-module
|
||||
module.title=${pom.name}
|
||||
module.description=${pom.description}
|
||||
module.version=${pom.version}
|
||||
|
||||
# The following optional properties can be used to prevent the module from being added
|
||||
# to inappropriate versions of the WAR file.
|
||||
# module.repo.version.min=2.0
|
||||
# module.repo.version.max=2.1
|
||||
|
||||
# FIXME: This dependencies should come out of mvn dependencies on amp
|
||||
|
||||
# The following describe dependencies on other modules
|
||||
# Depends on net.sf.myproject.module.SupportModuleA version ${version} or later
|
||||
# module.depends.net.sf.myproject.module.SupportModuleA=${version}-*
|
||||
# Depends on net.sf.myproject.module.SupportModuleA version ${version} to 2.0
|
||||
# module.depends.net.sf.myproject.module.SupportModuleB=${version}-2.0
|
||||
# Depends on net.sf.myproject.module.SupportModuleC - any version
|
||||
# module.depends.net.sf.myproject.module.SupportModuleB=*
|
||||
|
||||
|
||||
# ==== End of Alfresco required/optional properties ======= #
|
||||
|
||||
|
||||
# ==== Beginning of module required properties/optional ====== #
|
@ -1,308 +0,0 @@
|
||||
<?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">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.sourcesense.alfresco</groupId>
|
||||
<artifactId>demoamp</artifactId>
|
||||
<packaging>amp</packaging>
|
||||
<name>Maven Alfresco AMP Packaging Sample</name>
|
||||
<!-- No shapshot or beta version, as this is used for filtering module.properties
|
||||
|
||||
As in http://wiki.alfresco.com/wiki/Developing_an_Alfresco_Module:
|
||||
|
||||
"The version number must be made up of numeric values separated by dots. For example '2.1.56' is a valid version number, '2.3.4a' is not. "
|
||||
|
||||
If you want to use (and I do) maven snapshot capabilities than you could
|
||||
remove the filtering and maintaining versions (pom and module.properties) aligned manually
|
||||
-->
|
||||
<version>1.0</version>
|
||||
<description>Test AMP project</description>
|
||||
<properties>
|
||||
<!--Default for which src/main/properties/<env>/application.properties is loaded. NB:
|
||||
used only for the 'test' profile (e.g. '-P test' on the mvn commandline)
|
||||
jetty run deployment, does not impact AMP behavior which is typically environment independent
|
||||
-->
|
||||
<env>local</env>
|
||||
<!-- Webapp used to test/develop locally the AMP -->
|
||||
<webapp.name>${artifactId}-webapp</webapp.name>
|
||||
<!--
|
||||
|
|
||||
| By default the src/test/properties/local/application.properties uses the property "alfresco.data.location" to specify where
|
||||
| alf_data gets created.
|
||||
| For local jetty:run deployment default creation dir is under project root folder (as location is specified relatively to run
|
||||
| dir). Please add alf_data_jetty in svn/cvs ignores in order not to commit that. You can also specified a different (out of the
|
||||
| sproject) folder
|
||||
| by editing the following properties.
|
||||
| DB is also configurable here. Of course keep in sync these two values otherwise you'll get integrity errors.
|
||||
|
|
||||
| Empty log dir creates file alfresco.log in appserver default dir. You can also specify a meaningful log directory for the server
|
||||
| (add a trailing slash, e.g. '/var/log/alfresco/' )
|
||||
|
|
||||
| Jetty embedded run logs by default in target/alfresco.log
|
||||
-->
|
||||
<alfresco.data.location>./alf_data_jetty</alfresco.data.location>
|
||||
<alfresco.db.name>alf_jetty</alfresco.db.name>
|
||||
<webapp.log.level>error</webapp.log.level>
|
||||
<webapp.log.dir>${project.build.directory}/</webapp.log.dir>
|
||||
<!-- End of testing webapp specific properties -->
|
||||
<!-- Module specific build time properties -->
|
||||
<module.log.level>debug</module.log.level>
|
||||
</properties>
|
||||
<!--
|
||||
need to list these as a provided so that Maven doesn't download them
|
||||
and include them in the AMP, they are provided by Alfresco
|
||||
-->
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>alfresco.community</groupId>
|
||||
<artifactId>alfresco-repository</artifactId>
|
||||
<version>2.1.0</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring</artifactId>
|
||||
<version>2.0</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<!-- Example Jar dependency: will be properly packed into the AMP /lib directory
|
||||
<dependency>
|
||||
<groupId>rome</groupId>
|
||||
<artifactId>opensearch</artifactId>
|
||||
<version>0.1</version>
|
||||
</dependency>
|
||||
-->
|
||||
<!-- Example AMP dependency: will be properly overlayed in the resulting WAR
|
||||
<dependency>
|
||||
<groupId>org.alfresco.community</groupId>
|
||||
<artifactId>recordsmanagement</artifactId>
|
||||
<version>2.1.0</version>
|
||||
<type>amp</type>
|
||||
</dependency>
|
||||
-->
|
||||
<!-- By default archetype assumes mysql for test webapp. Change src/test/properties/<env>/application.properties
|
||||
FIXME: support in memory db for cleaner and safer test runs
|
||||
-->
|
||||
<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
<version>5.0.3</version>
|
||||
</dependency>
|
||||
<!-- Don't add here amp dependencies as it will break amp packaging -->
|
||||
</dependencies>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<source>1.5</source>
|
||||
<target>1.5</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.alfresco.maven.plugin</groupId>
|
||||
<artifactId>maven-amp-plugin</artifactId>
|
||||
<version>1.0.0</version>
|
||||
<extensions>true</extensions>
|
||||
<configuration>
|
||||
<archive>
|
||||
<addMavenDescriptor>false</addMavenDescriptor>
|
||||
</archive>
|
||||
<overlays>
|
||||
<overlay>
|
||||
<groupId>org.alfresco.community</groupId>
|
||||
<artifactId>recordsmanagement</artifactId>
|
||||
<version>2.1.0</version>
|
||||
<type>amp</type>
|
||||
</overlay>
|
||||
<!-- The current AMP -->
|
||||
<overlay></overlay>
|
||||
</overlays>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
<!-- Copies and filters AMP config in build folder so maven-amp-plugin can pick them up -->
|
||||
<resources>
|
||||
<resource>
|
||||
<filtering>true</filtering>
|
||||
<directory>src/main/resources</directory>
|
||||
<excludes>
|
||||
<exclude>**README-*</exclude>
|
||||
</excludes>
|
||||
</resource>
|
||||
</resources>
|
||||
</build>
|
||||
<profiles>
|
||||
<!-- Profile used to trigger war creation and integration within Jetty embedded -->
|
||||
<profile>
|
||||
<id>webapp</id>
|
||||
<build>
|
||||
<filters><filter>src/test/properties/${env}/application.properties</filter></filters>
|
||||
<defaultGoal>jetty:run-exploded</defaultGoal>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-dependency-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>unpack-amps</id>
|
||||
<phase>process-resources</phase>
|
||||
<goals>
|
||||
<goal>unpack-dependencies</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<includeTypes>amp</includeTypes>
|
||||
<outputDirectory>${build.directory}/${webapp.name}</outputDirectory>
|
||||
<excludes>META*</excludes>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
<dependencies>
|
||||
<!-- This is required to be re-defined explicitly at plugin level as otherwise the 'amp' extension
|
||||
unArchiver won't be available to the maven-dependency-plugin -->
|
||||
<dependency>
|
||||
<groupId>org.alfresco.maven.plugin</groupId>
|
||||
<artifactId>maven-amp-plugin</artifactId>
|
||||
<version>1.0.0</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-war-plugin</artifactId>
|
||||
<executions>
|
||||
<!-- Runs jetty when 'integration-test' phase is called -->
|
||||
<execution>
|
||||
<id>it</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>exploded</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<primaryArtifact>false</primaryArtifact>
|
||||
<!-- Don't remove the following line otherwise WAR and AMP builds will be done in the same folder, with unexpected results -->
|
||||
<webappDirectory>${build.directory}/${webapp.name}</webappDirectory>
|
||||
<archive>
|
||||
<addMavenDescriptor>false</addMavenDescriptor>
|
||||
</archive>
|
||||
<warSourceExcludes>licenses/**</warSourceExcludes>
|
||||
<webResources></webResources>
|
||||
<webResources>
|
||||
<resource>
|
||||
<directory>${build.testOutputDirectory}</directory>
|
||||
<targetPath>WEB-INF/classes</targetPath>
|
||||
<filtering>true</filtering>
|
||||
<includes>
|
||||
<include>**</include>
|
||||
</includes>
|
||||
</resource>
|
||||
<!-- Here we add default this AMP web/ resources-->
|
||||
<resource>
|
||||
<directory>src/main/webapp</directory>
|
||||
<targetPath>WEB-INF/licenses</targetPath>
|
||||
<includes>
|
||||
<include>licenses/*.*</include>
|
||||
</includes>
|
||||
<filtering>false</filtering>
|
||||
</resource>
|
||||
</webResources>
|
||||
</configuration>
|
||||
<dependencies>
|
||||
<!-- This is required to be re-defined explicitly at plugin level as otherwise the 'amp' extension
|
||||
unArchiver won't be available to the maven-war-plugin -->
|
||||
<dependency>
|
||||
<groupId>org.alfresco.maven.plugin</groupId>
|
||||
<artifactId>maven-amp-plugin</artifactId>
|
||||
<version>1.0.0</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.mortbay.jetty</groupId>
|
||||
<artifactId>maven-jetty-plugin</artifactId>
|
||||
<executions>
|
||||
<!-- Runs jetty when 'integration-test' phase is called -->
|
||||
<execution>
|
||||
<id>it</id>
|
||||
<phase>integration-test</phase>
|
||||
<goals>
|
||||
<goal>run-exploded</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<contextPath>/${webapp.name}</contextPath>
|
||||
<webApp>${pom.build.directory}/${webapp.name}</webApp>
|
||||
<scanIntervalSeconds>10</scanIntervalSeconds>
|
||||
<connectors>
|
||||
<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
|
||||
<port>8080</port>
|
||||
<maxIdleTime>60000</maxIdleTime>
|
||||
</connector>
|
||||
</connectors>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
<!-- When invoking 'mvn integration-test', the following alf configs are added to the test war in order to be able to run it seamlessly.
|
||||
NB: the application.properties file is filtered with alfresco.db.name and alf.data.location POM properties as default configuration
|
||||
-->
|
||||
<testResources>
|
||||
<testResource>
|
||||
<filtering>true</filtering>
|
||||
<directory>src/test/resources</directory>
|
||||
</testResource>
|
||||
|
||||
<testResource>
|
||||
<filtering>true</filtering>
|
||||
<directory>src/test/properties/${env}</directory>
|
||||
<targetPath>alfresco/extension</targetPath>
|
||||
</testResource>
|
||||
<!-- This works only if : src/main/resources/alfresco/module/<yourChoosenName> == src/main/resources/alfresco/module/${groupId}.${artifactId}
|
||||
Best practice tacken from recordsmanagement.amp, is enforced troughout the whole archetype. This convention is also used for module.properties filtering.
|
||||
-->
|
||||
<testResource>
|
||||
<filtering>true</filtering>
|
||||
<directory>.</directory>
|
||||
<includes>
|
||||
<include>module.properties</include>
|
||||
</includes>
|
||||
<targetPath>alfresco/module/${groupId}.${artifactId}</targetPath>
|
||||
</testResource>
|
||||
</testResources>
|
||||
</build>
|
||||
<!-- Here you can add test dependencies you want to have included in the the WAR (not in the AMP, built in the main profile)
|
||||
|
|
||||
| Typical use case: add here additional AMPs that you want to test compatibility of with the current module
|
||||
|
|
||||
-->
|
||||
<dependencies>
|
||||
<!-- This is the alfresco version you're testing the AMP against. Don't remove if you want jetty to be able to deploy a WAR :) -->
|
||||
<dependency>
|
||||
<groupId>alfresco.community</groupId>
|
||||
<artifactId>alfresco</artifactId>
|
||||
<version>2.1.0</version>
|
||||
<type>war</type>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</profile>
|
||||
|
||||
</profiles>
|
||||
</project>
|
@ -1,38 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2005-2007 Alfresco Software Limited.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
* As a special exception to the terms and conditions of version 2.0 of
|
||||
* the GPL, you may redistribute this Program in connection with Free/Libre
|
||||
* and Open Source Software ("FLOSS") applications as described in Alfresco's
|
||||
* FLOSS exception. You should have recieved a copy of the text describing
|
||||
* the FLOSS exception, and it is also available here:
|
||||
* http://www.alfresco.com/legal/licensing"
|
||||
*/
|
||||
package com.sourcesense.demoamp;
|
||||
|
||||
/**
|
||||
* This class does nothing except dump some output to <i>system.out</i>.
|
||||
*
|
||||
* @author Derek Hulley
|
||||
*/
|
||||
public class Demo
|
||||
{
|
||||
public void init()
|
||||
{
|
||||
System.out.println("SDK Demo AMP class has been loaded");
|
||||
}
|
||||
}
|
@ -1,41 +0,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.
|
||||
*/
|
||||
package com.sourcesense.demoamp;
|
||||
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import org.alfresco.repo.module.AbstractModuleComponent;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
|
||||
/**
|
||||
* A basic component that will be started for this module.
|
||||
*
|
||||
* @author Derek Hulley
|
||||
*/
|
||||
public class DemoComponent extends AbstractModuleComponent
|
||||
{
|
||||
Log log = LogFactory.getLog(DemoComponent.class);
|
||||
|
||||
@Override
|
||||
protected void executeInternal() throws Throwable
|
||||
{
|
||||
System.out.println("DemoComponent has been executed");
|
||||
log.debug("Test debug logging is working");
|
||||
log.info("This should not be outputted by default");
|
||||
}
|
||||
}
|
@ -1,34 +0,0 @@
|
||||
<?xml version='${version}' encoding='UTF-8'?>
|
||||
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
|
||||
<!--
|
||||
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.
|
||||
|
||||
-->
|
||||
<beans>
|
||||
|
||||
<!-- A simple class that is initialized by Spring -->
|
||||
<bean id="${artifactId}.exampleBean" class="com.sourcesense.demoamp.Demo" init-method="init" />
|
||||
|
||||
<!-- A simple module component that will be executed once -->
|
||||
<bean id="${artifactId}.exampleComponent" class="com.sourcesense.demoamp.DemoComponent" parent="module.baseComponent" >
|
||||
<property name="moduleId" value="${[pom.groupId}.${pom.artifactId}" /> <!-- See module.properties -->
|
||||
<property name="name" value="exampleComponent" />
|
||||
<property name="description" value="A demonstration component" />
|
||||
<property name="sinceVersion" value="2.0" />
|
||||
<property name="appliesFromVersion" value=".20x" />
|
||||
</bean>
|
||||
|
||||
</beans>
|
@ -1,41 +0,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.
|
||||
#-----------------------------------------------------------------------
|
||||
# ${artifactId} module log4j.properties
|
||||
#
|
||||
# NOTE
|
||||
# ----
|
||||
# Log4j uses the following logging levels:
|
||||
# debug,info,warn,error,fatal
|
||||
#
|
||||
# To set the logging level of {fullClassName} to {loglevel},
|
||||
# add a line to this file of the following form:
|
||||
#
|
||||
# log4j.logger.{fullClassName}={loglevel}
|
||||
#
|
||||
# For example, to make 'com.example.MyExample' produce 'debug'
|
||||
# logs, add a line like this:
|
||||
#
|
||||
# log4j.logger.com.example.MyExample=debug
|
||||
#
|
||||
#
|
||||
# WARNING
|
||||
# -------
|
||||
# Log properties in this log4j.properties file override/augment
|
||||
# those in the webapp's main log4j.properties.
|
||||
#
|
||||
#-----------------------------------------------------------------------
|
||||
|
||||
log4j.logger.com.sourcesense.demoamp.DemoComponent=${module.log.level}
|
@ -1,25 +0,0 @@
|
||||
<?xml version='${version}' 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.
|
||||
|
||||
-->
|
||||
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
|
||||
|
||||
<beans>
|
||||
|
||||
<import resource="classpath:alfresco/module/com.sourcesense.demoamp/context/service-context.xml" />
|
||||
|
||||
</beans>
|
@ -1,16 +0,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.
|
||||
*/
|
Binary file not shown.
Before Width: | Height: | Size: 3.5 KiB |
@ -1,16 +0,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.
|
||||
-->
|
@ -1,2 +0,0 @@
|
||||
This folder (root in the AMP) gets mapped automagically in WEB-INF/licenses
|
||||
in the war build
|
@ -1,16 +0,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.
|
||||
*/
|
@ -1,139 +0,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.
|
||||
|
||||
# RUN TIME PROPERTIES
|
||||
# -------------------
|
||||
|
||||
# Sample custom content and index data location
|
||||
# This will create alf_data Relative to appserver run folder
|
||||
# In this default file we take the property from the POM (for compatbility with local jetty and jboss deployments) but it can also be edited here.
|
||||
dir.root=${alfresco.data.location}
|
||||
# Allowed values are: NONE, AUTO, FULL
|
||||
index.recovery.mode=FULL
|
||||
|
||||
# Fail or not when there are node integrity checker errors
|
||||
integrity.failOnError=true
|
||||
|
||||
# database connection properties
|
||||
# MySQL connection (This is default and requires mysql-connector-java-5.0.3-bin.jar, which ships with the Alfresco server)
|
||||
|
||||
db.driver=org.gjt.mm.mysql.Driver
|
||||
db.url=jdbc:mysql://localhost/${alfresco.db.name}
|
||||
db.username=alfresco
|
||||
db.password=alfresco
|
||||
db.pool.initial=10
|
||||
db.pool.max=100
|
||||
|
||||
# MySQL dialect
|
||||
hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect
|
||||
|
||||
|
||||
|
||||
|
||||
# Change the following values only if you know what you're doing.
|
||||
# Default should suffice in most cases when running jetty embedded
|
||||
# for amp testing
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Property to control whether schema updates are performed automatically.
|
||||
# Updates must be enabled during upgrades as, apart from the static upgrade scripts,
|
||||
# there are also auto-generated update scripts that will need to be executed. After
|
||||
# upgrading to a new version, this can be disabled.
|
||||
#db.schema.update=true
|
||||
|
||||
|
||||
# File servers related properties
|
||||
# For local builds we disable CIFS and FTP. Edit the following property to reenable them
|
||||
smb.server.enabled=false
|
||||
smb.server.name=CFS_SHARE_LOCAL
|
||||
smb.server.domain=mycompany.com
|
||||
smb.server.bindto=127.0.0.1
|
||||
smb.tcpip.port=1445
|
||||
netbios.session.port=1139
|
||||
netbios.name.port=1137
|
||||
netbios.datagram.port=1138
|
||||
ftp.server.enabled=false
|
||||
ftp.port=1121
|
||||
ftp.authenticator=alfresco
|
||||
|
||||
# This properties file is used to configure LDAP authentication
|
||||
# NB: The following LDAP related properties are read only in case -Denteprise mvn build property is specified
|
||||
# Wheter to allow silent deletion of users in the Alfresco UI (note: users will be then resynced in the next synchronization)
|
||||
ldap.authentication.allowDeleteUser=true
|
||||
# LDAP JNDI provider
|
||||
ldap.authentication.provider=com.sun.jndi.ldap.LdapCtxFactory
|
||||
# Url and protocol for LDAP server to carry authentication against
|
||||
ldap.authentication.url=ldap://ldap.mycompany.com:636
|
||||
# can be (simple, ssl)
|
||||
ldap.authentication.protcol=ssl
|
||||
# Credentials with full access to the directoty used
|
||||
ldap.authentication.adminUser=ou=Admin,ou=Services,o=Company
|
||||
ldap.authentication.adminPassword=secret
|
||||
# Wheter to allow unauthenticated guest a read only login
|
||||
ldap.authentication.guestLogin.allowed=false
|
||||
# Wheter users can be created on the fly upon successful external (e.g. LDAP) authentication. Useful to avoid user synchronization in case just uid and pwd are needed for a user
|
||||
server.transaction.allow-writes=true
|
||||
# Wheter user names are case sensitive
|
||||
user.name.caseSensitive=true
|
||||
# Wheter the synchronization process has to process duplicated users (e.g. synced users and users coming from the sync)
|
||||
personService.processDuplicates=true
|
||||
# Which action to take when processin duplicates. One of: LEAVE, SPLIT, DELETE
|
||||
personService.duplicateMode=DELETE
|
||||
# Which of the users (in case of SPLIT duplicates policy) should be considered valid
|
||||
personService.lastIsBest=true
|
||||
# Wheter auto created users should be considered when processing duplicates
|
||||
personService.includeAutoCreated=true
|
||||
# The query to find the people to import
|
||||
ldap.synchronisation.personQuery=(objectclass=inetOrgPerson)
|
||||
# The search base of the query to find people to import
|
||||
ldap.synchronisation.personSearchBase=ou=Identities,ou=mycompany,o=com
|
||||
# The attribute name on people objects found in LDAP to use as the uid in Alfresco
|
||||
ldap.synchronisation.userIdAttributeName=cn
|
||||
# The attribute on person objects in LDAP to map to the first name property in Alfresco
|
||||
ldap.synchronisation.userFirstNameAttributeName=givenName
|
||||
# The attribute on person objects in LDAP to map to the last name property in Alfresco
|
||||
ldap.synchronisation.userLastNameAttributeName=sn
|
||||
# The attribute on person objects in LDAP to map to the email property in Alfresco
|
||||
ldap.synchronisation.userEmailAttributeName=cn
|
||||
# The attribute on person objects in LDAP to map to the organizational id property in Alfresco
|
||||
ldap.synchronisation.userOrganizationalIdAttributeName=maildomain
|
||||
# The default home folder provider to use for people created via LDAP import
|
||||
ldap.synchronisation.defaultHomeFolderProvider=companyHomeFolderProvider
|
||||
# The query to find group objects
|
||||
ldap.synchronisation.groupQuery=(objectclass=AlfrescoGroup)
|
||||
# The search base to use to find group objects
|
||||
ldap.synchronisation.groupSearchBase=ou=AlfrescoGroups,ou=mycompany,o=com
|
||||
# The attribute on LDAP group objects to map to the gid property in Alfrecso
|
||||
ldap.synchronisation.groupIdAttributeName=cn
|
||||
# The group type in LDAP
|
||||
ldap.synchronisation.groupType=AlfrescoGroup
|
||||
# The person type in LDAP
|
||||
ldap.synchronisation.personType=inetOrgPerson
|
||||
# The attribute in LDAP on group objects that defines the DN for its members
|
||||
ldap.synchronisation.groupMemberAttributeName=member
|
||||
# The cron expression defining when people imports should take place (e.g. every evening at 22:00 hours)
|
||||
ldap.synchronisation.import.person.cron=0 0 22 * * ?
|
||||
# The cron expression defining when group imports should take place (e.g. every evening at 21:45 hours)
|
||||
ldap.synchronisation.import.group.cron=0 45 21 * * ?
|
||||
# Should all groups be cleared out at import time?
|
||||
# - this is safe as groups are not used in Alfresco for other things (unlike person objects which you should never clear out during an import)
|
||||
# - setting this to true means old group definitions will be tidied up.
|
||||
ldap.synchronisation.import.group.clearAllChildren=false
|
||||
|
||||
|
||||
|
@ -1,53 +0,0 @@
|
||||
<?xml version='${version}' 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.
|
||||
|
||||
-->
|
||||
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
|
||||
|
||||
<!--
|
||||
This shows the common minimum configuration overrides.
|
||||
By default, the content and indexes are located at a relative location, which should only
|
||||
be used when doing a quick preview of the Alfresco server.
|
||||
-->
|
||||
<beans>
|
||||
|
||||
<!-- overriding to point to custom properties -->
|
||||
<bean id="repository-properties" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
|
||||
<property name="ignoreUnresolvablePlaceholders">
|
||||
<value>true</value>
|
||||
</property>
|
||||
<property name="locations">
|
||||
<list>
|
||||
<value>classpath:alfresco/repository.properties</value>
|
||||
<value>classpath:alfresco/version.properties</value>
|
||||
<value>classpath:alfresco/domain/transaction.properties</value>
|
||||
|
||||
<!-- Override basic repository properties, dir.root and hibernate dialect -->
|
||||
<value>classpath:alfresco/extension/application.properties</value>
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="hibernateConfigProperties" class="org.springframework.beans.factory.config.PropertiesFactoryBean">
|
||||
<property name="locations">
|
||||
<list>
|
||||
<value>classpath:alfresco/domain/hibernate-cfg.properties</value>
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
</beans>
|
@ -1,152 +0,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.
|
||||
|
||||
-->
|
||||
<!--
|
||||
| Default property based configuration.
|
||||
| Example configurations are also provided.
|
||||
|
|
||||
-->
|
||||
<alfresco-config area="file-servers">
|
||||
|
||||
<!-- To override the default Alfresco filesystem use replace="true", to -->
|
||||
<!-- add additional filesystems remove the replace="true" attribute -->
|
||||
|
||||
|
||||
<!-- Sample passtrhu Novel authentication
|
||||
<config evaluator="string-compare" condition="Filesystem Security" replace="true">
|
||||
<authenticator type="passthru">
|
||||
<Server>passtrhu1.mycompany.com,passthru2.mycompany.com</Server>
|
||||
</authenticator>
|
||||
</config>
|
||||
-->
|
||||
|
||||
<!-- Sample kerberos configuration. Untested.
|
||||
|
||||
config evaluator="string-compare" condition="Filesystem Security" replace="true">
|
||||
<authenticator type="enterprise">
|
||||
<KDC>authserver.company.com</KDC>
|
||||
<Realm>MYCOMPANY.COM</Realm>
|
||||
<Password>secret</Password>
|
||||
<LoginEntry>AlfCommon</LoginEntry>
|
||||
</authenticator>
|
||||
</config-->
|
||||
|
||||
<config evaluator="string-compare" condition="Filesystem Security" replace="true">
|
||||
<authenticator type="alfresco"/>
|
||||
</config>
|
||||
|
||||
<config evaluator="string-compare" condition="CIFS Server" replace="true">
|
||||
<serverEnable enabled="${smb.server.enabled}"/>
|
||||
<host name="${smb.server.name}" domain="${smb.server.domain}"/>
|
||||
<comment>Alfresco CIFS Server</comment>
|
||||
|
||||
<!-- Set to the broadcast mask for the subnet -->
|
||||
<broadcast>255.255.255.0</broadcast>
|
||||
|
||||
<!-- Use Java socket based NetBIOS over TCP/IP and native SMB on linux -->
|
||||
<tcpipSMB platforms="linux,solaris,macosx"/>
|
||||
<netBIOSSMB platforms="linux,solaris,macosx"/>
|
||||
<!-- bind to the frontend facing interface of this server -->
|
||||
<bindto>${smb.server.bindto}</bindto>
|
||||
|
||||
<!-- Can be mapped to non-privileged ports, then use firewall rules to forward requests from the standard ports -->
|
||||
|
||||
<tcpipSMB port="${smb.tcpip.port}" platforms="linux,solaris,macosx"/>
|
||||
<netBIOSSMB sessionPort="${netbios.session.port}" namePort="${netbios.name.port}" datagramPort="${netbios.datagram.port}" platforms="linux,solaris,macosx"/>
|
||||
|
||||
<hostAnnounce interval="5"/>
|
||||
|
||||
<!-- Use Win32 NetBIOS interface on Windows -->
|
||||
<Win32NetBIOS/>
|
||||
<Win32Announce interval="5"/>
|
||||
|
||||
<!--
|
||||
<WINS>
|
||||
<primary>1.2.3.4</primary>
|
||||
<secondary>5.6.7.8</secondary>
|
||||
</WINS>
|
||||
-->
|
||||
<sessionDebug flags="Negotiate,Socket"/>
|
||||
</config>
|
||||
|
||||
<config evaluator="string-compare" condition="FTP Server">
|
||||
<serverEnable enabled="${ftp.server.enabled}"/>
|
||||
<port>${ftp.port}</port>
|
||||
|
||||
<!-- FTP authentication -->
|
||||
<authenticator type="${ftp.authenticator}"/>
|
||||
<!-- <debug flags="File,Search,Error,Directory,Info,DataPort"/> -->
|
||||
</config>
|
||||
|
||||
|
||||
<config evaluator="string-compare" condition="Filesystems" replace="true">
|
||||
<filesystems>
|
||||
|
||||
<filesystem name="Alfresco">
|
||||
<store>workspace://SpacesStore</store>
|
||||
<rootPath>/app:company_home</rootPath>
|
||||
|
||||
<!-- Add a URL file to each folder that links back to the web client -->
|
||||
<urlFile>
|
||||
<filename>__Alfresco.url</filename>
|
||||
<webpath>http://${localname}/</webpath>
|
||||
</urlFile>
|
||||
|
||||
<!-- Mark locked files as offline -->
|
||||
<offlineFiles/>
|
||||
|
||||
<!-- Desktop actions -->
|
||||
|
||||
<desktopActions>
|
||||
<global>
|
||||
<path>alfresco/desktop/Alfresco.exe</path>
|
||||
<webpath>http://${localname}/</webpath>
|
||||
</global>
|
||||
<action>
|
||||
<class>org.alfresco.filesys.smb.server.repo.desk.CheckInOutDesktopAction</class>
|
||||
<name>CheckInOut</name>
|
||||
<filename>__CheckInOut.exe</filename>
|
||||
</action>
|
||||
<action>
|
||||
<class>org.alfresco.filesys.smb.server.repo.desk.JavaScriptDesktopAction</class>
|
||||
<name>JavaScriptURL</name>
|
||||
<filename>__ShowDetails.exe</filename>
|
||||
<script>alfresco/desktop/showDetails.js</script>
|
||||
<attributes>anyFiles</attributes>
|
||||
<preprocess>copyToTarget</preprocess>
|
||||
</action>
|
||||
|
||||
</desktopActions>
|
||||
|
||||
<!--
|
||||
<accessControl default="Write">
|
||||
<user name="admin" access="Write"/>
|
||||
<address subnet="90.${version}.0" mask="255.255.0.0" access="Write"/>
|
||||
</accessControl>
|
||||
-->
|
||||
|
||||
</filesystem>
|
||||
|
||||
<!-- AVM virtualization view of all stores/versions for WCM -->
|
||||
<avmfilesystem name="AVM">
|
||||
<virtualView/>
|
||||
</avmfilesystem>
|
||||
|
||||
</filesystems>
|
||||
</config>
|
||||
|
||||
</alfresco-config>
|
@ -1,147 +0,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.
|
||||
|
||||
|
||||
# Customized alfresco log location
|
||||
# Set root logger level to error
|
||||
log4j.rootLogger=${webapp.log.level}, Console, File
|
||||
|
||||
###### Console appender definition #######
|
||||
|
||||
# All outputs currently set to be a ConsoleAppender.
|
||||
log4j.appender.Console=org.apache.log4j.ConsoleAppender
|
||||
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.Console.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c{3}] %m%n
|
||||
#log4j.appender.Console.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n
|
||||
|
||||
###### File appender definition #######
|
||||
log4j.appender.File=org.apache.log4j.DailyRollingFileAppender
|
||||
log4j.appender.File.File=${webapp.log.dir}alfresco.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
|
||||
|
||||
###### Hibernate specific appender definition #######
|
||||
#log4j.appender.file=org.apache.log4j.FileAppender
|
||||
#log4j.appender.file.File=hibernate.log
|
||||
#log4j.appender.file.layout=org.apache.log4j.PatternLayout
|
||||
#log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
|
||||
|
||||
###### Log level overrides #######
|
||||
|
||||
log4j.logger.org.alfresco.repo.model.filefolder=info
|
||||
|
||||
# Hibernate
|
||||
log4j.logger.org.hibernate=error
|
||||
log4j.logger.org.hibernate.util.JDBCExceptionReporter=fatal
|
||||
log4j.logger.org.hibernate.event.def.AbstractFlushingEventListener=fatal
|
||||
#log4j.logger.org.hibernate.cache.EhCacheProvider=warn
|
||||
log4j.logger.org.hibernate.type=warn
|
||||
# log4j.logger.org.hibernate.persister.collection=DEBUG
|
||||
|
||||
# Spring
|
||||
log4j.logger.org.springframework=warn
|
||||
|
||||
# Axis/WSS4J
|
||||
log4j.logger.org.apache.axis=info
|
||||
log4j.logger.org.apache.ws=info
|
||||
|
||||
# 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
|
||||
|
||||
# log prepared statement cache activity ###
|
||||
log4j.logger.org.hibernate.ps.PreparedStatementCache=info
|
||||
|
||||
# Alfresco
|
||||
log4j.logger.org.alfresco=error
|
||||
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
|
||||
log4j.logger.org.alfresco.web.scripts=warn
|
||||
#log4j.logger.org.alfresco.web.ui.repo.component.UIActions=debug
|
||||
#log4j.logger.org.alfresco.web.ui.repo.tag.PageTag=debug
|
||||
#log4j.logger.org.alfresco.web.bean.clipboard=debug
|
||||
log4j.logger.org.alfresco.repo.webservice=info
|
||||
log4j.logger.org.alfresco.service.descriptor.DescriptorService=info
|
||||
#log4j.logger.org.alfresco.repo.importer.ImporterBootstrap=info
|
||||
#log4j.logger.org.alfresco.web.ui.common.Utils=info
|
||||
log4j.logger.org.alfresco.repo.admin.patch.PatchExecuter=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.FullIndexRecoveryComponent=info
|
||||
log4j.logger.org.alfresco.util.OpenOfficeConnectionTester=warn
|
||||
log4j.logger.org.alfresco.repo.node.db.hibernate.HibernateNodeDaoServiceImpl=warn
|
||||
#log4j.logger.org.alfresco.web.app.DebugPhaseListener=debug
|
||||
#log4j.logger.org.alfresco.repo.cache.EhCacheTracerJob=debug
|
||||
#log4j.logger.org.alfresco.repo.search.Indexer=debug
|
||||
#log4j.logger.org.alfresco.repo.workflow=info
|
||||
#log4j.logger.org.alfresco.repo.jscript=DEBUG
|
||||
log4j.logger.org.alfresco.repo.jscript.AlfrescoRhinoScriptDebugger=off
|
||||
|
||||
# CIFS server debugging
|
||||
#log4j.logger.org.alfresco.smb.protocol=debug
|
||||
#log4j.logger.org.alfresco.smb.protocol.auth=debug
|
||||
#log4j.logger.org.alfresco.acegi=debug
|
||||
|
||||
# FTP server debugging
|
||||
#log4j.logger.org.alfresco.ftp.protocol=debug
|
||||
#log4j.logger.org.alfresco.ftp.server=debug
|
||||
|
||||
# WebDAV debugging
|
||||
#log4j.logger.org.alfresco.webdav.protocol=debug
|
||||
|
||||
# NTLM servlet filters
|
||||
#log4j.logger.org.alfresco.web.app.servlet.NTLMAuthenticationFilter=debug
|
||||
#log4j.logger.org.alfresco.repo.webdav.auth.NTLMAuthenticationFilter=debug
|
||||
|
||||
# Integrity message threshold - if 'failOnViolation' is off, then WARNINGS are generated
|
||||
log4j.logger.org.alfresco.repo.node.integrity=ERROR
|
||||
|
||||
# New indexer debugging
|
||||
#log4j.logger.org.alfresco.repo.search.impl.lucene.index=DEBUG
|
||||
|
||||
# Audit debugging
|
||||
# log4j.logger.org.alfresco.repo.audit=DEBUG
|
||||
# log4j.logger.org.alfresco.repo.audit.model=DEBUG
|
||||
|
||||
# Turn off Spring remoting warnings that should really be info or debug.
|
||||
log4j.logger.org.springframework.remoting.support=error
|
||||
|
||||
# Templating debugging
|
||||
# log4j.logger.org.alfresco.web.forms=debug
|
||||
# log4j.logger.org.chiba.xml.xforms=debug
|
||||
|
||||
# Property sheet and modelling debugging
|
||||
# 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
|
||||
#log4j.logger.org.alfresco.web.ui.repo.component.property=debug
|
||||
#log4j.logger.org.alfresco.repo.dictionary.DictionaryDAO=info
|
||||
|
||||
|
||||
# Virtualization Server Registry
|
||||
#log4j.logger.org.alfresco.mbeans.VirtServerRegistry=debug
|
||||
|
||||
# Link Validation debugging
|
||||
#log4j.logger.org.alfresco.linkvalidation.LinkValidationServiceImpl=debug
|
||||
#log4j.logger.org.alfresco.linkvalidation.LinkValidationStoreCallbackHandler=debug
|
||||
|
@ -1,2 +0,0 @@
|
||||
#Temporary index for unavailable sources and javadocs
|
||||
#Fri Jul 04 02:25:03 CEST 2008
|
Loading…
x
Reference in New Issue
Block a user