question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Maven build is broken

See original GitHub issue

Describe 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:

  1. Clone the repository on a Windows 10 machine with JDK 19 and Maven 3.8.6 (both stable, newest versions).
  2. 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:open
  • Created a year ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
prassercommented, Oct 29, 2022

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.

0reactions
iflowcommented, Oct 29, 2022

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 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build-path randomly broken with Maven dependencies - Bugs
The maven "builder" seems to recover from its state when user manually touches the project build path. The behavios is restored when the...
Read more >
How to fix Maven build issue in Eclipse? Perform ... - Crunchify
How to fix Maven build issue in Eclipse? Perform maven-clean-install to fix any Java Dependency Issue. Last Updated on February 9th, 2020 by...
Read more >
Maven package works but Intellij's build fails - Stack Overflow
Reimpoted maven in Intellij; Syncornized. This error happend to my couple of times before, but usually just closing the Intellij and /or doing...
Read more >
IntelliJ IDEA - Troubleshooting common Maven issues
If you encounter problems working with your Maven project you can check to see if the following solutions and workarounds can help you...
Read more >
Common Bugs and Pitfalls - Apache Maven
The problem is that the JVM executing Maven can be running much longer than the actual Maven build. Of course, this does not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found