Unable to run keycloak performance testsuite - java

I followed the steps provided by this README.md file
Keycloak testsuite readme
I am able to build the project but however when I run
cd testsuite/performance
mvn clean install
I am getting
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.8:run (configure-infinispan) on project performance-keycloak-infinispan-server: An Ant BuildException has occured: The following error occurred while executing this line:
[ERROR] /Users/sahilpaudel/Documents/Java/keycloak-testing/keycloak/testsuite/performance/infinispan/infinispan.xml:37: Execute failed: java.io.IOException: Cannot run program "./ispn-cli.sh" (in directory "/Users/sahilpaudel/Documents/Java/keycloak-testing/keycloak/testsuite/performance/infinispan/target/infinispan-server-10.1.8.Final/bin"): error=2, No such file or directory
[ERROR] around Ant part ...<ant antfile="infinispan.xml" target="configure-infinispan"/>... # 4:64 in /Users/sahilpaudel/Documents/Java/keycloak-testing/keycloak/testsuite/performance/infinispan/target/antrun/build-main.xml
[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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :performance-keycloak-infinispan-server
Has anyone come across this issue and resolved it.
I tried there issue tracker but it hosted separately and not previous such stacktrace is there.

TLDR; If you need to take a performance test on Keycloak try the newer version https://github.com/keycloak/keycloak-benchmark instead.
I met the same issue on Keycloak 12.0.4, below is my research:
I found ispn-cli.sh is the old name of infinispan cli. Now the name is cli.sh
But event if you rename the cli.sh to ispn-cli.sh, it won't work. Because you will meet another issue like below, which means missing ...standalone/configuration/clustered.xml for short.
main:
check-configuration-state:
[echo] configured: ${configured}
[echo] management.configured: ${management.configured}
configure-infinispan:
[copy] Copying 1 file to /home/ubuntu/keycloak12/testsuite/performance/infinispan/target/infinispan-server-11.0.4.Final/bin
[exec] org.aesh.command.parser.CommandLineParserException: batch 'embed-server' is not a batch command. See 'batch --help'.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Keycloak Performance TestSuite 12.0.4:
[INFO]
[INFO] Keycloak Performance TestSuite ..................... SUCCESS [ 1.718 s]
[INFO] Keycloak Performance TestSuite - Keycloak Server ... SUCCESS [ 24.548 s]
[INFO] Keycloak Performance TestSuite - Wildfly ModCluster Load Balancer SUCCESS [ 15.843 s]
[INFO] Keycloak Performance TestSuite - Infinispan Server . FAILURE [ 2.869 s]
[INFO] Keycloak Performance TestSuite - Tests ............. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 45.270 s
[INFO] Finished at: 2021-06-19T03:21:30Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.8:run (configure-infinispan) on project performance-keycloak-infinispan-server: An Ant BuildException has occured: The following error occurred while executing this line:
[ERROR] /home/ubuntu/keycloak12/testsuite/performance/infinispan/infinispan.xml:43: Warning: Could not find file /home/ubuntu/keycloak12/testsuite/performance/infinispan/target/infinispan-server-11.0.4.Final/standalone/configuration/clustered.xml to copy.
[ERROR] around Ant part ...<ant antfile="infinispan.xml" target="configure-infinispan"/>... # 4:64 in /home/ubuntu/keycloak12/testsuite/performance/infinispan/target/antrun/build-main.xml
[ERROR] -> [Help 1]
So I went through Keycloak git history and found this commit https://github.com/keycloak/keycloak/commit/df68ca8dcfd481ee64801fbc2cecaa0a6359285d
The infinispan version was based on jboss/infinispan-server:8.2.6.Final. Then, I checked the most closest version of infinispan-server(because 8.2.6.Final is not found anymore), it has all the necessary files.
$ unzip -l infinispan-server-8.1.3.Final-bin.zip | grep -E "standalone/configuration/|ispn-cli.sh"
0 2016-04-04 08:51 infinispan-server-8.1.3.Final/standalone/configuration/
2500 2016-04-04 08:51 infinispan-server-8.1.3.Final/bin/ispn-cli.sh
17968 2016-04-04 08:51 infinispan-server-8.1.3.Final/standalone/configuration/clustered.xml
1112 2016-04-04 08:51 infinispan-server-8.1.3.Final/standalone/configuration/mgmt-users.properties
711 2016-04-04 08:51 infinispan-server-8.1.3.Final/standalone/configuration/application-roles.properties
2697 2016-04-04 08:51 infinispan-server-8.1.3.Final/standalone/configuration/logging.properties
669 2016-04-04 08:51 infinispan-server-8.1.3.Final/standalone/configuration/mgmt-groups.properties
12084 2016-04-04 08:51 infinispan-server-8.1.3.Final/standalone/configuration/standalone.xml
935 2016-04-04 08:51 infinispan-server-8.1.3.Final/standalone/configuration/application-users.properties
Besides that, I found this, which is saying infinispan.version is based on root config. That means infinispan has changed a lot, but testsuite/performance/infinispan isn't keep up to date.
// testsuite/performance/infinispan/pom.xml
<infinispan.artifactId>infinispan-server-build</infinispan.artifactId>
<!--infinispan.version is located in the root pom.xml-->
<infinispan.unpacked.folder.name>infinispan-server-${infinispan.version}</infinispan.unpacked.folder.name>
And infinispan module was removed in this commit:
https://github.com/keycloak/keycloak/commit/54c5b1514f0611056f38053081d094cf5e5fd08a#diff-bc3567ad76edc320e3fa85c5e0e5380e09c11f94c8395b80064e195f2ef82793
So, I strongly doubt Keycloak testsuite/performance is stalled.

Related

Problem with Maven plugin :maven-enforcer-plugin:3.0.0-M3:enforce Some Enforcer rules have failed

A little bit of context:
Im working as a FE developer for an AEM project. The project is a SPA AEM as cloud service. I am running the author instance from the command line.
My pc specs are:
CPU: Intel(R) Core(TM) i5-7400 CPU # 3.00GHz 3.00 GHz
RAM: 24.0 GB
SSD: 476 GB
OS: Windows 10 Pro
For the AEM Project we are using
Java sdk 11
Maven 3.6.3
I have already set up everything, the path variables, JAVA_HOME, mvn. All of them work fine, even trying to build other type of projects with "older" versions of AEM like 6.5 build perfectly. I don't have a problem with them. But with this version of AEM I am getting this error
[WARNING] Rule 9: org.apache.maven.plugins.enforcer.RequireFileChecksum failed with message:
There have been changes detected in a file which is supposed to be immutable according to https://docs.adobe.com/content/help/en/experience-manager-cloud-service/implementing/content-delivery/disp-overview.html#file-structure: src/conf.dispatcher.d/renders/default_renders.any
[WARNING] Rule 10: org.apache.maven.plugins.enforcer.RequireFileChecksum failed with message:
There have been changes detected in a file which is supposed to be immutable according to https://docs.adobe.com/content/help/en/experience-manager-cloud-service/implementing/content-delivery/disp-overview.html#file-structure: src/conf.dispatcher.d/virtualhosts/default_virtualhosts.any
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for xxxxxx 1.0.0-SNAPSHOT:
[INFO]
[INFO] xxxxxx ................................. SUCCESS [ 0.270 s]
[INFO] xxxxxx - Core .......................... SUCCESS [ 59.232 s]
[INFO] xxxxxx - UI Frontend ................... SUCCESS [ 19.876 s]
[INFO] xxxxxx - UI Frontend React ............. SUCCESS [ 39.613 s]
[INFO] xxxxxx - Repository Structure Package .. SUCCESS [ 0.991 s]
[INFO] xxxxxx - UI apps ....................... SUCCESS [ 12.990 s]
[INFO] xxxxxx - UI content .................... SUCCESS [ 4.178 s]
[INFO] xxxxxx - UI config ..................... SUCCESS [ 0.314 s]
[INFO] xxxxxx - All ........................... SUCCESS [ 1.052 s]
[INFO] xxxxxx - Integration Tests ............. SUCCESS [ 12.166 s]
[INFO] xxxxxx - Dispatcher .................... FAILURE [ 0.030 s]
[INFO] xxxxxx - UI Tests ...................... SKIPPED
[INFO] xxxxxx - Project Analyser .............. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:34 min
[INFO] Finished at: 2021-08-22T15:11:20-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M3:enforce (enforce-checksum-of-immutable-files) on project xxxxxxx.dispatcher.cloud: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :xxxxxx.dispatcher.cloud
I've been searching in sites, some of the answers for this problem haven't work for me.
I tried to run everything from the "gitbash"
command line and I had the same problem.
I tried to change the version in the pom.xml, didnt work.
I tried to build the project using eclipse IDE and all the build-in tools, I get an error that org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M3:enforce is missing
Disable firewall and antivirus, nope
Use other versions of maven like 3.8.2
Delete the .m2 directory and download again all the plugins, not working
One of many answers tell me to comment out the dispatcher module in the pom.xml and after I did that builds fine. Other is doing the same and upload the ui.apps/target/*.zip with the crx package manager I did it but im not sure if the result is the "best".
To end, I installed the same project in a Mac Pro and i did without a problem. I hope someone can help me with this. Thanks for reading.
[WARNING] Rule 9: org.apache.maven.plugins.enforcer.RequireFileChecksum failed with message:
There have been changes detected in a file which is supposed to be immutable according to https://docs.adobe.com/content/help/en/experience-manager-cloud-service/implementing/content-delivery/disp-overview.html#file-structure: src/conf.dispatcher.d/renders/default_renders.any
The Maven Enforcer Plugin is checking for some files to have an specific checksum using requireFileChecksum rule
Somewhere in your pom.xml the Enforcer Maven plugin should be declared, so you will be able to see the rule and the hash it is applying. This xml snippet is from the maven plugin documentation.
<requireTextFileChecksum>
<file>E:\java-workspace\apache-maven-enforcer\maven-enforcer\target\checkout\enforcer-rules\target\classes/foo.txt</file>
<checksum>d41d8cd98f00b204e9800998ecf8427e</checksum>
<type>md5</type>
</requireTextFileChecksum>
Check that hash against the hash of the file of your filesystem. Maybe when you change aem version, you need to upgrade some of those files.
As discussed here: https://github.com/adobe/aem-guides-wknd/pull/202
Adobe have reported the issue and the fix to Adobe AEM WKND project:
Some Windows users experience a Maven enforcer issue where it appears that default dispatcher files have been modified. Unclear if this is a result of differences between Mac and Windows or something that occurs during the checkout process. Most users simply want to install the code base to a local environment and this check is unnecessary. Removing the enforcement for windows builds.
so you can :
Skips Dispatcher enforcement plugin for users on windows environments.
doing a change you dispatcher/pom.xml
with the commit reported here:
https://github.com/adobe/aem-guides-wknd/pull/202/commits/bebcf5d2236c75a95055d5ff71ea58f66379f271
replacing the line:
<goal>enforce</goal>
with:
<goal>display-info</goal>

Jira SDK: atlas-create-jira-plugin fails due to Google Analytics

I am currently trying to start developing a Jira plugin. However, I needed to configure the Maven settings to use my company's proxy server. This proxy seems to block the google analytics server.
When I try to create a new plugin project following the official tutorial the step 2 (execute atlas-create-jira-plugin) produces the following error:
PS C:\Users\XXX\Documents\Jira Plugins\test> atlas-create-jira-plugin
Executing: "C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.7\apache-maven-3.5.4\bin\mvn.cmd" com.atlassian.maven.plugins:jira-maven-plugin:8.1.2:create -gs C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.7\apache-maven-3.5.4/conf/settings.xml
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- jira-maven-plugin:8.1.2:create (default-cli) # standalone-pom ---
[INFO] Google Analytics Tracking is enabled to collect AMPS usage statistics.
[INFO] Although no personal information is sent, you may disable tracking by adding <allowGoogleTracking>false</allowGoogleTracking> to the amps plugin configuration in your pom.xml
[INFO] Sending event to Google Analytics: AMPS:jira - Create Plugin
[INFO] using stable product version: 7.13.0
[INFO] using stable data version: 7.13.0
Define value for groupId: : [ERROR] Error making tracking request
java.net.UnknownHostException: www.google-analytics.com
at java.net.AbstractPlainSocketImpl.connect (AbstractPlainSocketImpl.java:184)
at java.net.PlainSocketImpl.connect (PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect (SocksSocketImpl.java:392)
at java.net.Socket.connect (Socket.java:607)
at java.net.Socket.connect (Socket.java:556)
at sun.net.NetworkClient.doConnect (NetworkClient.java:180)
at sun.net.www.http.HttpClient.openServer (HttpClient.java:463)
at sun.net.www.http.HttpClient.openServer (HttpClient.java:558)
at sun.net.www.http.HttpClient.<init> (HttpClient.java:242)
at sun.net.www.http.HttpClient.New (HttpClient.java:339)
at sun.net.www.http.HttpClient.New (HttpClient.java:357)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient (HttpURLConnection.java:1226)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0 (HttpURLConnection.java:1205)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect (HttpURLConnection.java:1056)
at sun.net.www.protocol.http.HttpURLConnection.connect (HttpURLConnection.java:990)
at com.dmurph.tracking.JGoogleAnalyticsTracker.dispatchRequest (JGoogleAnalyticsTracker.java:463)
at com.dmurph.tracking.JGoogleAnalyticsTracker.access$100 (JGoogleAnalyticsTracker.java:76)
at com.dmurph.tracking.JGoogleAnalyticsTracker$1.run (JGoogleAnalyticsTracker.java:431)
As I said, I am pretty sure that java.net.UnknownHostException: www.google-analytics.com is caused by my company's proxy.
I then tried to disable google analytics. The problem is: the command does not create any project files until here and so there is no pom.xml that I could edit. When I try to edit the default Maven profile in ~/.m2/settings.xml as described here, Maven complains that the project does not have a pom.xml:
Executing: "C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.7\apache-maven-3.5.4\bin\mvn.cmd" com.atlassian.maven.plugins:jira-maven-plugin:8.1.2:create -gs C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.7\apache-maven-3.5.4/conf/settings.xml
[INFO] Scanning for projects...
[WARNING] The POM for com.atlassian.maven.plugins:jira-maven-plugin:jar:8.1.2 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.268 s
[INFO] Finished at: 2021-06-18T15:08:01+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin com.atlassian.maven.plugins:jira-maven-plugin:8.1.2 or one of its dependencies could not be resolved: Failure to find com.atlassian.maven.plugins:jira-maven-plugin:jar:8.1.2 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [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/PluginResolutionException
Finally, when I try to execute atlas-create-jira-plugin -Dallow.google.tracking=false (also described here) I am getting a similar error:
Executing: "C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.7\apache-maven-3.5.4\bin\mvn.cmd" com.atlassian.maven.plugins:jira-maven-plugin:8.1.2:create -gs C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.7\apache-maven-3.5.4/conf/settings.xml -Dallow .google.tracking=false
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.203 s
[INFO] Finished at: 2021-06-18T15:14:56+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (C:\Users\KUJ5MU\Documents\Jira Plugins\test). Please verify you invoked Maven from the correct directory. -> [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/MissingProjectException
Does anyone have a solution for this problem? How can I tell the Atlassian SDK not to use Google analytics before creating my first project?
Ignore that error. you can see that error occured after "group id:". So just give ur groupid after the error and press enter. it will as k for the other settings. You can contine from there without issues.

Maven deployment for GCP App Engine on Gitlab

I am using Maven to deploy a Java application on GitLab. I receive the following error. From what I understand it is using the the incorrect project and I don't understand which environment variable if they are using one or where they are getting that variable from. Every time I try to debug deploying with Maven on Gitlab I run into a new error is there a proper way to deploy on Gitlab?
This is my yml file
before_script:
- echo "deb http://packages.cloud.google.com/apt cloud-sdk-jessie main" | tee /etc/apt/sources.list.d/google-cloud-sdk.list
- curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
- apt-get update && apt-get install -y google-cloud-sdk google-cloud-sdk-app-engine-java
- wget https://www-us.apache.org/dist/maven/maven-3/3.6.0/binaries/apache-maven-3.6.0-bin.tar.gz
- tar xzvf apache-maven-3.6.0-bin.tar.gz
test:1.1:
image: python:2.7
stage: deploy
environment: Production
only:
- master
script:
- echo $DEPLOY_KEY_FILE_PRODUCTION > $CI_PIPELINE_ID.json
- gcloud auth activate-service-account --key-file $CI_PIPELINE_ID.json
- ./apache-maven-3.6.0/bin/mvn clean appengine:deploy
This is the error
Dec 17, 2018 8:08:54 PM com.google.cloud.tools.appengine.cloudsdk.CloudSdk logCommand
INFO: submitting command: /usr/lib/google-cloud-sdk/bin/gcloud app deploy
[INFO] GCLOUD: ERROR: (gcloud.app.deploy) Permissions error fetching application [apps/gitlab-ci-155816]. Please make sure you are using the correct project ID and that you have permission to view applications on the project.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 45.781 s
[INFO] Finished at: 2018-12-17T20:08:55Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.google.cloud.tools:appengine-maven-plugin:1.3.2:deploy (default-cli) on project appengine-try-java: Execution default-cli of goal com.google.cloud.tools:appengine-maven-plugin:1.3.2:deploy failed: Non zero exit: 1 -> [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/PluginExecutionException

org.apache.maven.plugins:maven-enforcer-plugin:1.4.1:enforce

I tried to run Optaplanner's vrp-dataset-generator. But I have some errors. And I tried to run Optaplanner web examples but it has also error.
This is Web example Error.
## at
org.apache.maven.surefire.junit4.JUnit4Provider.invoke
(JUnit4Provider.java:128)
Results :
Tests in error:
JUnit4Provider.invoke:128->executeTestSet:153->executeWithRerun:173-
>execute:283 ▒ ExceptionInInitializer
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
[INFO] ---------------------------------------------------------------------
---
[INFO] BUILD FAILURE
[INFO] ---------------------------------------------------------------------
---
[INFO] Total time: 01:48 min
[INFO] Finished at: 2018-01-28T11:17:13+02:00
[INFO] Final Memory: 78M/149M
[INFO] ---------------------------------------------------------------------
---
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-
plugin:2.18.1:test (default-test) on project optaplanner-webexamples: There
are test failures.
[ERROR]
[ERROR] Please refer to F:\optaplanner\optaplanner-master\optaplanner-
webexamples\target\surefire-reports for the individual test results.
[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
And this is vrp-dataset-generator's error.
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (no-managed-deps) #
vrpdatasetgenerator ---
[WARNING] Rule 0: org.commonjava.maven.enforcer.rule.EnforceManagedDepsRule
failed with message:
The following 1 dependencies are NOT using a managed version:
- com.graphhopper:graphhopper:jar
[INFO] ---------------------------------------------------------------------
---
[INFO] BUILD FAILURE
[INFO] ---------------------------------------------------------------------
---
[INFO] Total time: 26.236 s
[INFO] Finished at: 2018-01-28T11:26:19+02:00
[INFO] Final Memory: 35M/118M
[INFO] ---------------------------------------------------------------------
---
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-
plugin:1.4.1:enforce (no-managed-deps) on project vrpdatasetgenerator: Some
Enforcer rules have failed. Look above for specific messages explaining why
the rule failed. -> [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/MojoExecutionException ##
I think I have some issue in Maven, but I can't find errors.
Please help me.
This question is mixing 2 separate questions into one question, which creates a lot of confusion. One is about optaplanner-webexamples, one is about the external repo vrp-dataset-generator.
vrp-dataset-generator is not a part of OptaPlanner. It's not in the OptaPlanner GitHub repository. It's an experimental repo in my GitHub repo. Some day it might be cleaned up and some of the code might be added in optaplanner-examples (or optashift-vehicle-routing when we start that), but today it's not ready for mass-consumption.
(Anyway, the reason vrp-dataset-generator is apparently failing is in the maven pom, that dependency's version should be declared in dependencyManagment instead of just dependencies.)
optaplanner-webexamples should build from source. If it doesn't, well want to figure out why and see if we can improve something in the sources. There's a jenkins job doing also building it and it's green, so it must be something that's different on your local machine. Can you edit your question to include the failing unit test and it's stacktrace? Also state your JDK, maven and wildfly versions.

mvn appengine:devserver error

I'm using window OS
I'm doing like this (using google api in java)
https://github.com/aliciatang/CalendarSync
when I writing mvn appengine:devserver, It got error
[INFO] Retrieving Google App Engine Java SDK from Maven
Downloading: https://repo.maven.apache.org/maven2/com/google/appengine/appengine-java-sdk/1.9.21/appengine-java-sdk-1.9.21.zip
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 34:22 min
[INFO] Finished at: 2017-08-04T18:52:58+09:00
[INFO] Final Memory: 19M/154M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.google.appengine:appengine-maven-plugin:1.9.21:devserver (default-cli) on project gcal: Could not resolve SDK artifact in Maven.: Could not transfer artifact com.google.appengine:appengine-java-sdk:zip:1.9.21 from/to central (https://repo.maven.apache.org/maven2): GET request of: com/google/appengine/appengine-java-sdk/1.9.21/appengine-java-sdk-1.9.21.zip from central failed: Connection reset -> [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/MojoExecutionException
I can't solve this problem!!
This works for me:
gcloud components update //Update gcloud
mvn clean package //Rebuild app
mvn appengine:run //Run on local server (Jetty) (This replace: mvn appengine:devserver)
Go to the browser: http://localhost:8080/
Happy coding !!!

Categories