-
Notifications
You must be signed in to change notification settings - Fork 218
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
[BUG] Maven build is broken #419
Comments
Thanks for your interest in ARX. From ARX Readme:
Have you tried compiling using eclipse? |
Actually no. I did not use Eclipse. I just executed the build command from the command line. See my described steps to reproduce. |
Thanks for reporting this. The standard way of building ARX is by using the Ant build script provided. Would that be an option for you? The Maven build is experimental and likely not up to date (as you discovered). Is there a specific reason you need to build with Maven? |
The reason why I chose the Maven build was because I did not want to install the whole Eclipse IDE etc, but just compile the core components, as you described in the README with the The background of this or better my goal would be to access the FLASH algorithm with a Python script with the help of Python-Java bridge. However I probably don't even need to compile the core component to access it via Python. I need to do some more research here :) |
Ok. Thanks for the feedback. The text in the readme is a bit misleading. Building with Maven is an experimental feature and obviously broken at the moment (thanks for reporting this). The standard way of building ARX is with Ant. This can also be done without Eclipse and also allows building just the core library. |
Yep. Just tried with debian and java 8 as recommended. BTW, thanks for this tool! |
Thanks for trying again. Just to be sure: you can also build ARX without Eclipse - by using Ant. |
Hello @prasser thanks for the quick reply. |
Sure. You can use libarx and implement the anonymization process in Java. You can take a look at the "example" package for info on how to use the API. |
I was able to build Arx in windows using maven e.g.
after commenting out these dependencies in pom.xml : probably one can do the same for their system e.g.
The tests will fail as there are data files missing e.g. atus.csv, hence using -DskipTests. Update: I found out that this does not fix the errors mentioned in the bug when using Ubuntu. |
With this PR, I was able to install Arx on both Windows 10 and Ubuntu 22.04 using maven. |
Describe the bug
Building with Maven fails with various dependency errors, if using the suggested command of the README.
To Reproduce
Steps to reproduce the behavior:
$ mvn compile -Dcore=true
Expected behavior
Successfully build
Additional context
Before I got stuck on this error another depency issues did arise:
I fixed this by changing the version of com.github.ralfstuckert.pdfbox-layout from 1.0.0 to 1.0.1 in the pom.xml:
The text was updated successfully, but these errors were encountered: