[jboss-jira] [JBoss JIRA] (WFLY-13620) jaxrs-jwt: The parameters 'mainClass' are missing or invalid
Eduardo Martins (Jira)
issues at jboss.org
Fri Jul 17 07:36:00 EDT 2020
[ https://issues.redhat.com/browse/WFLY-13620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14251428#comment-14251428 ]
Eduardo Martins edited comment on WFLY-13620 at 7/17/20 7:35 AM:
-----------------------------------------------------------------
[~mayerw01] [~rchakrab] I just checked and this is due to wrong instructions in the README.html, the client command should be executed in the client dir. The README.adoc should be fixed regarding this, and also it mentions an Elytron system exceptions script which does not exist, thus such content should be removed too.
Now once you execute the command in the client dir there is an error due to missing commons logging classes, this should be corrected by adding the following dependency to the client/pom.xml:
{code:java}
<dependency>
<groupId>org.jboss.logging</groupId>
<artifactId>commons-logging-jboss-logging</artifactId>
</dependency>
{code}
[~rchakrab] can you please prepare a PR fixing the 3 issues?
was (Author: emmartins):
[~mayerw01] [~emmartins] I just checked and this is due to wrong instructions in the README.html, the client command should be executed in the client dir. The README.adoc should be fixed regarding this, and also it mentions an Elytron system exceptions script which does not exist, thus such content should be removed too.
Now once you execute the command in the client dir there is an error due to missing commons logging classes, this should be corrected by adding the following dependency to the client/pom.xml:
{code:java}
<dependency>
<groupId>org.jboss.logging</groupId>
<artifactId>commons-logging-jboss-logging</artifactId>
</dependency>
{code}
[~rchakrab] can you please prepare a PR fixing the 3 issues?
> jaxrs-jwt: The parameters 'mainClass' are missing or invalid
> -------------------------------------------------------------
>
> Key: WFLY-13620
> URL: https://issues.redhat.com/browse/WFLY-13620
> Project: WildFly
> Issue Type: Bug
> Components: Quickstarts
> Affects Versions: 20.0.0.Final
> Reporter: Wolfgang Mayer
> Assignee: Ranabir Chakraborty
> Priority: Minor
>
> mvn exec:java fails
> [INFO] Reactor Summary for Quickstart: jaxrs-jwt 20.0.0.Final:
> [INFO]
> [INFO] Quickstart: jaxrs-jwt .............................. FAILURE [ 0.361 s]
> [INFO] Quickstart: jaxrs-jwt - client ..................... SKIPPED
> [INFO] Quickstart: jaxrs-jwt - service .................... SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 1.056 s
> [INFO] Finished at: 2020-06-27T13:39:17+02:00
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java (default-cli) on project jaxrs-jwt: The parameters 'mainClass' for goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java are missing or invalid -> [Help 1]
> [ERROR]
> mvn -v
> Apache Maven 3.6.3
> Maven home: /usr/share/maven
> Java version: 14.0.1, vendor: Private Build, runtime: /usr/lib/jvm/java-14-openjdk-amd64
> Default locale: de_DE, platform encoding: UTF-8
> OS name: "linux", version: "5.4.0-39-generic", arch: "amd64", family: "unix"
> Executing the clent directly via:
> $JAVA_HOME/bin/java -classpath $CLASSPATH org.jboss.quickstarts.jaxrsjwt.client.JwtRestClient
> Euns successfully indeed. So this seems to be an issue with the pom.xml
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jboss-jira
mailing list