mirror of
https://github.com/Alfresco/alfresco-transform-core.git
synced 2025-05-12 17:04:48 +00:00
Merge branch 'master' into ATS-460
This commit is contained in:
commit
1ae2dd745a
@ -45,10 +45,27 @@
|
|||||||
</exclusion>
|
</exclusion>
|
||||||
</exclusions>
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-core</artifactId>
|
<artifactId>alfresco-core</artifactId>
|
||||||
|
<!--
|
||||||
|
TODO temp workaround for ATS-481 / REPO-4514 (exclude: dom4j.dom4j 1.6.1 / include org.dom4j.dom4j 2.1.1)
|
||||||
|
TODO remove this workaround once transitive dependencies have been fixed (surf-core-configservice -> alfresco-core)
|
||||||
|
-->
|
||||||
|
<exclusions>
|
||||||
|
<exclusion>
|
||||||
|
<groupId>dom4j</groupId>
|
||||||
|
<artifactId>dom4j</artifactId>
|
||||||
|
</exclusion>
|
||||||
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.dom4j</groupId>
|
||||||
|
<artifactId>dom4j</artifactId>
|
||||||
|
<version>2.1.1</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
@ -45,10 +45,27 @@
|
|||||||
</exclusion>
|
</exclusion>
|
||||||
</exclusions>
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-core</artifactId>
|
<artifactId>alfresco-core</artifactId>
|
||||||
|
<!--
|
||||||
|
TODO temp workaround for ATS-481 / REPO-4514 (exclude: dom4j.dom4j 1.6.1 / include org.dom4j.dom4j 2.1.1)
|
||||||
|
TODO remove this workaround once transitive dependencies have been fixed (surf-core-configservice -> alfresco-core)
|
||||||
|
-->
|
||||||
|
<exclusions>
|
||||||
|
<exclusion>
|
||||||
|
<groupId>dom4j</groupId>
|
||||||
|
<artifactId>dom4j</artifactId>
|
||||||
|
</exclusion>
|
||||||
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.dom4j</groupId>
|
||||||
|
<artifactId>dom4j</artifactId>
|
||||||
|
<version>2.1.1</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
@ -45,10 +45,27 @@
|
|||||||
</exclusion>
|
</exclusion>
|
||||||
</exclusions>
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-core</artifactId>
|
<artifactId>alfresco-core</artifactId>
|
||||||
|
<!--
|
||||||
|
TODO temp workaround for ATS-481 / REPO-4514 (exclude: dom4j.dom4j 1.6.1 / include org.dom4j.dom4j 2.1.1)
|
||||||
|
TODO remove this workaround once transitive dependencies have been fixed (surf-core-configservice -> alfresco-core)
|
||||||
|
-->
|
||||||
|
<exclusions>
|
||||||
|
<exclusion>
|
||||||
|
<groupId>dom4j</groupId>
|
||||||
|
<artifactId>dom4j</artifactId>
|
||||||
|
</exclusion>
|
||||||
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.dom4j</groupId>
|
||||||
|
<artifactId>dom4j</artifactId>
|
||||||
|
<version>2.1.1</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-jodconverter-core</artifactId>
|
<artifactId>alfresco-jodconverter-core</artifactId>
|
||||||
|
@ -46,10 +46,27 @@
|
|||||||
</exclusion>
|
</exclusion>
|
||||||
</exclusions>
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-core</artifactId>
|
<artifactId>alfresco-core</artifactId>
|
||||||
|
<!--
|
||||||
|
TODO temp workaround for ATS-481 / REPO-4514 (exclude: dom4j.dom4j 1.6.1 / include org.dom4j.dom4j 2.1.1)
|
||||||
|
TODO remove this workaround once transitive dependencies have been fixed (surf-core-configservice -> alfresco-core)
|
||||||
|
-->
|
||||||
|
<exclusions>
|
||||||
|
<exclusion>
|
||||||
|
<groupId>dom4j</groupId>
|
||||||
|
<artifactId>dom4j</artifactId>
|
||||||
|
</exclusion>
|
||||||
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.dom4j</groupId>
|
||||||
|
<artifactId>dom4j</artifactId>
|
||||||
|
<version>2.1.1</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-data-model</artifactId>
|
<artifactId>alfresco-data-model</artifactId>
|
||||||
|
@ -47,9 +47,25 @@
|
|||||||
</exclusion>
|
</exclusion>
|
||||||
</exclusions>
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-core</artifactId>
|
<artifactId>alfresco-core</artifactId>
|
||||||
|
<!--
|
||||||
|
TODO temp workaround for ATS-481 / REPO-4514 (exclude: dom4j.dom4j 1.6.1 / include org.dom4j.dom4j 2.1.1)
|
||||||
|
TODO remove this workaround once transitive dependencies have been fixed (surf-core-configservice -> alfresco-core)
|
||||||
|
-->
|
||||||
|
<exclusions>
|
||||||
|
<exclusion>
|
||||||
|
<groupId>dom4j</groupId>
|
||||||
|
<artifactId>dom4j</artifactId>
|
||||||
|
</exclusion>
|
||||||
|
</exclusions>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.dom4j</groupId>
|
||||||
|
<artifactId>dom4j</artifactId>
|
||||||
|
<version>2.1.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- HtmlParserContentTransformer -->
|
<!-- HtmlParserContentTransformer -->
|
||||||
|
@ -39,10 +39,27 @@
|
|||||||
</exclusion>
|
</exclusion>
|
||||||
</exclusions>
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-core</artifactId>
|
<artifactId>alfresco-core</artifactId>
|
||||||
|
<!--
|
||||||
|
TODO temp workaround for ATS-481 / REPO-4514 (exclude: dom4j.dom4j 1.6.1 / include org.dom4j.dom4j 2.1.1)
|
||||||
|
TODO remove this workaround once transitive dependencies have been fixed (surf-core-configservice -> alfresco-core)
|
||||||
|
-->
|
||||||
|
<exclusions>
|
||||||
|
<exclusion>
|
||||||
|
<groupId>dom4j</groupId>
|
||||||
|
<artifactId>dom4j</artifactId>
|
||||||
|
</exclusion>
|
||||||
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.dom4j</groupId>
|
||||||
|
<artifactId>dom4j</artifactId>
|
||||||
|
<version>2.1.1</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-transform-model</artifactId>
|
<artifactId>alfresco-transform-model</artifactId>
|
||||||
|
@ -34,6 +34,7 @@ import org.apache.activemq.command.ActiveMQQueue;
|
|||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
import org.springframework.jms.annotation.JmsListenerConfigurer;
|
import org.springframework.jms.annotation.JmsListenerConfigurer;
|
||||||
@ -52,6 +53,7 @@ import org.springframework.transaction.PlatformTransactionManager;
|
|||||||
* created on 18/12/2018
|
* created on 18/12/2018
|
||||||
*/
|
*/
|
||||||
@Configuration
|
@Configuration
|
||||||
|
@ConditionalOnProperty(name = "activemq.url")
|
||||||
public class MessagingConfig implements JmsListenerConfigurer
|
public class MessagingConfig implements JmsListenerConfigurer
|
||||||
{
|
{
|
||||||
private static final Logger logger = LoggerFactory.getLogger(MessagingConfig.class);
|
private static final Logger logger = LoggerFactory.getLogger(MessagingConfig.class);
|
||||||
@ -63,6 +65,7 @@ public class MessagingConfig implements JmsListenerConfigurer
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
|
@ConditionalOnProperty(name = "activemq.url")
|
||||||
public DefaultMessageHandlerMethodFactory methodFactory()
|
public DefaultMessageHandlerMethodFactory methodFactory()
|
||||||
{
|
{
|
||||||
DefaultMessageHandlerMethodFactory factory = new DefaultMessageHandlerMethodFactory();
|
DefaultMessageHandlerMethodFactory factory = new DefaultMessageHandlerMethodFactory();
|
||||||
@ -71,6 +74,7 @@ public class MessagingConfig implements JmsListenerConfigurer
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
|
@ConditionalOnProperty(name = "activemq.url")
|
||||||
public DefaultJmsListenerContainerFactory jmsListenerContainerFactory(
|
public DefaultJmsListenerContainerFactory jmsListenerContainerFactory(
|
||||||
final ConnectionFactory connectionFactory,
|
final ConnectionFactory connectionFactory,
|
||||||
final TransformMessageConverter transformMessageConverter)
|
final TransformMessageConverter transformMessageConverter)
|
||||||
@ -84,6 +88,7 @@ public class MessagingConfig implements JmsListenerConfigurer
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
|
@ConditionalOnProperty(name = "activemq.url")
|
||||||
public PlatformTransactionManager transactionManager(final ConnectionFactory connectionFactory)
|
public PlatformTransactionManager transactionManager(final ConnectionFactory connectionFactory)
|
||||||
{
|
{
|
||||||
final JmsTransactionManager transactionManager = new JmsTransactionManager();
|
final JmsTransactionManager transactionManager = new JmsTransactionManager();
|
||||||
@ -92,6 +97,7 @@ public class MessagingConfig implements JmsListenerConfigurer
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
|
@ConditionalOnProperty(name = "activemq.url")
|
||||||
public Queue engineRequestQueue(@Value("${queue.engineRequestQueue}") String engineRequestQueueValue)
|
public Queue engineRequestQueue(@Value("${queue.engineRequestQueue}") String engineRequestQueueValue)
|
||||||
{
|
{
|
||||||
return new ActiveMQQueue(engineRequestQueueValue);
|
return new ActiveMQQueue(engineRequestQueueValue);
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
spring:
|
spring:
|
||||||
servlet:
|
servlet:
|
||||||
multipart:
|
multipart:
|
||||||
@ -18,7 +19,7 @@ server:
|
|||||||
|
|
||||||
logging:
|
logging:
|
||||||
level:
|
level:
|
||||||
#org.alfresco.util.exec.RuntimeExec: debug
|
# org.alfresco.util.exec.RuntimeExec: debug
|
||||||
org.alfresco.transformer.LibreOfficeController: debug
|
org.alfresco.transformer.LibreOfficeController: debug
|
||||||
org.alfresco.transformer.JodConverterSharedInstance: debug
|
org.alfresco.transformer.JodConverterSharedInstance: debug
|
||||||
org.alfresco.transformer.AlfrescoPdfRendererController: debug
|
org.alfresco.transformer.AlfrescoPdfRendererController: debug
|
||||||
@ -36,9 +37,9 @@ management:
|
|||||||
web:
|
web:
|
||||||
exposure:
|
exposure:
|
||||||
include:
|
include:
|
||||||
- metrics
|
- metrics
|
||||||
- prometheus
|
- prometheus
|
||||||
- health
|
- health
|
||||||
metrics:
|
metrics:
|
||||||
enable[http]: false
|
enable[http]: false
|
||||||
enable[logback]: false
|
enable[logback]: false
|
||||||
@ -46,4 +47,4 @@ management:
|
|||||||
enable[jvm.classes]: false
|
enable[jvm.classes]: false
|
||||||
|
|
||||||
container:
|
container:
|
||||||
name: ${HOSTNAME:t-engine}
|
name: ${HOSTNAME:t-engine}
|
||||||
|
17
pom.xml
17
pom.xml
@ -46,12 +46,29 @@
|
|||||||
</scm>
|
</scm>
|
||||||
|
|
||||||
<dependencyManagement>
|
<dependencyManagement>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-core</artifactId>
|
<artifactId>alfresco-core</artifactId>
|
||||||
<version>${dependency.alfresco-core.version}</version>
|
<version>${dependency.alfresco-core.version}</version>
|
||||||
|
<!--
|
||||||
|
TODO temp workaround for ATS-481 / REPO-4514 (exclude: dom4j.dom4j 1.6.1 / include org.dom4j.dom4j 2.1.1)
|
||||||
|
TODO remove this workaround once transitive dependencies have been fixed (surf-core-configservice -> alfresco-core)
|
||||||
|
-->
|
||||||
|
<exclusions>
|
||||||
|
<exclusion>
|
||||||
|
<groupId>dom4j</groupId>
|
||||||
|
<artifactId>dom4j</artifactId>
|
||||||
|
</exclusion>
|
||||||
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.dom4j</groupId>
|
||||||
|
<artifactId>dom4j</artifactId>
|
||||||
|
<version>2.1.1</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-data-model</artifactId>
|
<artifactId>alfresco-data-model</artifactId>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user