Redo enterprise tests for the archetypes. When running "mvn clean install" only archetype tests for community edition.

Enabling the enterprise-tests profile will run all the tests
This commit is contained in:
Ole Hejlskov 2017-03-24 16:49:13 +01:00
parent 07bb743cfd
commit 0411bc5b1d
13 changed files with 26 additions and 4 deletions

View File

@ -120,14 +120,14 @@
They are defined in alfresco-platform-distribution... --> They are defined in alfresco-platform-distribution... -->
<dependency> <dependency>
<groupId>${alfresco.groupId}</groupId> <groupId>${alfresco.groupId}</groupId>
<artifactId>${alfresco.share.war.artifactId}</artifactId> <artifactId>share</artifactId>
<version>${alfresco.share.version}</version> <version>${alfresco.share.version}</version>
<type>war</type> <type>war</type>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>${alfresco.groupId}</groupId> <groupId>${alfresco.groupId}</groupId>
<artifactId>${alfresco.share.war.artifactId}</artifactId> <artifactId>share</artifactId>
<version>${alfresco.share.version}</version> <version>${alfresco.share.version}</version>
<classifier>classes</classifier> <classifier>classes</classifier>
<scope>provided</scope> <scope>provided</scope>

View File

@ -0,0 +1,4 @@
version=0.1-SNAPSHOT
groupId=archetype.it
artifactId=allInOneTestRunEnterprise
package=it.pkg

View File

@ -0,0 +1 @@
install -Dalfresco.platform.version=@@alfresco.enterprise.default.version@@ -Dmaven.alfresco.edition=@@alfresco.sdk.default.edition@@

View File

@ -0,0 +1,4 @@
version=0.1-SNAPSHOT
groupId=archetype.it
artifactId=repoJarTestRunEnterprise
package=it.pkg

View File

@ -0,0 +1 @@
install -Dalfresco.platform.version=@@alfresco.enterprise.default.version@@ -Dmaven.alfresco.edition=@@alfresco.sdk.default.edition@@

View File

@ -0,0 +1,4 @@
version=0.1-SNAPSHOT
groupId=archetype.it
artifactId=shareJarTestRunEnterprise
package=it.pkg

View File

@ -0,0 +1 @@
install -Dalfresco.platform.version=@@alfresco.enterprise.default.version@@ -Dmaven.alfresco.edition=@@alfresco.sdk.default.edition@@

View File

@ -11,7 +11,7 @@
<url>${maven.site.url}</url> <url>${maven.site.url}</url>
<prerequisites> <prerequisites>
<maven>3.0.3</maven> <maven>3.3.0</maven>
</prerequisites> </prerequisites>
<licenses> <licenses>
@ -123,9 +123,11 @@
<module>plugins/alfresco-maven-plugin</module> <module>plugins/alfresco-maven-plugin</module>
<!-- Archetypes --> <!-- Archetypes -->
<module>archetypes/alfresco-platform-jar-archetype</module> <module>archetypes/alfresco-platform-jar-archetype</module>
<module>archetypes/alfresco-share-jar-archetype</module> <module>archetypes/alfresco-share-jar-archetype</module>
<module>archetypes/alfresco-allinone-archetype</module> <module>archetypes/alfresco-allinone-archetype</module>
<module>archetypes/activiti-jar-archetype</module> <module>archetypes/activiti-jar-archetype</module>
</modules> </modules>
<properties> <properties>
@ -138,6 +140,8 @@
<!-- The following version is needed for alfresco-rad --> <!-- The following version is needed for alfresco-rad -->
<alfresco.community.default.version>5.2.e</alfresco.community.default.version> <alfresco.community.default.version>5.2.e</alfresco.community.default.version>
<alfresco.enterprise.default.version>5.2.0</alfresco.enterprise.default.version>
<alfresco.sdk.default.edition>community</alfresco.sdk.default.edition>
<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>
@ -237,14 +241,17 @@
<build> <build>
<testResources> <testResources>
<testResource> <testResource>
<filtering>true</filtering>
<directory>src/test/resources</directory> <directory>src/test/resources</directory>
<excludes> <excludes>
<exclude>${alfresco.sdk.tests.exclude}</exclude> <exclude>${alfresco.sdk.tests.exclude}</exclude>
</excludes> </excludes>
</testResource> </testResource>
</testResources> </testResources>
</build> </build>
</profile> </profile>
<profile> <profile>
<id>enterprise-tests</id> <id>enterprise-tests</id>
<properties> <properties>