mirror of
https://github.com/Alfresco/alfresco-sdk.git
synced 2025-07-31 17:39:14 +00:00
Renaming modules in AIO archetype:
[artifactId]-plaform-jar -> [artifactId]-platform [artifactId]-share-jar -> [artifactId]-share integration-tests -> [artifactId]-integration-tests
This commit is contained in:
@@ -10,9 +10,9 @@
|
|||||||
</requiredProperty>
|
</requiredProperty>
|
||||||
</requiredProperties>
|
</requiredProperties>
|
||||||
<modules>
|
<modules>
|
||||||
<module id="${rootArtifactId}-platform-jar"
|
<module id="${rootArtifactId}-platform"
|
||||||
name="${rootArtifactId}-platform-jar"
|
name="${rootArtifactId}-platform"
|
||||||
dir="__rootArtifactId__-platform-jar">
|
dir="__rootArtifactId__-platform">
|
||||||
<fileSets>
|
<fileSets>
|
||||||
<fileSet filtered="false" packaged="false" encoding="UTF-8">
|
<fileSet filtered="false" packaged="false" encoding="UTF-8">
|
||||||
<directory>src/main/assembly</directory>
|
<directory>src/main/assembly</directory>
|
||||||
@@ -50,9 +50,9 @@
|
|||||||
</fileSets>
|
</fileSets>
|
||||||
</module>
|
</module>
|
||||||
|
|
||||||
<module id="${rootArtifactId}-share-jar"
|
<module id="${rootArtifactId}-share"
|
||||||
name="${rootArtifactId}-share-jar"
|
name="${rootArtifactId}-share"
|
||||||
dir="__rootArtifactId__-share-jar">
|
dir="__rootArtifactId__-share">
|
||||||
<fileSets>
|
<fileSets>
|
||||||
<fileSet filtered="false" packaged="false" encoding="UTF-8">
|
<fileSet filtered="false" packaged="false" encoding="UTF-8">
|
||||||
<directory>src/main/assembly</directory>
|
<directory>src/main/assembly</directory>
|
||||||
@@ -97,7 +97,9 @@
|
|||||||
</fileSets>
|
</fileSets>
|
||||||
</module>
|
</module>
|
||||||
|
|
||||||
<module id="integration-tests" name="integration-tests" dir="integration-tests">
|
<module id="${rootArtifactId}-integration-tests"
|
||||||
|
name="${rootArtifactId}-integration-tests"
|
||||||
|
dir="__rootArtifactId__-integration-tests">
|
||||||
<fileSets>
|
<fileSets>
|
||||||
<fileSet filtered="true" packaged="true" encoding="UTF-8">
|
<fileSet filtered="true" packaged="true" encoding="UTF-8">
|
||||||
<directory>src/main/java</directory>
|
<directory>src/main/java</directory>
|
||||||
|
@@ -22,7 +22,7 @@
|
|||||||
that is generated for the AIO project -->
|
that is generated for the AIO project -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>${groupId}</groupId>
|
<groupId>${groupId}</groupId>
|
||||||
<artifactId>${rootArtifactId}-platform-jar</artifactId>
|
<artifactId>${rootArtifactId}-platform</artifactId>
|
||||||
<version>${version}</version>
|
<version>${version}</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
@@ -19,7 +19,7 @@
|
|||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>${groupId}</groupId>
|
<groupId>${groupId}</groupId>
|
||||||
<artifactId>${rootArtifactId}-platform-jar</artifactId>
|
<artifactId>${rootArtifactId}-platform</artifactId>
|
||||||
<version>${version}</version>
|
<version>${version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
@@ -50,7 +50,7 @@
|
|||||||
</artifactItem>
|
</artifactItem>
|
||||||
<artifactItem>
|
<artifactItem>
|
||||||
<groupId>${groupId}</groupId>
|
<groupId>${groupId}</groupId>
|
||||||
<artifactId>integration-tests</artifactId>
|
<artifactId>${rootArtifactId}-integration-tests</artifactId>
|
||||||
<version>${version}</version>
|
<version>${version}</version>
|
||||||
<classifier>tests</classifier>
|
<classifier>tests</classifier>
|
||||||
<overWrite>false</overWrite>
|
<overWrite>false</overWrite>
|
||||||
|
@@ -26,12 +26,12 @@ disabledPlugins=Hibernate,Spring
|
|||||||
#
|
#
|
||||||
# Load web application resources (such as HTML, JSP, CSS, ...) from this directory prior to default processing.
|
# Load web application resources (such as HTML, JSP, CSS, ...) from this directory prior to default processing.
|
||||||
# Use this setting to set to serve resources from source directory directly (e.g. src/main/webapp).
|
# Use this setting to set to serve resources from source directory directly (e.g. src/main/webapp).
|
||||||
extraWebappContext=/usr/local/tomcat/hotswap-agent/${rootArtifactId}-platform-jar/target/classes/META-INF/resources;
|
extraWebappContext=/usr/local/tomcat/hotswap-agent/${rootArtifactId}-platform/target/classes/META-INF/resources;
|
||||||
|
|
||||||
# Load static web resources from different directory.
|
# Load static web resources from different directory.
|
||||||
#
|
#
|
||||||
# This setting is dependent on application server plugin(Jetty, Tomcat, JBoss, ...)
|
# This setting is dependent on application server plugin(Jetty, Tomcat, JBoss, ...)
|
||||||
webappDir=/usr/local/tomcat/hotswap-agent/${rootArtifactId}-platform-jar/target/classes/META-INF/resources;
|
webappDir=/usr/local/tomcat/hotswap-agent/${rootArtifactId}-platform/target/classes/META-INF/resources;
|
||||||
|
|
||||||
# Watch for changes in a directory (resources only).
|
# Watch for changes in a directory (resources only).
|
||||||
#
|
#
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
<platformModules>
|
<platformModules>
|
||||||
<moduleDependency>
|
<moduleDependency>
|
||||||
<groupId>${project.groupId}</groupId>
|
<groupId>${project.groupId}</groupId>
|
||||||
<artifactId>some-platform-jar</artifactId>
|
<artifactId>some-platform</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
<type>amp</type>
|
<type>amp</type>
|
||||||
</moduleDependency>
|
</moduleDependency>
|
@@ -10,7 +10,7 @@ any existing web resources in the Alfresco.WAR.
|
|||||||
`
|
`
|
||||||
<moduleDependency>
|
<moduleDependency>
|
||||||
<groupId>${project.groupId}</groupId>
|
<groupId>${project.groupId}</groupId>
|
||||||
<artifactId>some-platform-jar</artifactId>
|
<artifactId>some-platform</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
<type>amp</type>
|
<type>amp</type>
|
||||||
</moduleDependency>
|
</moduleDependency>
|
@@ -19,7 +19,7 @@
|
|||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>${groupId}</groupId>
|
<groupId>${groupId}</groupId>
|
||||||
<artifactId>${rootArtifactId}-share-jar</artifactId>
|
<artifactId>${rootArtifactId}-share</artifactId>
|
||||||
<version>${version}</version>
|
<version>${version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
@@ -27,12 +27,12 @@ disabledPlugins=Hibernate,Spring
|
|||||||
#
|
#
|
||||||
# Load web application resources (such as HTML, JSP, CSS, ...) from this directory prior to default processing.
|
# Load web application resources (such as HTML, JSP, CSS, ...) from this directory prior to default processing.
|
||||||
# Use this setting to set to serve resources from source directory directly (e.g. src/main/webapp).
|
# Use this setting to set to serve resources from source directory directly (e.g. src/main/webapp).
|
||||||
extraWebappContext=/usr/local/tomcat/hotswap-agent/${rootArtifactId}-share-jar/target/classes/META-INF/resources;
|
extraWebappContext=/usr/local/tomcat/hotswap-agent/${rootArtifactId}-share/target/classes/META-INF/resources;
|
||||||
|
|
||||||
# Load static web resources from different directory.
|
# Load static web resources from different directory.
|
||||||
#
|
#
|
||||||
# This setting is dependent on application server plugin(Jetty, Tomcat, JBoss, ...)
|
# This setting is dependent on application server plugin(Jetty, Tomcat, JBoss, ...)
|
||||||
webappDir=/usr/local/tomcat/hotswap-agent/${rootArtifactId}-share-jar/target/classes/META-INF/resources;
|
webappDir=/usr/local/tomcat/hotswap-agent/${rootArtifactId}-share/target/classes/META-INF/resources;
|
||||||
|
|
||||||
# Watch for changes in a directory (resources only).
|
# Watch for changes in a directory (resources only).
|
||||||
#
|
#
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
<shareModules>
|
<shareModules>
|
||||||
<moduleDependency>
|
<moduleDependency>
|
||||||
<groupId>${project.groupId}</groupId>
|
<groupId>${project.groupId}</groupId>
|
||||||
<artifactId>some-share-jar</artifactId>
|
<artifactId>some-share</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
<type>amp</type>
|
<type>amp</type>
|
||||||
</moduleDependency>
|
</moduleDependency>
|
@@ -10,7 +10,7 @@ any existing web resources in the Share.WAR.
|
|||||||
`
|
`
|
||||||
<moduleDependency>
|
<moduleDependency>
|
||||||
<groupId>${project.groupId}</groupId>
|
<groupId>${project.groupId}</groupId>
|
||||||
<artifactId>some-share-jar</artifactId>
|
<artifactId>some-share</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
<type>amp</type>
|
<type>amp</type>
|
||||||
</moduleDependency>
|
</moduleDependency>
|
@@ -93,12 +93,12 @@ EXIT /B 0
|
|||||||
:build_share
|
:build_share
|
||||||
docker-compose -f "%COMPOSE_FILE_PATH%" kill ${rootArtifactId}-share
|
docker-compose -f "%COMPOSE_FILE_PATH%" kill ${rootArtifactId}-share
|
||||||
docker-compose -f "%COMPOSE_FILE_PATH%" rm -f ${rootArtifactId}-share
|
docker-compose -f "%COMPOSE_FILE_PATH%" rm -f ${rootArtifactId}-share
|
||||||
call %MVN_EXEC% clean install -DskipTests -pl ${rootArtifactId}-share-jar
|
call %MVN_EXEC% clean install -DskipTests -pl ${rootArtifactId}-share
|
||||||
EXIT /B 0
|
EXIT /B 0
|
||||||
:build_acs
|
:build_acs
|
||||||
docker-compose -f "%COMPOSE_FILE_PATH%" kill ${rootArtifactId}-acs
|
docker-compose -f "%COMPOSE_FILE_PATH%" kill ${rootArtifactId}-acs
|
||||||
docker-compose -f "%COMPOSE_FILE_PATH%" rm -f ${rootArtifactId}-acs
|
docker-compose -f "%COMPOSE_FILE_PATH%" rm -f ${rootArtifactId}-acs
|
||||||
call %MVN_EXEC% clean install -DskipTests -pl ${rootArtifactId}-platform-jar
|
call %MVN_EXEC% clean install -DskipTests -pl ${rootArtifactId}-platform
|
||||||
EXIT /B 0
|
EXIT /B 0
|
||||||
:tail
|
:tail
|
||||||
docker-compose -f "%COMPOSE_FILE_PATH%" logs -f
|
docker-compose -f "%COMPOSE_FILE_PATH%" logs -f
|
||||||
@@ -107,7 +107,7 @@ EXIT /B 0
|
|||||||
docker-compose -f "%COMPOSE_FILE_PATH%" logs --tail="all"
|
docker-compose -f "%COMPOSE_FILE_PATH%" logs --tail="all"
|
||||||
EXIT /B 0
|
EXIT /B 0
|
||||||
:test
|
:test
|
||||||
call %MVN_EXEC% verify -pl integration-tests
|
call %MVN_EXEC% verify -pl ${rootArtifactId}-integration-tests
|
||||||
EXIT /B 0
|
EXIT /B 0
|
||||||
:purge
|
:purge
|
||||||
docker volume rm -f ${rootArtifactId}-acs-volume
|
docker volume rm -f ${rootArtifactId}-acs-volume
|
||||||
|
@@ -43,13 +43,13 @@ build() {
|
|||||||
build_share() {
|
build_share() {
|
||||||
docker-compose -f ${symbol_dollar}COMPOSE_FILE_PATH kill ${rootArtifactId}-share
|
docker-compose -f ${symbol_dollar}COMPOSE_FILE_PATH kill ${rootArtifactId}-share
|
||||||
yes | docker-compose -f ${symbol_dollar}COMPOSE_FILE_PATH rm -f ${rootArtifactId}-share
|
yes | docker-compose -f ${symbol_dollar}COMPOSE_FILE_PATH rm -f ${rootArtifactId}-share
|
||||||
${symbol_dollar}MVN_EXEC clean install -DskipTests=true -pl ${rootArtifactId}-share-jar,${rootArtifactId}-share-docker
|
${symbol_dollar}MVN_EXEC clean install -DskipTests=true -pl ${rootArtifactId}-share,${rootArtifactId}-share-docker
|
||||||
}
|
}
|
||||||
|
|
||||||
build_acs() {
|
build_acs() {
|
||||||
docker-compose -f ${symbol_dollar}COMPOSE_FILE_PATH kill ${rootArtifactId}-acs
|
docker-compose -f ${symbol_dollar}COMPOSE_FILE_PATH kill ${rootArtifactId}-acs
|
||||||
yes | docker-compose -f ${symbol_dollar}COMPOSE_FILE_PATH rm -f ${rootArtifactId}-acs
|
yes | docker-compose -f ${symbol_dollar}COMPOSE_FILE_PATH rm -f ${rootArtifactId}-acs
|
||||||
${symbol_dollar}MVN_EXEC clean install -DskipTests=true -pl ${rootArtifactId}-platform-jar,${rootArtifactId}-platform-docker
|
${symbol_dollar}MVN_EXEC clean install -DskipTests=true -pl ${rootArtifactId}-platform,${rootArtifactId}-platform-docker
|
||||||
}
|
}
|
||||||
|
|
||||||
tail() {
|
tail() {
|
||||||
@@ -61,7 +61,7 @@ tail_all() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
test() {
|
test() {
|
||||||
${symbol_dollar}MVN_EXEC verify -pl integration-tests
|
${symbol_dollar}MVN_EXEC verify -pl ${rootArtifactId}-integration-tests
|
||||||
}
|
}
|
||||||
|
|
||||||
case "${symbol_dollar}1" in
|
case "${symbol_dollar}1" in
|
||||||
|
@@ -66,7 +66,7 @@ do is modify the `pom.xml` file of the corresponding docker module / project in
|
|||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>sample-module-platform-jar</artifactId>
|
<artifactId>sample-module-platform</artifactId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
<type>amp</type>
|
<type>amp</type>
|
||||||
</dependency>
|
</dependency>
|
||||||
@@ -91,7 +91,7 @@ do is modify the `pom.xml` file of the corresponding docker module / project in
|
|||||||
<artifactItems>
|
<artifactItems>
|
||||||
<artifactItem>
|
<artifactItem>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>sample-module-platform-jar</artifactId>
|
<artifactId>sample-module-platform</artifactId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
<overWrite>false</overWrite>
|
<overWrite>false</overWrite>
|
||||||
<outputDirectory>${project.build.directory}/extensions</outputDirectory>
|
<outputDirectory>${project.build.directory}/extensions</outputDirectory>
|
||||||
@@ -180,7 +180,7 @@ Here is an example of how to install Florian Maul's Javascript Console.
|
|||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>sample-module-platform-jar</artifactId>
|
<artifactId>sample-module-platform</artifactId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
@@ -100,8 +100,8 @@ the hot reloading tools fail):
|
|||||||
- "${acs.debug.port}:8888"
|
- "${acs.debug.port}:8888"
|
||||||
volumes:
|
volumes:
|
||||||
- alf-acs-volume:/usr/local/tomcat/alf_data
|
- alf-acs-volume:/usr/local/tomcat/alf_data
|
||||||
- ../../../sample-project-platform-jar/target/classes:/usr/local/tomcat/hotswap-agent/sample-project-platform-jar/target/classes
|
- ../../../sample-project-platform/target/classes:/usr/local/tomcat/hotswap-agent/sample-project-platform/target/classes
|
||||||
- ../../../integration-tests/target/test-classes:/usr/local/tomcat/hotswap-agent/integration-tests/target/test-classes
|
- ../../../sample-project-integration-tests/target/test-classes:/usr/local/tomcat/hotswap-agent/sample-project-integration-tests/target/test-classes
|
||||||
...
|
...
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -177,8 +177,8 @@ the hot reloading tools fail):
|
|||||||
- "${acs.debug.port}:8888"
|
- "${acs.debug.port}:8888"
|
||||||
volumes:
|
volumes:
|
||||||
- alf-acs-volume:/usr/local/tomcat/alf_data
|
- alf-acs-volume:/usr/local/tomcat/alf_data
|
||||||
- ../../../sample-project-platform-jar/target/classes:/usr/local/tomcat/hotswap-agent/sample-project-platform-jar/target/classes
|
- ../../../sample-project-platform/target/classes:/usr/local/tomcat/hotswap-agent/sample-project-platform/target/classes
|
||||||
- ../../../integration-tests/target/test-classes:/usr/local/tomcat/hotswap-agent/integration-tests/target/test-classes
|
- ../../../sample-project-integration-tests/target/test-classes:/usr/local/tomcat/hotswap-agent/sample-project-integration-tests/target/test-classes
|
||||||
...
|
...
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -268,7 +268,7 @@ model.put(“fromJava”,”HelloFromMe”);
|
|||||||
A number of log messages appear in the Alfresco project terminal, for example:
|
A number of log messages appear in the Alfresco project terminal, for example:
|
||||||
|
|
||||||
```
|
```
|
||||||
HOTSWAP AGENT: 14:10:29.887 DEBUG (org.hotswap.agent.watch.nio.WatcherNIO2) - Watch event 'ENTRY_MODIFY' on '/usr/local/tomcat/hotswap-agent/sample-project-platform-jar/target/classes/com/example/platformsample/HelloWorldWebScript.class' --> HelloWorldWebScript.class
|
HOTSWAP AGENT: 14:10:29.887 DEBUG (org.hotswap.agent.watch.nio.WatcherNIO2) - Watch event 'ENTRY_MODIFY' on '/usr/local/tomcat/hotswap-agent/sample-project-platform/target/classes/com/example/platformsample/HelloWorldWebScript.class' --> HelloWorldWebScript.class
|
||||||
HOTSWAP AGENT: 14:10:30.319 DEBUG (org.hotswap.agent.command.impl.SchedulerImpl) - Executing pluginManager.hotswap([class com.example.platformsample.HelloWorldWebScript])
|
HOTSWAP AGENT: 14:10:30.319 DEBUG (org.hotswap.agent.command.impl.SchedulerImpl) - Executing pluginManager.hotswap([class com.example.platformsample.HelloWorldWebScript])
|
||||||
HOTSWAP AGENT: 14:10:30.368 RELOAD (org.hotswap.agent.config.PluginManager) - Reloading classes [com.example.platformsample.HelloWorldWebScript] (autoHotswap)
|
HOTSWAP AGENT: 14:10:30.368 RELOAD (org.hotswap.agent.config.PluginManager) - Reloading classes [com.example.platformsample.HelloWorldWebScript] (autoHotswap)
|
||||||
HOTSWAP AGENT: 14:10:30.387 DEBUG (org.hotswap.agent.plugin.jdk.JdkPlugin) - Flushing com.example.platformsample.HelloWorldWebScript from introspector
|
HOTSWAP AGENT: 14:10:30.387 DEBUG (org.hotswap.agent.plugin.jdk.JdkPlugin) - Flushing com.example.platformsample.HelloWorldWebScript from introspector
|
||||||
|
@@ -42,7 +42,7 @@ _Note that a license is required. In this step you will be able to request a tri
|
|||||||

|

|
||||||
|
|
||||||
8. Select `Help > JRebel > Configuration > Projects` and select the checkbox to enable JRebel and the remote server support for required projects (the complete
|
8. Select `Help > JRebel > Configuration > Projects` and select the checkbox to enable JRebel and the remote server support for required projects (the complete
|
||||||
project in case of the Platform Jar archetype or the `PROJECT_ARTIFACT_ID-platform-jar` and `integration-tests` modules in case of the All-In-One archetype).
|
project in case of the Platform Jar archetype or the `PROJECT_ARTIFACT_ID-platform` and `PROJECT_ARTEFACTID-integration-tests` modules in case of the All-In-One archetype).
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
@@ -65,7 +65,7 @@ _Note that a license is required. In this step you will be able to request a tri
|
|||||||

|

|
||||||
|
|
||||||
8. Open the JRebel Panel and select the checkbox to enable JRebel and the remote server support for required projects (the complete project in case of the
|
8. Open the JRebel Panel and select the checkbox to enable JRebel and the remote server support for required projects (the complete project in case of the
|
||||||
Platform Jar archetype or the `PROJECT_ARTIFACT_ID-platform-jar` and `integration-tests` modules in case of the All-In-One archetype).
|
Platform Jar archetype or the `PROJECT_ARTIFACT_ID-platform` and `PROJECT_ARTEFACTID-integration-tests` modules in case of the All-In-One archetype).
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
@@ -67,7 +67,7 @@ module using the `maven-dependency-plugin`. The configuration is done in the fil
|
|||||||
</artifactItem>
|
</artifactItem>
|
||||||
<artifactItem>
|
<artifactItem>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>integration-tests</artifactId>
|
<artifactId>PROJECT_ARTEFACTID-integration-tests</artifactId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
<classifier>tests</classifier>
|
<classifier>tests</classifier>
|
||||||
<overWrite>false</overWrite>
|
<overWrite>false</overWrite>
|
||||||
@@ -149,7 +149,7 @@ the environment.
|
|||||||
|
|
||||||
This integration test verifies the existence of the `DemoComponent` component deployed in the Alfresco Content Services instance. You can find the definition
|
This integration test verifies the existence of the `DemoComponent` component deployed in the Alfresco Content Services instance. You can find the definition
|
||||||
of the `DemoComponent` as a custom component of a project created with the All-In-One archetype. For more details, see the class definition in
|
of the `DemoComponent` as a custom component of a project created with the All-In-One archetype. For more details, see the class definition in
|
||||||
`PROJECT_ARTEFACTID-platform-jar/src/main/java/com/example/platformsample/DemoComponent.java`.
|
`PROJECT_ARTEFACTID-platform/src/main/java/com/example/platformsample/DemoComponent.java`.
|
||||||
|
|
||||||
The integration test retrieves the `DemoComponent` bean from the Alfresco Content Services instance (see `testGetCompanyHome()`), and requests the Company
|
The integration test retrieves the `DemoComponent` bean from the Alfresco Content Services instance (see `testGetCompanyHome()`), and requests the Company
|
||||||
Home component. In addition, some Java assertions check if Company Home is identified correctly and has seven children stored in it.
|
Home component. In addition, some Java assertions check if Company Home is identified correctly and has seven children stored in it.
|
||||||
|
@@ -172,9 +172,9 @@ If everything has been configured correctly, you should see something similar to
|
|||||||
[INFO] Parameter: groupId, Value: com.acme
|
[INFO] Parameter: groupId, Value: com.acme
|
||||||
[INFO] Parameter: artifactId, Value: my-all-in-one
|
[INFO] Parameter: artifactId, Value: my-all-in-one
|
||||||
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
|
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
|
||||||
[INFO] Parent element not overwritten in /Users/Alfresco/my-all-in-one/my-all-in-one-platform-jar/pom.xml
|
[INFO] Parent element not overwritten in /Users/Alfresco/my-all-in-one/my-all-in-one-platform/pom.xml
|
||||||
[INFO] Parent element not overwritten in /Users/Alfresco/my-all-in-one/my-all-in-one-share-jar/pom.xml
|
[INFO] Parent element not overwritten in /Users/Alfresco/my-all-in-one/my-all-in-one-share/pom.xml
|
||||||
[INFO] Parent element not overwritten in /Users/Alfresco/my-all-in-one/integration-tests/pom.xml
|
[INFO] Parent element not overwritten in /Users/Alfresco/my-all-in-one/my-all-in-one-integration-tests/pom.xml
|
||||||
[INFO] Parent element not overwritten in /Users/Alfresco/my-all-in-one/my-all-in-one-platform-docker/pom.xml
|
[INFO] Parent element not overwritten in /Users/Alfresco/my-all-in-one/my-all-in-one-platform-docker/pom.xml
|
||||||
[INFO] Parent element not overwritten in /Users/Alfresco/my-all-in-one/my-all-in-one-share-docker/pom.xml
|
[INFO] Parent element not overwritten in /Users/Alfresco/my-all-in-one/my-all-in-one-share-docker/pom.xml
|
||||||
[INFO] Executing META-INF/archetype-post-generate.groovy post-generation script
|
[INFO] Executing META-INF/archetype-post-generate.groovy post-generation script
|
||||||
|
@@ -20,7 +20,7 @@ The ACS container is not starting properly and it is showing Java compatibility
|
|||||||
```
|
```
|
||||||
org.springframework.beans.factory.CannotLoadBeanClassException:
|
org.springframework.beans.factory.CannotLoadBeanClassException:
|
||||||
Error loading class [com.example.platformsample.Demo] for bean with name 'com.example.Demo' defined in class path resource
|
Error loading class [com.example.platformsample.Demo] for bean with name 'com.example.Demo' defined in class path resource
|
||||||
[alfresco/module/sample-project-platform-jar/context/service-context.xml]:
|
[alfresco/module/sample-project-platform/context/service-context.xml]:
|
||||||
problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError:
|
problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError:
|
||||||
com/example/platformsample/Demo has been compiled by a more recent version of the Java Runtime (class file version 55.0),
|
com/example/platformsample/Demo has been compiled by a more recent version of the Java Runtime (class file version 55.0),
|
||||||
this version of the Java Runtime only recognizes class file versions up to 52.0 (unable to load class [com.example.platformsample.Demo])
|
this version of the Java Runtime only recognizes class file versions up to 52.0 (unable to load class [com.example.platformsample.Demo])
|
||||||
|
@@ -20,7 +20,7 @@ my-all-in-one-project
|
|||||||
├── run.sh
|
├── run.sh
|
||||||
├── docker
|
├── docker
|
||||||
| └── docker-compose.yml
|
| └── docker-compose.yml
|
||||||
├── integration-tests
|
├── my-all-in-one-project-integration-tests
|
||||||
| ├── pom.xml
|
| ├── pom.xml
|
||||||
│ └── src
|
│ └── src
|
||||||
│ ├── main
|
│ ├── main
|
||||||
@@ -47,7 +47,7 @@ my-all-in-one-project
|
|||||||
│ ├── hotswap-agent.properties
|
│ ├── hotswap-agent.properties
|
||||||
│ └── license
|
│ └── license
|
||||||
│ └── README.md
|
│ └── README.md
|
||||||
├── my-all-in-one-project-platform-jar
|
├── my-all-in-one-project-platform
|
||||||
│ ├── pom.xml
|
│ ├── pom.xml
|
||||||
│ └── src
|
│ └── src
|
||||||
│ ├── main
|
│ ├── main
|
||||||
@@ -74,7 +74,7 @@ my-all-in-one-project
|
|||||||
│ │ │ │ ├── helloworld.get.html.ftl
|
│ │ │ │ ├── helloworld.get.html.ftl
|
||||||
│ │ │ │ └── helloworld.get.js
|
│ │ │ │ └── helloworld.get.js
|
||||||
│ │ │ └── module
|
│ │ │ └── module
|
||||||
│ │ │ └── my-all-in-one-project-platform-jar
|
│ │ │ └── my-all-in-one-project-platform
|
||||||
│ │ │ ├── alfresco-global.properties
|
│ │ │ ├── alfresco-global.properties
|
||||||
│ │ │ ├── context
|
│ │ │ ├── context
|
||||||
│ │ │ │ ├── bootstrap-context.xml
|
│ │ │ │ ├── bootstrap-context.xml
|
||||||
@@ -107,7 +107,7 @@ my-all-in-one-project
|
|||||||
│ ├── hotswap-agent.properties
|
│ ├── hotswap-agent.properties
|
||||||
│ ├── log4j.properties
|
│ ├── log4j.properties
|
||||||
│ └── share-config-custom.xml
|
│ └── share-config-custom.xml
|
||||||
└── my-all-in-one-project-share-jar
|
└── my-all-in-one-project-share
|
||||||
├── pom.xml
|
├── pom.xml
|
||||||
└── src
|
└── src
|
||||||
├── main
|
├── main
|
||||||
@@ -120,15 +120,15 @@ my-all-in-one-project
|
|||||||
│ │ └── com
|
│ │ └── com
|
||||||
│ ├── alfresco
|
│ ├── alfresco
|
||||||
│ │ ├── module
|
│ │ ├── module
|
||||||
│ │ │ └── my-all-in-one-project-share-jar
|
│ │ │ └── my-all-in-one-project-share
|
||||||
│ │ │ └── module.properties
|
│ │ │ └── module.properties
|
||||||
│ │ └── web-extension
|
│ │ └── web-extension
|
||||||
│ │ ├── messages
|
│ │ ├── messages
|
||||||
│ │ │ └── my-all-in-one-project-share-jar.properties
|
│ │ │ └── my-all-in-one-project-share.properties
|
||||||
│ │ ├── my-all-in-one-project-share-jar-slingshot-application-context.xml
|
│ │ ├── my-all-in-one-project-share-slingshot-application-context.xml
|
||||||
│ │ ├── site-data
|
│ │ ├── site-data
|
||||||
│ │ │ └── extensions
|
│ │ │ └── extensions
|
||||||
│ │ │ └── my-all-in-one-project-share-jar-example-widgets.xml
|
│ │ │ └── my-all-in-one-project-share-example-widgets.xml
|
||||||
│ │ └── site-webscripts
|
│ │ └── site-webscripts
|
||||||
│ │ ├── com
|
│ │ ├── com
|
||||||
│ │ │ └── example
|
│ │ │ └── example
|
||||||
@@ -141,7 +141,7 @@ my-all-in-one-project
|
|||||||
│ │ └── README.md
|
│ │ └── README.md
|
||||||
│ └── META-INF
|
│ └── META-INF
|
||||||
│ ├── resources
|
│ ├── resources
|
||||||
│ │ └── my-all-in-one-project-share-jar
|
│ │ └── my-all-in-one-project-share
|
||||||
│ │ └── js
|
│ │ └── js
|
||||||
│ │ └── tutorials
|
│ │ └── tutorials
|
||||||
│ │ └── widgets
|
│ │ └── widgets
|
||||||
@@ -165,14 +165,14 @@ From a high level standpoint, we can describe the content of the project as foll
|
|||||||
hosting service like GitHub, SVN, CVS, etc.
|
hosting service like GitHub, SVN, CVS, etc.
|
||||||
* The files stored into the root of the project are mainly related to actions and commands (running, debugging, etc.), technical configuration (`pom.xml`),
|
* The files stored into the root of the project are mainly related to actions and commands (running, debugging, etc.), technical configuration (`pom.xml`),
|
||||||
and documentation (`README.md`).
|
and documentation (`README.md`).
|
||||||
* `integration-tests` contains a sub-project entirely dedicated to integration tests.
|
* `my-all-in-one-project-integration-tests` (typically named `<artefactId-integration-tests>`) contains a sub-project entirely dedicated to integration tests.
|
||||||
* `my-all-in-one-project-platform-docker` (typically named `<artefactId-platform-docker>`) contains a sub-project dedicated to the configuration of a custom
|
* `my-all-in-one-project-platform-docker` (typically named `<artefactId-platform-docker>`) contains a sub-project dedicated to the configuration of a custom
|
||||||
Docker image with the Alfresco Content Services Repository and the customization module `my-all-in-one-project-platform-jar` installed.
|
Docker image with the Alfresco Content Services Repository and the customization module `my-all-in-one-project-platform` installed.
|
||||||
* `my-all-in-one-project-platform-jar` (typically named `<artefactId-platform-jar>`) contains a sub-project entirely dedicated to the customization of the
|
* `my-all-in-one-project-platform` (typically named `<artefactId-platform>`) contains a sub-project entirely dedicated to the customization of the
|
||||||
Alfresco Content Services Repository.
|
Alfresco Content Services Repository.
|
||||||
* `my-all-in-one-project-share-docker` (typically named `<artefactId-share-docker>`) contains a sub-project dedicated to the configuration of a custom
|
* `my-all-in-one-project-share-docker` (typically named `<artefactId-share-docker>`) contains a sub-project dedicated to the configuration of a custom
|
||||||
Docker image with the Alfresco Share client and the customization module `my-all-in-one-project-share-jar` installed.
|
Docker image with the Alfresco Share client and the customization module `my-all-in-one-project-share` installed.
|
||||||
* `my-all-in-one-project-share-jar` (typically named `<artefactId-share-jar>`) contains a sub-project entirely dedicated to the customization of the
|
* `my-all-in-one-project-share` (typically named `<artefactId-share>`) contains a sub-project entirely dedicated to the customization of the
|
||||||
Alfresco Share client.
|
Alfresco Share client.
|
||||||
|
|
||||||
After this brief introduction of the All-In-One project, let’s focus on the content of the folders.
|
After this brief introduction of the All-In-One project, let’s focus on the content of the folders.
|
||||||
@@ -187,9 +187,9 @@ File | Description
|
|||||||
`pom.xml` | This XML file contains information about the project and configuration details used by Apache Maven to build the project. You can define all the configurations, parameters, and settings in this file for projects as well as for sub-projects.
|
`pom.xml` | This XML file contains information about the project and configuration details used by Apache Maven to build the project. You can define all the configurations, parameters, and settings in this file for projects as well as for sub-projects.
|
||||||
`README.md` | File in Markdown format containing the documentation for the project.
|
`README.md` | File in Markdown format containing the documentation for the project.
|
||||||
|
|
||||||
## my-all-in-one-project-platform-jar
|
## my-all-in-one-project-platform
|
||||||
|
|
||||||
Below is a description of the content in the `my-all-in-one-project-platform-jar` (typically named `<artefactId-platform-jar>`) sub-project. This sub-project
|
Below is a description of the content in the `my-all-in-one-project-platform` (typically named `<artefactId-platform>`) sub-project. This sub-project
|
||||||
contains the source code entirely dedicated to the customizing the Alfresco Content Services Repository.
|
contains the source code entirely dedicated to the customizing the Alfresco Content Services Repository.
|
||||||
|
|
||||||
Content | Description
|
Content | Description
|
||||||
@@ -206,18 +206,18 @@ Content | Description
|
|||||||
|
|
||||||
Below is a description of the content in the `my-all-in-one-project-platform-docker` (typically named `<artefactId-platform-docker>`) sub-project. This
|
Below is a description of the content in the `my-all-in-one-project-platform-docker` (typically named `<artefactId-platform-docker>`) sub-project. This
|
||||||
sub-project contains the resources required to define a custom Docker image with the Alfresco Content Services Repository and the customization module
|
sub-project contains the resources required to define a custom Docker image with the Alfresco Content Services Repository and the customization module
|
||||||
`my-all-in-one-project-platform-jar` installed.
|
`my-all-in-one-project-platform` installed.
|
||||||
|
|
||||||
Content | Description
|
Content | Description
|
||||||
--- | ---
|
--- | ---
|
||||||
`pom.xml` | This XML file contains information about the project and configuration details used by Apache Maven to build the project. It adds the dependency to the `my-all-in-one-project-platform-jar` module and configures the `maven-dependency-plugin` to copy all the artifacts required in the Docker image into the folder `${project.build.directory}/extensions`.
|
`pom.xml` | This XML file contains information about the project and configuration details used by Apache Maven to build the project. It adds the dependency to the `my-all-in-one-project-platform` module and configures the `maven-dependency-plugin` to copy all the artifacts required in the Docker image into the folder `${project.build.directory}/extensions`.
|
||||||
`src/main/docker` | In this folder you can find everything that's needed to fully configure the custom ACS Docker image.
|
`src/main/docker` | In this folder you can find everything that's needed to fully configure the custom ACS Docker image.
|
||||||
`src/main/docker/Dockerfile` | This is the file that define the custom ACS Docker image. The default configuration installs all the existing JARs and AMPs under `${project.build.directory}/extensions` folder and adds custom configuration and license files.
|
`src/main/docker/Dockerfile` | This is the file that define the custom ACS Docker image. The default configuration installs all the existing JARs and AMPs under `${project.build.directory}/extensions` folder and adds custom configuration and license files.
|
||||||
`src/main/docker/license` | This folder contains the licenses required for running an Enterprise project.
|
`src/main/docker/license` | This folder contains the licenses required for running an Enterprise project.
|
||||||
|
|
||||||
## my-all-in-one-project-share-jar
|
## my-all-in-one-project-share
|
||||||
|
|
||||||
Below is a description of the content in the `my-all-in-one-project-share-jar` (typically named `<artefactId-share-jar>`) sub-project. This sub-project
|
Below is a description of the content in the `my-all-in-one-project-share` (typically named `<artefactId-share>`) sub-project. This sub-project
|
||||||
contains the source code entirely dedicated to the customizing the Alfresco Share client.
|
contains the source code entirely dedicated to the customizing the Alfresco Share client.
|
||||||
|
|
||||||
Content | Description
|
Content | Description
|
||||||
@@ -235,17 +235,17 @@ Content | Description
|
|||||||
|
|
||||||
Below is a description of the content in the `my-all-in-one-project-share-docker` (typically named `<artefactId-share-docker>`) sub-project. This
|
Below is a description of the content in the `my-all-in-one-project-share-docker` (typically named `<artefactId-share-docker>`) sub-project. This
|
||||||
sub-project contains the resources required to define a custom Docker image with the Alfresco Share Client and the customization module
|
sub-project contains the resources required to define a custom Docker image with the Alfresco Share Client and the customization module
|
||||||
`my-all-in-one-project-share-jar` installed.
|
`my-all-in-one-project-share` installed.
|
||||||
|
|
||||||
Content | Description
|
Content | Description
|
||||||
--- | ---
|
--- | ---
|
||||||
`pom.xml` | This XML file contains information about the project and configuration details used by Apache Maven to build the project. It adds the dependency to the `my-all-in-one-project-share-jar` module and configures the `maven-dependency-plugin` to copy all the artifacts required in the Docker image into the folder `${project.build.directory}/extensions`.
|
`pom.xml` | This XML file contains information about the project and configuration details used by Apache Maven to build the project. It adds the dependency to the `my-all-in-one-project-share` module and configures the `maven-dependency-plugin` to copy all the artifacts required in the Docker image into the folder `${project.build.directory}/extensions`.
|
||||||
`src/main/docker` | In this folder you can find everything that's needed to fully configure the custom Alfresco Share Docker image.
|
`src/main/docker` | In this folder you can find everything that's needed to fully configure the custom Alfresco Share Docker image.
|
||||||
`src/main/docker/Dockerfile` | This is the file that define the custom Alfresco Share Docker image. The default configuration installs all the existing JARs and AMPs under `${project.build.directory}/extensions` folder and adds custom configuration files.
|
`src/main/docker/Dockerfile` | This is the file that define the custom Alfresco Share Docker image. The default configuration installs all the existing JARs and AMPs under `${project.build.directory}/extensions` folder and adds custom configuration files.
|
||||||
|
|
||||||
## integration-tests
|
## my-all-in-one-project-integration-tests
|
||||||
|
|
||||||
Below is a description of the content in the `integration-tests` sub-project. This sub-project contains all the source code and resources needed to run the integration tests.
|
Below is a description of the content in the `my-all-in-one-project-integration-tests` (typically named `<artefactId-integration-tests>`) sub-project. This sub-project contains all the source code and resources needed to run the integration tests.
|
||||||
|
|
||||||
Content | Description
|
Content | Description
|
||||||
--- | ---
|
--- | ---
|
||||||
|
Reference in New Issue
Block a user