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

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

Open
madukan opened this issue May 14, 2024 · 0 comments

Comments

@madukan
Copy link

madukan commented May 14, 2024

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?

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

No branches or pull requests

1 participant