license-maven-plugin icon indicating copy to clipboard operation
license-maven-plugin copied to clipboard

overrideFile is deprecated

Open bogdanb opened this issue 3 years ago • 2 comments

I’m not sure I understand everything correctly, but it seems to me that overrideFile should not have been deprecated, because the newer overrideUrl property cannot be used to reproduce the previous behavior.

overrideUrl only allows URLs, which are absolute, thus AFAIK cannot be used to point to a file inside the repository. (I guess on Linux it might be possible, using stuff like ${project.source.directory} to assemble a file: URL, but on Windows that will return some C:\path\with\drive\letter, which can’t do the same thing.

Using overrideFile, you can just put the override file anywhere inside the repository. With overrideUrl, you need to pick one of:

  • put the file on a web server, which requires a server and means no build is possible without a network connection
  • use some hard-coded file: URL, which means you can’t just get the repo and build, you need to place the in a particular path
  • use the default path, which is inconvenient

bogdanb avatar Dec 01 '21 17:12 bogdanb

similar to ##411

slawekjaranowski avatar Jun 29 '23 20:06 slawekjaranowski

Any solution on that?

maxl2287 avatar Apr 30 '24 11:04 maxl2287