Enrico Pinzaglia wrote:I've read that for jar files the scope must be system. If i try to change it i will get an error.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Stephan van Hulst wrote:Anyway, is there a file fontchooser.jar in the lib/ directory in your project? If not, then that is the problem you are having.
Stephan van Hulst wrote:Can you show us your project's directory structure?
Regardless, even though we might find a solution that preserves your current POM, I STRONGLY recommend installing your dependencies to a local repository (might even be a repository inside your project directory so you can commit the dependencies to source control) and then using the compile scope, as one normally would.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Tim Holloway wrote:I don't know about a "repository in your project directory". As as far as I know, Maven only allows one repository per user and if not, it would still make things messy, as it would break Maven's transportability.
Enrico Pinzaglia wrote:Is not my project but a open source project.
Stephan van Hulst wrote:
Tim Holloway wrote:I don't know about a "repository in your project directory". As as far as I know, Maven only allows one repository per user and if not, it would still make things messy, as it would break Maven's transportability.
Why does it hurt? I'm pretty sure you can configure multiple repositories, and you can configure a repository path that's relative to the project's base directory, similar to how OP configured their systemPaths. It should not affect the build for different systems/users.
I haven't verified though.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Tim Holloway wrote:A repository has a URL. A local copy of a project does not, unless Maven honors the "file:" protocol in URLs and even then, it would have to be relative to the project directory and not an absolute file URL.
The actual internal repository structure is not fixed for all time, and they've changed it once already. Maven tracks this automatically. Assembling a repository manually doesn't
Enrico Pinzaglia wrote:So if i just understand i have to install the jar files in a local repository and then use them. Is that correct?
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.