paulschwarz / spring-dotenv

Provides a Dotenv property source for Spring
MIT License
301 stars 23 forks source link

Unable to make it work #2

Closed brainafesoh closed 4 years ago

brainafesoh commented 4 years ago

Hello, thanks for the initiative of creating this dependency. It's an issue I've been facing ever since I started working with springboot (since I come from a nodejs background) However, I tried adding the dependency to a simple maven based project but wasn't able to make it work after all.

Along with this message that make me feel like there's something not done right. image

Thanks for any help!!

paulschwarz commented 4 years ago

@brainafesoh please try remove the <type>pom</type> from your dependency block and try again?

paulschwarz commented 4 years ago

@brainafesoh also, your application.yml should read

server:
   port: ${env.PIMPIM_REGISTRY_PORT:8761}

(note the env.)

paulschwarz commented 4 years ago

I haven't heard from you recently and I hope this solved your issue. Please reopen if not.

Henriquelay commented 3 years ago

Also had this issue. This solved beautifully after struggling a bit to setup bintray.

paulschwarz commented 3 years ago

@Henriquelay @brainafesoh the artefact is now available on Maven Central

https://mvnrepository.com/artifact/me.paulschwarz/spring-dotenv