Unable to make it work
See original GitHub issueHello, 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.
- So here is a snippet of my
application.yml
file that contains the various project configs.
server:
port: ${PIMPIM_REGISTRY_PORT:8761}
- The content of the .env file is this:
PIMPIM_REGISTRY_PORT=9999
- And here, a snippet of my
pom.xml
file
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>bintray</name>
<url>https://jcenter.bintray.com</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>me.paulschwarz</groupId>
<artifactId>spring-dotenv</artifactId>
<version>1.0.0</version>
<type>pom</type>
</dependency>
</dependencies>
However when I run the project, my server still starts on default port 8761 rather than 9999 as precised in the .env
file
Along with this message that make me feel like there’s something not done right.
Thanks for any help!!
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Which is correct “I can't make it work” or “I can't make it to work”?
In “I can't make it work,” “work” is a verbal, a “bare” infinitive without the “to” sign, as is usual after “make”; in...
Read more >Unable to Work Definition | Law Insider
Unable to Work means that work is assigned and scheduled but the employee cannot perform the work remotely. It does not mean that...
Read more >Why Can't We Make It Work - YouTube
Provided to YouTube by Blaufield MusicWhy Can't We Make It Work · Booka Shade · Laudic · Walter Merziger · Arno Kammermeier ·...
Read more >Why can't I just WORK??? - procrastination job failure
The only thing that has worked is giving myself permission to fail, giving myself permission to do something less-than-perfectly IF I try. Give ......
Read more >What To Do When You Feel Like You Are Failing At Work
Learning to deal better with breakdowns and failures at work can help you regain power and get your feet back under you.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Henriquelay @brainafesoh the artefact is now available on Maven Central
https://mvnrepository.com/artifact/me.paulschwarz/spring-dotenv
Also had this issue. This solved beautifully after struggling a bit to setup bintray.