Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMP]: Avoid maven for building packages #4

Closed
luizluca opened this issue Nov 29, 2016 · 2 comments
Closed

[IMP]: Avoid maven for building packages #4

luizluca opened this issue Nov 29, 2016 · 2 comments

Comments

@luizluca
Copy link

Hello,

Maven is not a very "package build system" friendly. Normally a "package build system" does not even provide internet access (which is almost a requirement for maven).

If possible, could you include maven-generated files and/or replace buidling jar with standard tools? I guess only the JNI part really needs to be built specific for each system.

@RangerRick
Copy link

Since we a) want to deploy it to maven central and b) depend on at least one external library (SLF4J) changing the build is not really feasible (unless it's doing something else in addition which is kind of silly...)

Maven really is the "standard tool" for Java-with-dependencies, unless we were to move to gradle (which still relies on maven repositories in the end).

@luizluca
Copy link
Author

luizluca commented Dec 2, 2016

Thanks @RangerRick ,

I'm starting to deal better now with maven. The process is something like:

  1. predownload all maven deps for the project (Maven cannot download all depedencies with dependency:go-offline #3 makes this very difficult)
  2. pack deps as a source
  3. unpack on %prep
  4. reconfigure maven to use this local repo (MAVEN_OPTS="-Dmaven.repo.local=/xxx")

It is still not great but, at least, it works ;-)

@luizluca luizluca closed this as completed Dec 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants