libo
libo

Reputation: 59

How to modify the properties file import by Maven

I add a dependency in Maven, And there is properties file in that dependency , I need to modify the file, How? enter image description here

Upvotes: 0

Views: 145

Answers (1)

ernest_k
ernest_k

Reputation: 45319

You can't, and you shouldn't, modify an artifact's content.

You can, however, override the file by making a copy, modifying it, and saving it with the same name under src/main/resources.

Note that whether the runtime sees your edited file or the original one depends heavily on your packaging and on your actual runtime.

Upvotes: 1

Related Questions