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

Added version 4.0.0-SNAPHOT #46

Closed
wants to merge 14 commits into from
Closed

Added version 4.0.0-SNAPHOT #46

wants to merge 14 commits into from

Conversation

ghacupha
Copy link
Contributor

@ghacupha ghacupha commented Aug 1, 2018

Okay so this is a bit out there, you might even want to do a several branch for this PR. What I do guarantee, is that it has been tested in java 10 environment, and all the tests ran successfully, and so did the maven package command. Except due to the range of changes, I elected to do an uber jar with all dependencies included.
I needed the code to run with java 10. I checked the current commits in poi repositories only to notice that they had fixed the ZipSecureFile problem, they were having with the library in java 9 environments.
Unfortunately that fix is slotted for version 4.0.0 currently tagged as 4.0.0-SNAPHOT. As you know they have not released the version 4, and I could not find their maven snapshot releases.
So here is what I did:
i) I downloaded the jars from the latest successful build from their jenkens CI
ii) I put then in the lib folder with LICENSE included to avoid legal suit and stuff
iii) I used the install plugin to install them to local repository using the life-cycle mapping plugin during initialization. This effectively makes the workflow platform independent.
iv) I then use the shade plugin to create the dependencies-included jar, whenever you call package command with the name poiji.

This was done with maven version 3.5.4 running on java version 10.0.2. Tomorrow I will try whether java 8 will still work. But for today, I find this useful for java 10 guys. Once the version 4 is publicly available we can remove that lib folder and the repository i added in the pom, and revert back to normal maven-managed dependencies. What do you think?

@ghacupha
Copy link
Contributor Author

ghacupha commented Aug 2, 2018

The build is failing, I thought travis would start the build using the manually attached jars. Standby for further updates. I will try to change the position of the pom to see if their dependencies can be transitively resolved on travis.

@coveralls
Copy link

coveralls commented Aug 2, 2018

Coverage Status

Coverage increased (+1.1%) to 88.071% when pulling 157124a on mali-fasaha:master into 9e389e2 on ozlerhakan:master.

@ozlerhakan
Copy link
Owner

ozlerhakan commented Aug 2, 2018

Hi @ghacupha ,

Thank you for your valuable work!, Should I close this PR in terms of #49 ?

@ghacupha
Copy link
Contributor Author

ghacupha commented Aug 4, 2018 via email

@ozlerhakan
Copy link
Owner

No worries @ghacupha

@ozlerhakan ozlerhakan closed this Aug 4, 2018
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

Successfully merging this pull request may close these issues.

None yet

3 participants