DEVPLAT-50

This commit is contained in:
Martin Bergljung 2015-04-21 09:42:16 +01:00
parent e2da89679c
commit d8816d7fa7
8 changed files with 79 additions and 154 deletions

View File

@ -22,10 +22,11 @@
For more available properties see the alfresco-sdk-parent POM. For more available properties see the alfresco-sdk-parent POM.
--> -->
<properties> <properties>
<!-- The following are default values for data location and Alfresco version. <!-- The following are default values for data location, Alfresco Community version, and Records Management Module version.
Uncomment if you need to change Uncomment if you need to change (Note. current default version for Enterprise edition is 5.0.0.5)
<alfresco.version>${alfresco.community.default.version}</alfresco.version> <alfresco.version>5.0.d</alfresco.version>
<alfresco.data.location>${alfresco.data.location}</alfresco.data.location> --> <alfresco.rm.version>2.3</alfresco.rm.version>
<alfresco.data.location>alf_data_dev</alfresco.data.location> -->
<!-- This control the root logging level for all apps uncomment and change, defaults to WARN <!-- This control the root logging level for all apps uncomment and change, defaults to WARN
<app.log.root.level>WARN</app.log.root.level> <app.log.root.level>WARN</app.log.root.level>
@ -65,11 +66,11 @@
</plugins> </plugins>
</build> </build>
<profiles>
<profile>
<!-- Invoke your build with -Prun to run the multimodule project and enable rapid dev mode in your IDE. <!-- Invoke your build with -Prun to run the multimodule project and enable rapid dev mode in your IDE.
See 'run' profile in the sub modules pom.xml for further behavioral details. See 'run' profile in the sub modules pom.xml for further behavioral details.
--> -->
<profiles>
<profile>
<id>run</id> <id>run</id>
<properties> <properties>
<!-- While running in rapid dev mode with -Prun, we don't want amp web resources <!-- While running in rapid dev mode with -Prun, we don't want amp web resources
@ -78,15 +79,5 @@
<maven.alfresco.includeWebResources>false</maven.alfresco.includeWebResources> <maven.alfresco.includeWebResources>false</maven.alfresco.includeWebResources>
</properties> </properties>
</profile> </profile>
<!-- RM profile, manually activated, automatically adds support for RM development (dependencies) and install the RM amps in the WARs -->
<profile>
<id>rm</id>
<properties>
<alfresco.rm.version>2.3.a.1</alfresco.rm.version>
<app.rm.amps.location>${project.build.directory}/rm-amps</app.rm.amps.location>
<app.rm.war.location>${project.build.directory}/${project.build.finalName}.war</app.rm.war.location>
<app.rm.artifact>org.alfresco:${alfresco.rm.artifactId}:${alfresco.rm.version}:amp</app.rm.artifact>
</properties>
</profile>
</profiles> </profiles>
</project> </project>

View File

@ -24,6 +24,16 @@
<groupId>${alfresco.groupId}</groupId> <groupId>${alfresco.groupId}</groupId>
<artifactId>alfresco-repository</artifactId> <artifactId>alfresco-repository</artifactId>
</dependency> </dependency>
<!-- Uncomment if you are using RM (Records Management) module, brings in RM related classes -->
<!--
<dependency>
<groupId>${alfresco.groupId}</groupId>
<artifactId>alfresco-rm</artifactId>
<version>${alfresco.rm.version}</version>
<classifier>classes</classifier>
</dependency>
-->
</dependencies> </dependencies>
<profiles> <profiles>
@ -43,22 +53,7 @@
</dependencies> </dependencies>
</profile> </profile>
<!-- RM profile, manually activated, automatically adds support for RM development <!-- If we are running in embedded Tomcat skip unit tests -->
(dependencies) and install the RM amps in the WARs -->
<profile>
<id>rm</id>
<dependencies>
<dependency>
<groupId>${alfresco.groupId}</groupId>
<artifactId>alfresco-rm</artifactId>
<version>${alfresco.rm.version}</version>
<type>jar</type>
<classifier>classes</classifier>
</dependency>
</dependencies>
</profile>
<!-- If we are running embedded skip unit tests -->
<profile> <profile>
<id>run</id> <id>run</id>
<properties> <properties>

View File

@ -38,7 +38,7 @@
<version>${project.version}</version> <version>${project.version}</version>
<type>amp</type> <type>amp</type>
</dependency> </dependency>
<!-- Demonstrating the usage of a well known GA AMP (SharePoint Protocol Support) --> <!-- Uncomment if you are using SPP (SharePoint Protocol Support) for Online Edit etc -->
<!-- <!--
<dependency> <dependency>
<groupId>${alfresco.groupId}</groupId> <groupId>${alfresco.groupId}</groupId>
@ -47,6 +47,15 @@
<type>amp</type> <type>amp</type>
</dependency> </dependency>
--> -->
<!-- Uncomment if you are using the RM (Records Management) module. -->
<!--
<dependency>
<groupId>${alfresco.groupId}</groupId>
<artifactId>alfresco-rm</artifactId>
<version>${alfresco.rm.version}</version>
<type>amp</type>
</dependency>
-->
</dependencies> </dependencies>
<build> <build>
@ -77,6 +86,7 @@
<artifactId>repo-amp</artifactId> <artifactId>repo-amp</artifactId>
<type>amp</type> <type>amp</type>
</overlay> </overlay>
<!-- Uncomment if you are using SPP -->
<!-- <!--
<overlay> <overlay>
<groupId>${alfresco.groupId}</groupId> <groupId>${alfresco.groupId}</groupId>
@ -84,11 +94,20 @@
<type>amp</type> <type>amp</type>
</overlay> </overlay>
--> -->
<!-- Uncomment if you are using RM -->
<!--
<overlay>
<groupId>${alfresco.groupId}</groupId>
<artifactId>alfresco-rm</artifactId>
<type>amp</type>
</overlay>
-->
</overlays> </overlays>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
<profiles> <profiles>
<!-- Overrides the run profile to disable securecomms and add rapid development configuration --> <!-- Overrides the run profile to disable securecomms and add rapid development configuration -->
<profile> <profile>
@ -153,52 +172,5 @@
</dependency> </dependency>
</dependencies> </dependencies>
</profile> </profile>
<!-- Installs the needed runtime artifact for an RM (Records Management) project -->
<profile>
<id>rm</id>
<properties>
<alfresco.rm.artifactId>alfresco-rm</alfresco.rm.artifactId>
</properties>
<build>
<plugins>
<!-- Fetch Alfresco RM repo AMP -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>get-rm-repo</id>
<phase>package</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifact>${app.rm.artifact}</artifact>
<outputDirectory>${app.rm.amps.location}</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<!-- The current AMP artifact is installed into the Alfresco folder using alfresco-maven-plugin -->
<plugin>
<groupId>org.alfresco.maven.plugin</groupId>
<artifactId>alfresco-maven-plugin</artifactId>
<executions>
<execution>
<id>install-rm-repo</id>
<phase>package</phase>
<goals>
<goal>install</goal>
</goals>
</execution>
</executions>
<configuration>
<ampLocation>${app.rm.amps.location}</ampLocation>
<warLocation>${app.rm.war.location}</warLocation>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles> </profiles>
</project> </project>

View File

@ -27,6 +27,15 @@
<version>${project.version}</version> <version>${project.version}</version>
<type>amp</type> <type>amp</type>
</dependency> </dependency>
<!-- Uncomment if you are using RM (Records Management) module -->
<!--
<dependency>
<groupId>${alfresco.groupId}</groupId>
<artifactId>alfresco-rm-share</artifactId>
<version>${alfresco.rm.version}</version>
<type>amp</type>
</dependency>
-->
</dependencies> </dependencies>
<build> <build>
@ -57,59 +66,17 @@
<artifactId>share-amp</artifactId> <artifactId>share-amp</artifactId>
<type>amp</type> <type>amp</type>
</overlay> </overlay>
<!-- Uncomment if you are using RM module -->
<!--
<overlay>
<groupId>${alfresco.groupId}</groupId>
<artifactId>alfresco-rm-share</artifactId>
<type>amp</type>
</overlay>
-->
</overlays> </overlays>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
<profiles>
<!-- Installs the needed runtime component for an Alfresco RM (Records Management) project -->
<profile>
<id>rm</id>
<properties>
<alfresco.rm.artifactId>alfresco-rm-share</alfresco.rm.artifactId>
</properties>
<build>
<plugins>
<!-- Fetch Alfresco RM repo AMP -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>get-rm-share</id>
<phase>package</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifact>${app.rm.artifact}</artifact>
<outputDirectory>${app.rm.amps.location}</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<!-- The current AMP artifact is installed into the Alfresco folder using alfresco-maven-plugin -->
<plugin>
<groupId>org.alfresco.maven.plugin</groupId>
<artifactId>alfresco-maven-plugin</artifactId>
<executions>
<execution>
<id>install-rm-share</id>
<phase>package</phase>
<goals>
<goal>install</goal>
</goals>
</execution>
</executions>
<configuration>
<ampLocation>${app.rm.amps.location}</ampLocation>
<warLocation>${app.rm.war.location}</warLocation>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project> </project>

View File

@ -3,9 +3,9 @@
<config evaluator="string-compare" condition="WebFramework"> <config evaluator="string-compare" condition="WebFramework">
<web-framework> <web-framework>
<autowire> <autowire>
<!-- Changing this to 'development' currently breaks the Admin Console so it does not work correctly. <!-- Changing this to 'development' currently breaks the Admin Console.
During testing we instead disable JS compilation by overriding bean javaScriptProcessor --> Instead we make a POST to clear Share dependency caches, see 'clear-caches-refresh-ws' profile. -->
<mode>production</mode> <mode>production</mode> <!-- not really need in the long run, used for YUI - deprecate -->
</autowire> </autowire>
<!-- <!--

View File

@ -21,10 +21,10 @@
For more available properties see the alfresco-sdk-parent POM. For more available properties see the alfresco-sdk-parent POM.
--> -->
<properties> <properties>
<!-- The following are default values for data location and Alfresco version. <!-- The following are default values for data location and Alfresco Community version.
Uncomment if you need to change Uncomment if you need to change (Note. current default version for Enterprise edition is 5.0.0.5)
<alfresco.version>${alfresco.community.default.version}</alfresco.version> <alfresco.version>5.0.d</alfresco.version>
<alfresco.data.location>${alfresco.data.location}</alfresco.data.location> --> <alfresco.data.location>alf_data_dev</alfresco.data.location> -->
<!-- This control the root logging level for all apps uncomment and change, defaults to WARN <!-- This control the root logging level for all apps uncomment and change, defaults to WARN
<app.log.root.level>WARN</app.log.root.level> <app.log.root.level>WARN</app.log.root.level>

View File

@ -3,9 +3,9 @@
<config evaluator="string-compare" condition="WebFramework"> <config evaluator="string-compare" condition="WebFramework">
<web-framework> <web-framework>
<autowire> <autowire>
<!-- Changing this to 'development' currently breaks the Admin Console so it does not work correctly. <!-- Changing this to 'development' currently breaks the Admin Console.
During testing we instead disable JS compilation by overriding bean javaScriptProcessor --> Instead we make a POST to clear Share dependency caches, see 'clear-caches-refresh-ws' profile. -->
<mode>production</mode> <mode>production</mode> <!-- not really need in the long run, used for YUI - deprecate -->
</autowire> </autowire>
<!-- <!--
@ -17,7 +17,6 @@
</web-framework> </web-framework>
</config> </config>
<!-- Global config section --> <!-- Global config section -->
<config replace="true"> <config replace="true">
<flags> <flags>

View File

@ -135,6 +135,7 @@
<alfresco.sdk.parent.version>${project.version}</alfresco.sdk.parent.version> <alfresco.sdk.parent.version>${project.version}</alfresco.sdk.parent.version>
<alfresco.community.default.version>5.0.d</alfresco.community.default.version> <alfresco.community.default.version>5.0.d</alfresco.community.default.version>
<alfresco.enterprise.default.version>5.0.0.5</alfresco.enterprise.default.version> <alfresco.enterprise.default.version>5.0.0.5</alfresco.enterprise.default.version>
<alfresco.rm.version>2.3</alfresco.rm.version>
<springloaded.version>1.2.3.RELEASE</springloaded.version> <springloaded.version>1.2.3.RELEASE</springloaded.version>
<scm.url.base>https://github.com/Alfresco/alfresco-sdk</scm.url.base> <scm.url.base>https://github.com/Alfresco/alfresco-sdk</scm.url.base>
</properties> </properties>