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

[Song Server] - Development Environment Setup #21

Open
MitchellShiell opened this issue Oct 1, 2024 · 2 comments
Open

[Song Server] - Development Environment Setup #21

MitchellShiell opened this issue Oct 1, 2024 · 2 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@MitchellShiell
Copy link
Contributor

MitchellShiell commented Oct 1, 2024

Summary

Using this thread to track issues as I troubleshoot through the maestro development environment setup

All details and solutions will be outlined in the comments below

Setup Steps

These will be updated as we solve common issues

1. Set up complementary services

git clone -b conductor https://github.com/overture-stack/composer.git
cd composer

2. Run the conductor for Songs dev environment, this command will set up all complementary services for Song development.

make songDev

3. Clone Song

git clone https://github.com/overture-stack/song.git
cd song

4. Update the application.yaml as documented here

5. Run the server with the following profiles

mvn spring-boot:run -Dspring-boot.run.profiles=default,dev,secure
@MitchellShiell MitchellShiell changed the title [Song Standalone Setup] - Build Error [Song Server] - Development Environment Setup Oct 1, 2024
@MitchellShiell MitchellShiell added the documentation Improvements or additions to documentation label Oct 1, 2024
@MitchellShiell
Copy link
Contributor Author

Build Error

Summary

  • I am unable to build the Song application when trying to set it up as a standalone server.
  • All the complementary services are running via docker (Score, Minio, Keycloak, keycloakDb and SongDb).
    • Steps to reproduce below

Details

When running the build command I get the following logs

song on  develop is 📦 5.1.2-SNAPSHOT via ☕ v17.0.10 on 🐳 v27.0.3 took 4.0s 
➜ ./mvnw -e clean install -DskipTests
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for bio.overture:song-server:jar:5.1.2-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.springframework.boot:spring-boot-starter-security:jar -> duplicate declaration of version (?) @ bio.overture:song-server:[unknown-version], /Users/mshiell/Desktop/Conductor/conductor/composer/song/song-server/pom.xml, line 79, column 21
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 

...

[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING : 
[INFO] -------------------------------------------------------------
[WARNING] [options] system modules path not set in conjunction with -source 11
[INFO] 1 warning
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] song ............................................... SUCCESS [  0.310 s]
[INFO] song-core .......................................... FAILURE [  1.431 s]
[INFO] song-java-sdk ...................................... SKIPPED
[INFO] song-client ........................................ SKIPPED
[INFO] song-server ........................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.119 s
[INFO] Finished at: 2024-10-01T11:21:39-04:00
[INFO] Final Memory: 34M/148M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project song-core: Compilation failure
[ERROR] [options] system modules path not set in conjunction with -source 11
[ERROR] 
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project song-core: Compilation failure
[options] system modules path not set in conjunction with -source 11
...
[ERROR] 
[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
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :song-core

@MitchellShiell
Copy link
Contributor Author

Solution to Build Issue

Make sure you are using JDK11 and Maven3

➜  SONG git:(master) ✗ mvn --version
Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Maven home: /opt/apache-maven-3.8.6
Java version: 11.0.16, vendor: Oracle Corporation, runtime: 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants