Skip to content

Build time exception (master branch): java.lang.ExceptionInInitializerError: Cannot access defaults field of Properties #107

@madukan

Description

@madukan

Following are the steps I followed:

git clone https://github.com/sismics/music.git
cd music
mvn clean -DskipTests package

Build error:

[INFO] Reactor Summary for Music Parent 1.0-SNAPSHOT:
[INFO] 
[INFO] Music Parent ....................................... SUCCESS [  0.100 s]
[INFO] Music Core ......................................... SUCCESS [  7.587 s]
[INFO] Music Web Commons .................................. SUCCESS [  4.978 s]
[INFO] Music Web .......................................... FAILURE [  5.125 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  17.865 s
[INFO] Finished at: 2024-05-14T23:34:29+10:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project music-web: Execution default-war of goal org.apache.maven.plugins:maven-war-plugin:2.2:war failed: Unable to load the mojo 'war' in the plugin 'org.apache.maven.plugins:maven-war-plugin:2.2' due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Cannot access defaults field of Properties
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>org.apache.maven.plugins:maven-war-plugin:2.2
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy

Tried without building, just in case..

mvn clean -DskipTests compile
cd music-web
mvn jetty:run

Since previous build wasn't success, couldn't get this to work either.

Build error:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.377 s
[INFO] Finished at: 2024-05-14T23:37:46+10:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project music-web: Could not resolve dependencies for project com.sismics.music:music-web:war:1.0-SNAPSHOT: The following artifacts could not be resolved: com.sismics.music:music-core:jar:1.0-SNAPSHOT (absent), com.sismics.music:music-web-common:jar:1.0-SNAPSHOT (absent), com.sismics.music:music-web-common:jar:tests:1.0-SNAPSHOT (absent): Could not find artifact com.sismics.music:music-core:jar:1.0-SNAPSHOT -> [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/DependencyResolutionException

I am quite new (just got started minutes back!) to this repository. Can you please let me know from your experience what may be the issue and how to get it fixed please?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions