Commit b276eddb authored by mindthegab's avatar mindthegab
Browse files

-- added maven-alfresco-share-module-archetype to build share JAR extensions...

-- added maven-alfresco-share-module-archetype to build share JAR extensions as in http://mindthegab.com/2010/02/23/howto-build-your-jar-alfresco-share-dashlet-with-maven-in-3-minutes/
-- fixed minor issues in maven-alfresco-share-archetype
-- merged other fixes

git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@294 04253f4f-3451-0410-a141-5562f1e59037
parent cf97d549
Loading
Loading
Loading
Loading
+124 −110
Original line number Diff line number Diff line
@@ -11,7 +11,11 @@
	<repositories>
		<repository>
			<id>alfresco-public</id>
			<url>http://maven.alfresco.com/nexus/content/groups/public/</url>
			<url>http://maven.alfresco.com/nexus/content/groups/public</url>
		</repository>
		<repository>
            <id>alfresco-public-snapshots</id>
            <url>http://maven.alfresco.com/nexus/content/groups/public-snapshots</url>
        </repository>
	</repositories>

@@ -35,7 +39,17 @@
			<version>${alfresco.version}</version>
			<classifier>community</classifier>
		</dependency>
        <!-- Share module dependencies 
            | As of Alfresco 3.3 you can add here below Share Dashlets/Pages packaged as Jars (see http://blogs.alfresco.com/wp/kevinr/2010/01/28/alfresco-share-33-extensions-and-springsurf/)
            | You can build them with Maven using the Maven Share Module Archetype, documentation can be found here: http://wiki.alfresco.com/wiki/Managing_Alfresco_Lifecyle_with_Maven)
             
        <dependency>
            <groupId>org.alfresco</groupId>
            <artifactId>my-share-module</artifactId>
            <type>jar</type>
            <version>0.0.1</version>
        </dependency>
        -->
	</dependencies>

	<build>
@@ -59,7 +73,7 @@
				classpath:alfresco/extension/application.properties
			-->
			<resource>
				<directory>src/main/properties</directory>
				<directory>src/main/properties/${env}</directory>
				<includes>
					<include>application.properties</include>
				</includes>
+1 −0
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@
   
	<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
		<property name="ignoreResourceNotFound" value="true" />
		<property name="ignoreUnresolvablePlaceholders" value="true"/>
		<property name="locations">
			<list>
				<value>classpath:alfresco/web-extension/application.properties</value>
+72 −82
Original line number Diff line number Diff line
@@ -3,8 +3,10 @@

	<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.
			<!--
				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>${share.server.scheme}</scheme>
			<hostname>${share.server.name}</hostname>
@@ -17,27 +19,14 @@

	<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>${alfresco.server.scheme}://${alfresco.server.name}:${alfresco.server.port}/${alfresco.webapp.name}/s</endpoint-url>
				<endpoint-url>
					${alfresco.server.scheme}://${alfresco.server.name}:${alfresco.server.port}/${alfresco.webapp.name}/s
				</endpoint-url>
				<identity>none</identity>
			</endpoint>

@@ -46,47 +35,48 @@
				<name>Alfresco - user access</name>
				<description>Access to Alfresco Repository WebScripts that require user authentication</description>
				<connector-id>alfresco</connector-id>
        <endpoint-url>${alfresco.server.scheme}://${alfresco.server.name}:${alfresco.server.port}/${alfresco.webapp.name}/s</endpoint-url>
				<endpoint-url>
					${alfresco.server.scheme}://${alfresco.server.name}:${alfresco.server.port}/${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 -->
	<!--
		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>
	<!--
		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>
		<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>
		<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>
		<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>
		<identity>user</identity> <external-auth>true</external-auth>
		</endpoint> </remote> </config>
	-->


+32 −0
Original line number Diff line number Diff line
<?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>maven-alfresco-share-module-archetype</artifactId>
  <version>1.0.0-SNAPSHOT</version>
  <packaging>maven-archetype</packaging>
  <name>Maven Archetype to build Alfresco Share JAR modules (dashlets,pages,etc.)</name>
  <parent>
     <groupId>com.sourcesense.alfresco</groupId>
     <artifactId>maven-alfresco-archetypes</artifactId>
     <version>1.9.2-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>
+20 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?><archetype-descriptor name="maven-share-module">
  <fileSets>
    <fileSet filtered="false" encoding="UTF-8">
      <directory>src/main/resources</directory>
      <includes>
        <include>**/*.xml</include>
        <include>**/*.properties</include>
      </includes>
    </fileSet>
    <fileSet filtered="false" encoding="UTF-8">
      <directory>src/main/resources</directory>
      <includes>
        <include>**/*.js</include>
        <include>**/*.ftl</include>
        <include>**/*.css</include>
        <include>**/*.png</include>
      </includes>
    </fileSet>    
  </fileSets>
</archetype-descriptor>
 No newline at end of file
Loading