On Travis, tries to connect to Liquibase when running ./mvnw package -Pprod -DskipTests

245 views
Skip to first unread message

Matt Raible

unread,
Oct 25, 2016, 1:13:55 PM10/25/16
to JHipster dev team
Hey guys,

I’m trying to get another one of my JHipster projects running on Travis. For some reason, when I run the following command:

./mvnw package -Pprod -DskipTests

It still seems to be trying to connect to Liquibase. This works fine locally, but not on Travis. Any ideas?

[INFO] Building war: /home/travis/build/mraible/jhipster-stormpath-example/target/jhipster-stormpath-example-0.0.1-SNAPSHOT.war
2016-10-25 17:06:44.137 WARN 4307 --- [ restartedMain] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration$LiquibaseConfiguration': Invocation of init method failed; nested exception is java.lang.IllegalStateException: Cannot find changelog location: class path resource [db/changelog/db.changelog-master.yaml] (please add changelog or check your Liquibase configuration)
2016-10-25 17:06:44.237 WARN 4307 --- [ restartedMain] o.s.boot.SpringApplication : Error handling failed (Error creating bean with name 'delegatingApplicationListener' defined in class path resource [org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'metaDataSourceAdvisor': Cannot resolve reference to bean 'methodSecurityMetadataSource' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.stormpath.spring.boot.autoconfigure.StormpathMethodSecurityAutoConfiguration': Initialization of bean failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'org.springframework.context.annotation.ConfigurationClassPostProcessor.importRegistry' is defined)
2016-10-25 17:06:44.295 ERROR 4307 --- [ restartedMain] o.s.boot.SpringApplication : Application startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration$LiquibaseConfiguration': Invocation of init method failed; nested exception is java.lang.IllegalStateException: Cannot find changelog location: class path resource [db/changelog/db.changelog-master.yaml] (please add changelog or check your Liquibase configuration)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:136)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408)

Error in logs: https://travis-ci.org/mraible/jhipster-stormpath-example/builds/170514777#L1045

My travis config: https://github.com/mraible/jhipster-stormpath-example/blob/master/.travis.yml

Thanks in advance for any advice.

Matt

Pascal GRIMAUD

unread,
Oct 25, 2016, 1:19:37 PM10/25/16
to Matt Raible, JHipster dev team

Hi

Your application is already started and you re trying to package. Im not sure it can work
I think you should change the order

Cheers,
Pascal


--
You received this message because you are subscribed to the Google Groups "JHipster dev team" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jhipster-dev+unsubscribe@googlegroups.com.
To post to this group, send email to jhipst...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jhipster-dev/8D5AE2EA-09DA-4563-9A14-1E7951F11ACB%40raibledesigns.com.
For more options, visit https://groups.google.com/d/optout.

Matt Raible

unread,
Oct 25, 2016, 1:46:44 PM10/25/16
to Pascal GRIMAUD, JHipster dev team
Good catch! Added `kill $bootPid` before packaging.

To unsubscribe from this group and stop receiving emails from it, send an email to jhipster-dev...@googlegroups.com.

To post to this group, send email to jhipst...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages