[BUG] Maven build is broken
See original GitHub issueDescribe the bug
Building with Maven fails with various dependency errors, if using the suggested command of the README.
[INFO] 4 errors [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 39.249 s [INFO] Finished at: 2022-10-26T13:58:25+02:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.1:compile (default-compile) on project arx: Compilation failure: Compilation failure: [ERROR] /D:/An/Projects/k-anonymity/arx/src/main/org/deidentifier/arx/io/ImportConfigurationExcel.java:[228,52] Symbol nicht gefunden [ERROR] Symbol: Variable CELL_TYPE_STRING [ERROR] Ort: Schnittstelle org.apache.poi.ss.usermodel.Cell [ERROR] /D:/An/Projects/k-anonymity/arx/src/main/org/deidentifier/arx/io/ImportAdapterExcel.java:[112,42] Symbol nicht gefunden [ERROR] Symbol: Variable CREATE_NULL_AS_BLANK [ERROR] Ort: Schnittstelle org.apache.poi.ss.usermodel.Row [ERROR] /D:/An/Projects/k-anonymity/arx/src/main/org/deidentifier/arx/io/ImportAdapterExcel.java:[188,53] Symbol nicht gefunden [ERROR] Symbol: Variable CELL_TYPE_STRING [ERROR] Ort: Schnittstelle org.apache.poi.ss.usermodel.Cell [ERROR] /D:/An/Projects/k-anonymity/arx/src/main/org/deidentifier/arx/io/ImportAdapterExcel.java:[255,82] Symbol nicht gefunden [ERROR] Symbol: Variable CELL_TYPE_STRING [ERROR] Ort: Schnittstelle org.apache.poi.ss.usermodel.Cell [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
To Reproduce Steps to reproduce the behavior:
- Clone the repository on a Windows 10 machine with JDK 19 and Maven 3.8.6 (both stable, newest versions).
- Run the compile command
$ mvn compile -Dcore=true
Expected behavior Successfully build
Additional context Before I got stuck on this error another depency issues did arise:
Failed to execute goal on project arx: Could not resolve dependencies for project org.deidentifier.arx:arx:jar:3.9.1: Could not find artifact com.github.ralfstuckert.pdfbox-layout:pdfbox2-layout:jar:1.0.0 in local-maven-repo (file:///D:\An\Projects\k-anonymity\arx/lib)
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:
<dependency>
<groupId>com.github.ralfstuckert.pdfbox-layout</groupId>
<artifactId>pdfbox2-layout</artifactId>
<version>1.0.1</version>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
Issue Analytics
- State:
- Created a year ago
- Comments:5 (1 by maintainers)
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.
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
mvn
command > https://github.com/arx-deidentifier/arx#development-setup.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 😃