Informatievlaanderen / VSDS-LDESServer4J

Linked Data Event Streams Server for Java
https://informatievlaanderen.github.io/VSDS-LDESServer4J
European Union Public License 1.2
9 stars 8 forks source link

Update the doc for local build using maven. #420

Closed xdxxxdx closed 1 year ago

xdxxxdx commented 1 year ago

Improvement 1

Is your feature request related to a problem? Please describe. I'm always frustrated when build the VSDS-LDESServer4J locally using maven. Follow: https://github.com/Informatievlaanderen/VSDS-LDESServer4J#example-http-ingest-fetch-configuration

under the directory : /VSDS-LDESSERVER4J run the command line'mvn install'

Return - > error:

[INFO]
[INFO] --- formatter-maven-plugin:2.21.0:validate (default) @ ldes-server-domain ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for ldes-server 0.0.4-SNAPSHOT:
[INFO]
[INFO] ldes-server ........................................ SUCCESS [ 52.195 s]
[INFO] ldes-server-domain ................................. FAILURE [  8.634 s]
[INFO] ldes-server-infra-mongo ............................ SKIPPED
[INFO] ldes-server-port-fetch-rest ........................ SKIPPED
[INFO] ldes-server-application ............................ SKIPPED
[INFO] ldes-server-port-ingestion-rest .................... SKIPPED
[INFO] ldes-fragmentisers ................................. SKIPPED
[INFO] ldes-fragmentisers-geospatial ...................... SKIPPED
[INFO] ldes-fragmentisers-timebased ....................... SKIPPED
[INFO] ldes-fragmentisers-substring ....................... SKIPPED
[INFO] ldes-queues ........................................ SKIPPED
[INFO] ldes-queue-none .................................... SKIPPED
[INFO] ldes-queue-in-memory ............................... SKIPPED
[INFO] ------------------------------------------------------------------------
rsConfig.java' has not been previously formatted. Please 
format file (for example by invoking `mvn -f ldes-server-domain net.revelc.code.formatter:formatter-maven-plugin:2.21.0:format`) and commit before running validation! -> [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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :ldes-server-domain

mvn -f ldes-server-domain net.revelc.code.formatter:formatter-maven-plugin:2.21.0:format

Got error: [ERROR] Failed to execute goal net.revelc.code.formatter:formatter-maven-plugin:2.21.0:format (default-cli) on project ldes-server-domain: Cannot find config file [/mnt/c/VSDS repository/VSDS-LDESServer4J/ldes-server-domain/settings.xml] -> [Help 1]

Describe the solution you'd like To solve this error on the windows machine:

Need to use: mvn formatter:format (see: https://stackoverflow.com/questions/56670074/how-can-i-solve-the-problem-with-maven-formatter-plugin) => Maybe add this to the doc?

Improvement 2 Is your feature request related to a problem? Please describe. I'm always frustrated when build the VSDS-LDESServer4J locally using maven. Continue to follow: https://github.com/Informatievlaanderen/VSDS-LDESServer4J#example-http-ingest-fetch-configuration

Run: cd ldes-server-application Run: mvn spring-boot:run -P {profiles (comma separated with no spaces) }

I don't see what are supposed to be filled here as profiles ? If I am wrong, please correct me, thanks :)

Describe the solution you'd like

After: mvn spring-boot:run -P {profiles (comma separated with no spaces) } => Maybe add an example of this command line, to specify what are expected values to be filled as profiles? => Also maybe an example of application.ymlfile inldes-server-application/src/main/resources with full configurationS for all profiles (http-ingest, http-fetch, storage-mongo, fragmentation-timebased, fragmentation-geospatial, fragmentation-substring ?? )

Thanks XD

xdxxxdx commented 1 year ago

Hello @Tomvbe,

Please don't close it, thanks.. The case can be closed only after we have an agreement on the fix.

Thanks. XD