Skip to content

Instantly share code, notes, and snippets.

@imod
Last active September 4, 2019 04:54
Show Gist options
  • Save imod/b7998965c31c4dd850999613c5db8460 to your computer and use it in GitHub Desktop.
Save imod/b7998965c31c4dd850999613c5db8460 to your computer and use it in GitHub Desktop.
failing example of a custom Spring Cloud Dataflow Server
[INFO] Scanning for projects...
[INFO]
[INFO] -------------------------< ch.jobtool:scdf-2 >--------------------------
[INFO] Building scdf-2 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:3.1.1:tree (default-cli) @ scdf-2 ---
[INFO] ch.jobtool:scdf-2:jar:0.0.1-SNAPSHOT
[INFO] +- org.springframework.cloud:spring-cloud-starter-config:jar:2.2.0.M2:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter:jar:2.2.0.M2:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-context:jar:2.2.0.M2:compile
[INFO] | | | \- org.springframework.security:spring-security-crypto:jar:5.1.6.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-commons:jar:2.2.0.M2:compile
[INFO] | | \- org.springframework.security:spring-security-rsa:jar:1.0.7.RELEASE:compile
[INFO] | | \- org.bouncycastle:bcpkix-jdk15on:jar:1.60:compile
[INFO] | | \- org.bouncycastle:bcprov-jdk15on:jar:1.60:compile
[INFO] | +- org.springframework.cloud:spring-cloud-config-client:jar:2.2.0.M2:compile
[INFO] | | +- org.springframework.boot:spring-boot-autoconfigure:jar:2.1.7.RELEASE:compile
[INFO] | | +- org.springframework:spring-web:jar:5.1.9.RELEASE:compile
[INFO] | | | \- org.springframework:spring-beans:jar:5.1.9.RELEASE:compile
[INFO] | | \- com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-databind:jar:2.9.9:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-core:jar:2.9.9:compile
[INFO] +- org.springframework.cloud:spring-cloud-starter-dataflow-server:jar:2.2.2.BUILD-SNAPSHOT:compile
[INFO] | +- org.springframework.cloud:spring-cloud-deployer-local:jar:2.0.5.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-deployer-resource-maven:jar:2.0.4.RELEASE:compile
[INFO] | | | +- org.apache.maven:maven-model-builder:jar:3.5.4:compile
[INFO] | | | | +- org.codehaus.plexus:plexus-utils:jar:3.1.0:compile
[INFO] | | | | +- org.codehaus.plexus:plexus-interpolation:jar:1.24:compile
[INFO] | | | | +- org.codehaus.plexus:plexus-component-annotations:jar:1.7.1:compile
[INFO] | | | | +- org.apache.maven:maven-model:jar:3.5.4:compile
[INFO] | | | | +- org.apache.maven:maven-artifact:jar:3.5.4:compile
[INFO] | | | | +- org.apache.maven:maven-builder-support:jar:3.5.4:compile
[INFO] | | | | \- com.google.guava:guava:jar:20.0:compile
[INFO] | | | +- org.apache.maven:maven-resolver-provider:jar:3.5.4:compile
[INFO] | | | | +- org.apache.maven:maven-repository-metadata:jar:3.5.4:compile
[INFO] | | | | +- org.apache.maven.resolver:maven-resolver-api:jar:1.1.1:compile
[INFO] | | | | +- org.apache.maven.resolver:maven-resolver-spi:jar:1.1.1:compile
[INFO] | | | | +- org.apache.maven.resolver:maven-resolver-util:jar:1.1.1:compile
[INFO] | | | | \- javax.inject:javax.inject:jar:1:compile
[INFO] | | | +- org.apache.maven.resolver:maven-resolver-connector-basic:jar:1.1.1:compile
[INFO] | | | +- org.apache.maven.resolver:maven-resolver-transport-file:jar:1.1.1:compile
[INFO] | | | +- org.apache.maven.resolver:maven-resolver-transport-http:jar:1.1.1:compile
[INFO] | | | | \- org.apache.httpcomponents:httpcore:jar:4.4.11:compile
[INFO] | | | \- org.apache.maven.resolver:maven-resolver-impl:jar:1.1.1:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-deployer-resource-docker:jar:2.0.4.RELEASE:compile
[INFO] | | \- org.hibernate.validator:hibernate-validator-annotation-processor:jar:6.0.17.Final:compile
[INFO] | +- org.springframework.cloud:spring-cloud-dataflow-server-core:jar:2.2.2.BUILD-SNAPSHOT:compile
[INFO] | | +- com.zaxxer:HikariCP:jar:3.2.0:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-data-jpa:jar:2.1.7.RELEASE:compile
[INFO] | | | +- org.springframework.boot:spring-boot-starter-aop:jar:2.1.7.RELEASE:compile
[INFO] | | | | \- org.aspectj:aspectjweaver:jar:1.9.4:compile
[INFO] | | | +- javax.transaction:javax.transaction-api:jar:1.3:compile
[INFO] | | | +- org.hibernate:hibernate-core:jar:5.3.10.Final:compile
[INFO] | | | | +- javax.persistence:javax.persistence-api:jar:2.2:compile
[INFO] | | | | +- org.javassist:javassist:jar:3.23.2-GA:compile
[INFO] | | | | +- antlr:antlr:jar:2.7.7:compile
[INFO] | | | | +- org.jboss:jandex:jar:2.0.5.Final:compile
[INFO] | | | | +- org.dom4j:dom4j:jar:2.1.1:compile
[INFO] | | | | \- org.hibernate.common:hibernate-commons-annotations:jar:5.0.4.Final:compile
[INFO] | | | +- org.springframework.data:spring-data-jpa:jar:2.1.10.RELEASE:compile
[INFO] | | | | +- org.springframework:spring-orm:jar:5.1.9.RELEASE:compile
[INFO] | | | | \- org.springframework:spring-tx:jar:5.1.9.RELEASE:compile
[INFO] | | | \- org.springframework:spring-aspects:jar:5.1.9.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-dataflow-configuration-metadata:jar:2.2.2.BUILD-SNAPSHOT:compile
[INFO] | | | +- org.springframework.boot:spring-boot-loader:jar:2.1.7.RELEASE:compile
[INFO] | | | \- org.springframework.boot:spring-boot-configuration-metadata:jar:2.1.7.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-dataflow-completion:jar:2.2.2.BUILD-SNAPSHOT:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-dataflow-core:jar:2.2.2.BUILD-SNAPSHOT:compile
[INFO] | | | +- org.springframework.cloud:spring-cloud-dataflow-core-dsl:jar:2.2.2.BUILD-SNAPSHOT:compile
[INFO] | | | +- org.springframework.data:spring-data-keyvalue:jar:2.1.10.RELEASE:compile
[INFO] | | | +- commons-lang:commons-lang:jar:2.4:compile
[INFO] | | | \- javax.validation:validation-api:jar:2.0.1.Final:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-dataflow-rest-resource:jar:2.2.2.BUILD-SNAPSHOT:compile
[INFO] | | | +- org.springframework.batch:spring-batch-core:jar:4.1.2.RELEASE:compile
[INFO] | | | | +- javax.batch:javax.batch-api:jar:1.0:compile
[INFO] | | | | \- org.codehaus.jettison:jettison:jar:1.2:compile
[INFO] | | | +- org.apache.httpcomponents:httpclient:jar:4.5.9:compile
[INFO] | | | | \- commons-codec:commons-codec:jar:1.11:compile
[INFO] | | | +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.9.9:compile
[INFO] | | | \- commons-io:commons-io:jar:2.4:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-dataflow-registry:jar:2.2.2.BUILD-SNAPSHOT:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-scheduler-spi:jar:2.0.0.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-web:jar:2.1.7.RELEASE:compile
[INFO] | | | +- org.springframework.boot:spring-boot-starter-json:jar:2.1.7.RELEASE:compile
[INFO] | | | | \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.9.9:compile
[INFO] | | | +- org.springframework.boot:spring-boot-starter-tomcat:jar:2.1.7.RELEASE:compile
[INFO] | | | | +- org.apache.tomcat.embed:tomcat-embed-core:jar:9.0.22:compile
[INFO] | | | | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:9.0.22:compile
[INFO] | | | \- org.springframework:spring-webmvc:jar:5.1.9.RELEASE:compile
[INFO] | | | \- org.springframework:spring-expression:jar:5.1.9.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-starter-common-security-config-web:jar:1.1.3.RELEASE:compile
[INFO] | | | \- org.springframework.cloud:spring-cloud-common-security-config-web:jar:1.1.3.RELEASE:compile
[INFO] | | | +- org.springframework.boot:spring-boot-starter-security:jar:2.1.7.RELEASE:compile
[INFO] | | | | +- org.springframework.security:spring-security-config:jar:5.1.6.RELEASE:compile
[INFO] | | | | \- org.springframework.security:spring-security-web:jar:5.1.6.RELEASE:compile
[INFO] | | | +- org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:jar:2.1.2.RELEASE:compile
[INFO] | | | | +- com.sun.xml.bind:jaxb-core:jar:2.3.0.1:compile
[INFO] | | | | +- com.sun.xml.bind:jaxb-impl:jar:2.3.0.1:compile
[INFO] | | | | \- org.springframework.security:spring-security-jwt:jar:1.0.9.RELEASE:compile
[INFO] | | | \- org.springframework.session:spring-session-core:jar:2.1.8.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-dataflow-ui:jar:2.2.2.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-actuator:jar:2.1.7.RELEASE:compile
[INFO] | | | +- org.springframework.boot:spring-boot-actuator-autoconfigure:jar:2.1.7.RELEASE:compile
[INFO] | | | | \- org.springframework.boot:spring-boot-actuator:jar:2.1.7.RELEASE:compile
[INFO] | | | \- io.micrometer:micrometer-core:jar:1.1.5:compile
[INFO] | | | +- org.hdrhistogram:HdrHistogram:jar:2.1.9:compile
[INFO] | | | \- org.latencyutils:LatencyUtils:jar:2.0.3:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-logging:jar:2.1.7.RELEASE:compile
[INFO] | | | +- ch.qos.logback:logback-classic:jar:1.2.3:compile
[INFO] | | | | \- ch.qos.logback:logback-core:jar:1.2.3:compile
[INFO] | | | \- org.apache.logging.log4j:log4j-to-slf4j:jar:2.11.2:compile
[INFO] | | | \- org.apache.logging.log4j:log4j-api:jar:2.11.2:compile
[INFO] | | +- org.springframework.hateoas:spring-hateoas:jar:0.25.2.RELEASE:compile
[INFO] | | | +- org.springframework:spring-aop:jar:5.1.9.RELEASE:compile
[INFO] | | | \- org.springframework:spring-context:jar:5.1.9.RELEASE:compile
[INFO] | | +- org.springframework.data:spring-data-commons:jar:2.1.10.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-jdbc:jar:2.1.7.RELEASE:compile
[INFO] | | | \- org.springframework:spring-jdbc:jar:5.1.9.RELEASE:compile
[INFO] | | +- org.springframework.plugin:spring-plugin-core:jar:1.2.0.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-task-core:jar:2.2.0.M2:compile
[INFO] | | | +- org.springframework.cloud:spring-cloud-deployer-autoconfigure:jar:2.0.3.RELEASE:compile
[INFO] | | | \- org.springframework.batch:spring-batch-infrastructure:jar:4.1.2.RELEASE:compile
[INFO] | | +- com.h2database:h2:jar:1.4.199:compile
[INFO] | | +- org.mariadb.jdbc:mariadb-java-client:jar:2.3.0:compile
[INFO] | | +- org.postgresql:postgresql:jar:42.2.6:compile
[INFO] | | +- com.microsoft.sqlserver:mssql-jdbc:jar:6.4.0.jre8:runtime
[INFO] | | +- org.springframework.cloud:spring-cloud-skipper-client:jar:2.1.2.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-skipper:jar:2.1.2.RELEASE:compile
[INFO] | | | +- org.hibernate.javax.persistence:hibernate-jpa-2.1-api:jar:1.0.0.Final:compile
[INFO] | | | +- org.zeroturnaround:zt-zip:jar:1.13:compile
[INFO] | | | \- org.apache.commons:commons-lang3:jar:3.8.1:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-dataflow-audit:jar:2.2.2.BUILD-SNAPSHOT:compile
[INFO] | | \- org.flywaydb:flyway-core:jar:5.2.4:compile
[INFO] | +- org.springframework.cloud:spring-cloud-dataflow-autoconfigure:jar:2.2.2.BUILD-SNAPSHOT:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-dataflow-platform-kubernetes:jar:2.2.2.BUILD-SNAPSHOT:compile
[INFO] | | | +- org.springframework.cloud:spring-cloud-deployer-kubernetes:jar:2.0.5.RELEASE:compile
[INFO] | | | | \- org.hashids:hashids:jar:1.0.1:compile
[INFO] | | | +- org.springframework.cloud:spring-cloud-scheduler-kubernetes:jar:2.0.0.RELEASE:compile
[INFO] | | | \- org.springframework.cloud:spring-cloud-starter-kubernetes-config:jar:1.1.0.M2:compile
[INFO] | | | +- org.springframework.cloud:spring-cloud-kubernetes-core:jar:1.1.0.M2:compile
[INFO] | | | \- org.springframework.cloud:spring-cloud-kubernetes-config:jar:1.1.0.M2:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-dataflow-platform-cloudfoundry:jar:2.2.2.BUILD-SNAPSHOT:compile
[INFO] | | | +- org.springframework.cloud:spring-cloud-scheduler-cloudfoundry:jar:2.0.0.RELEASE:compile
[INFO] | | | +- io.pivotal.cfenv:java-cfenv-boot:jar:1.1.1.RELEASE:compile
[INFO] | | | | \- io.pivotal.cfenv:java-cfenv-jdbc:jar:1.1.1.RELEASE:compile
[INFO] | | | | \- io.pivotal.cfenv:java-cfenv:jar:1.1.1.RELEASE:compile
[INFO] | | | +- io.pivotal.cfenv:java-cfenv-boot-pivotal-scs:jar:1.1.1.RELEASE:compile
[INFO] | | | | \- org.springframework.security.oauth:spring-security-oauth2:jar:2.3.4.RELEASE:compile
[INFO] | | | | +- org.springframework.security:spring-security-core:jar:5.1.6.RELEASE:compile
[INFO] | | | | \- org.codehaus.jackson:jackson-mapper-asl:jar:1.9.13:compile
[INFO] | | | | \- org.codehaus.jackson:jackson-core-asl:jar:1.9.13:compile
[INFO] | | | \- io.pivotal.cfenv:java-cfenv-boot-pivotal-sso:jar:1.1.1.RELEASE:compile
[INFO] | | \- org.springframework.cloud:spring-cloud-deployer-resource-support:jar:2.0.4.RELEASE:compile
[INFO] | \- io.fabric8:kubernetes-client:jar:4.2.2:compile
[INFO] | +- io.fabric8:kubernetes-model:jar:4.2.2:compile
[INFO] | | +- io.fabric8:kubernetes-model-common:jar:4.2.2:compile
[INFO] | | +- com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.9.9:compile
[INFO] | | \- org.glassfish:javax.el:jar:3.0.0:compile
[INFO] | +- com.squareup.okhttp3:okhttp:jar:3.8.1:compile
[INFO] | | \- com.squareup.okio:okio:jar:1.13.0:compile
[INFO] | +- com.squareup.okhttp3:logging-interceptor:jar:3.8.1:compile
[INFO] | +- org.slf4j:slf4j-api:jar:1.7.26:compile
[INFO] | +- org.slf4j:jul-to-slf4j:jar:1.7.26:compile
[INFO] | +- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.9.9:compile
[INFO] | +- io.fabric8:zjsonpatch:jar:0.3.0:compile
[INFO] | \- com.github.mifmif:generex:jar:1.0.2:compile
[INFO] | \- dk.brics.automaton:automaton:jar:1.11-8:compile
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:2.1.7.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-starter:jar:2.1.7.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot:jar:2.1.7.RELEASE:compile
[INFO] | | \- javax.annotation:javax.annotation-api:jar:1.3.2:compile
[INFO] | +- org.springframework.boot:spring-boot-test:jar:2.1.7.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.1.7.RELEASE:test
[INFO] | +- com.jayway.jsonpath:json-path:jar:2.4.0:compile
[INFO] | | \- net.minidev:json-smart:jar:2.3:compile
[INFO] | | \- net.minidev:accessors-smart:jar:1.2:compile
[INFO] | | \- org.ow2.asm:asm:jar:5.0.4:compile
[INFO] | +- junit:junit:jar:4.12:test
[INFO] | +- org.assertj:assertj-core:jar:3.11.1:test
[INFO] | +- org.mockito:mockito-core:jar:2.23.4:test
[INFO] | | +- net.bytebuddy:byte-buddy:jar:1.9.16:compile
[INFO] | | +- net.bytebuddy:byte-buddy-agent:jar:1.9.16:test
[INFO] | | \- org.objenesis:objenesis:jar:2.6:test
[INFO] | +- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] | +- org.hamcrest:hamcrest-library:jar:1.3:test
[INFO] | +- org.skyscreamer:jsonassert:jar:1.5.0:test
[INFO] | | \- com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:compile
[INFO] | +- org.springframework:spring-core:jar:5.1.9.RELEASE:compile
[INFO] | | \- org.springframework:spring-jcl:jar:5.1.9.RELEASE:compile
[INFO] | +- org.springframework:spring-test:jar:5.1.9.RELEASE:test
[INFO] | \- org.xmlunit:xmlunit-core:jar:2.6.3:test
[INFO] | \- javax.xml.bind:jaxb-api:jar:2.3.1:compile
[INFO] | \- javax.activation:javax.activation-api:jar:1.2.0:compile
[INFO] +- mysql:mysql-connector-java:jar:8.0.16:compile
[INFO] \- org.springframework.cloud:spring-cloud-deployer-cloudfoundry:jar:2.1.0.BUILD-SNAPSHOT:compile
[INFO] +- org.springframework.cloud:spring-cloud-deployer-spi:jar:2.1.0.BUILD-SNAPSHOT:compile
[INFO] +- org.springframework.boot:spring-boot-starter-validation:jar:2.1.7.RELEASE:compile
[INFO] | +- org.apache.tomcat.embed:tomcat-embed-el:jar:9.0.22:compile
[INFO] | \- org.hibernate.validator:hibernate-validator:jar:6.0.17.Final:compile
[INFO] | +- org.jboss.logging:jboss-logging:jar:3.3.2.Final:compile
[INFO] | \- com.fasterxml:classmate:jar:1.4.0:compile
[INFO] +- org.cloudfoundry:cloudfoundry-client-reactor:jar:3.15.0.RELEASE:compile
[INFO] | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.9.9:compile
[INFO] | +- com.github.zafarkhaja:java-semver:jar:0.9.0:compile
[INFO] | +- io.jsonwebtoken:jjwt:jar:0.9.1:compile
[INFO] | +- org.cloudfoundry:cloudfoundry-client:jar:3.15.0.RELEASE:compile
[INFO] | | \- com.squareup.wire:wire-runtime:jar:2.2.0:compile
[INFO] | +- org.cloudfoundry:cloudfoundry-util:jar:3.15.0.RELEASE:compile
[INFO] | | +- org.apache.commons:commons-compress:jar:1.18:compile
[INFO] | | \- org.atteo:evo-inflector:jar:1.2.2:compile
[INFO] | \- org.slf4j:jcl-over-slf4j:jar:1.7.26:compile
[INFO] +- org.cloudfoundry:cloudfoundry-operations:jar:3.15.0.RELEASE:compile
[INFO] +- org.yaml:snakeyaml:jar:1.23:compile
[INFO] +- io.projectreactor:reactor-core:jar:3.2.11.RELEASE:compile
[INFO] | \- org.reactivestreams:reactive-streams:jar:1.0.2:compile
[INFO] +- io.projectreactor.ipc:reactor-netty:jar:0.7.12.RELEASE:compile
[INFO] | +- io.netty:netty-codec-http:jar:4.1.38.Final:compile
[INFO] | | +- io.netty:netty-common:jar:4.1.38.Final:compile
[INFO] | | +- io.netty:netty-buffer:jar:4.1.38.Final:compile
[INFO] | | +- io.netty:netty-transport:jar:4.1.38.Final:compile
[INFO] | | | \- io.netty:netty-resolver:jar:4.1.38.Final:compile
[INFO] | | \- io.netty:netty-codec:jar:4.1.38.Final:compile
[INFO] | +- io.netty:netty-handler:jar:4.1.38.Final:compile
[INFO] | +- io.netty:netty-handler-proxy:jar:4.1.38.Final:compile
[INFO] | | \- io.netty:netty-codec-socks:jar:4.1.38.Final:compile
[INFO] | \- io.netty:netty-transport-native-epoll:jar:linux-x86_64:4.1.38.Final:compile
[INFO] | \- io.netty:netty-transport-native-unix-common:jar:4.1.38.Final:compile
[INFO] +- io.pivotal:pivotal-cloudfoundry-client-reactor:jar:1.1.0.RELEASE:compile
[INFO] | \- io.pivotal:pivotal-cloudfoundry-client:jar:1.1.0.RELEASE:compile
[INFO] \- org.springframework.retry:spring-retry:jar:1.2.4.RELEASE:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.789 s
[INFO] Finished at: 2019-08-30T14:50:08+02:00
[INFO] ------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.7.RELEASE</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>
<groupId>ch.jobtool</groupId>
<artifactId>scdf-2</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>scdf-2</name>
<description>scdf</description>
<properties>
<java.version>11</java.version>
<spring-cloud.version>Hoxton.M2</spring-cloud.version>
<spring-cloud-dataflow.version>2.2.2.BUILD-SNAPSHOT</spring-cloud-dataflow.version>
<mysql-jdbc-driver.version>8.0.16</mysql-jdbc-driver.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-config</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-dataflow-server</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-deployer-cloudfoundry</artifactId>
<version>2.1.0.BUILD-SNAPSHOT</version>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>${spring-cloud.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dataflow-dependencies</artifactId>
<version>${spring-cloud-dataflow.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql-jdbc-driver.version}</version>
<exclusions>
<exclusion>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
package ch.jobtool.scdf;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.session.SessionAutoConfiguration;
import org.springframework.cloud.common.security.CommonSecurityAutoConfiguration;
import org.springframework.cloud.dataflow.server.EnableDataFlowServer;
@SpringBootApplication(exclude = {
SessionAutoConfiguration.class,
CommonSecurityAutoConfiguration.class
})
@EnableDataFlowServer
public class Scdf2Application {
public static void main(String[] args) {
SpringApplication.run(Scdf2Application.class, args);
}
}
package ch.jobtool.scdf;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
@EnableWebSecurity
@Configuration
public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests().antMatchers("/**").hasAnyRole("MANAGE", "VIEW", "CREATE", "MODIFY", "DEPLOY", "DESTROY", "SCHEDULE").and().formLogin();
}
@Override
protected void configure(AuthenticationManagerBuilder auth) throws Exception {
auth.inMemoryAuthentication()
.withUser("user")
.password("{noop}password")
.roles("MANAGE", "VIEW", "CREATE", "MODIFY", "DEPLOY", "DESTROY", "SCHEDULE")
.and()
.withUser("admin")
.password("{noop}password")
.roles("MANAGE", "VIEW", "CREATE", "MODIFY", "DEPLOY", "DESTROY", "SCHEDULE");
}
}
@imod
Copy link
Author

imod commented Aug 30, 2019

The use of org.springframework.cloud:spring-cloud-deployer-cloudfoundry:2.1.0.BUILD-SNAPSHOT causes:

Caused by: java.lang.IllegalStateException: Failed to introspect Class [org.springframework.cloud.dataflow.server.config.cloudfoundry.CloudFoundryTaskPlatformFactory] from ClassLoader [jdk.internal.loader.ClassLoaders$AppClassLoader@799f7e29]
	at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:507)
	at org.springframework.util.ReflectionUtils.doWithLocalMethods(ReflectionUtils.java:367)
	at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.buildPersistenceMetadata(PersistenceAnnotationBeanPostProcessor.java:432)
	at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findPersistenceMetadata(PersistenceAnnotationBeanPostProcessor.java:406)
	at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(PersistenceAnnotationBeanPostProcessor.java:333)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors(AbstractAutowireCapableBeanFactory.java:1077)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:567)
	... 72 common frames omitted
Caused by: java.lang.NoClassDefFoundError: org/springframework/cloud/deployer/spi/cloudfoundry/CloudFoundry2630AndLaterTaskLauncher
	at java.base/java.lang.Class.getDeclaredMethods0(Native Method)
	at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3167)
	at java.base/java.lang.Class.getDeclaredMethods(Class.java:2310)
	at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:489)
	... 78 common frames omitted
Caused by: java.lang.ClassNotFoundException: org.springframework.cloud.deployer.spi.cloudfoundry.CloudFoundry2630AndLaterTaskLauncher
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
	... 82 common frames omitted

@ilayaperumalg
Copy link

Can you share your mvn dependency:tree ?

@imod
Copy link
Author

imod commented Aug 30, 2019

@ilayaperumalg I added the dependency tree

@imod
Copy link
Author

imod commented Aug 30, 2019

@imod
Copy link
Author

imod commented Sep 4, 2019

@ilayaperumalg have you been able to reproduce the issue?

@ilayaperumalg
Copy link

@imod I couldn't get a chance to try this yet. I will try this today and follow up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment