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

Failure building bolt-quarkus-examples locally #1433

Open
bruceadowns opened this issue Feb 2, 2025 · 1 comment
Open

Failure building bolt-quarkus-examples locally #1433

bruceadowns opened this issue Feb 2, 2025 · 1 comment
Labels
project:bolt question M-T: User needs support to use the project

Comments

@bruceadowns
Copy link

bruceadowns commented Feb 2, 2025

I am unable to build (mvn install) bolt-quarkus-examples, failling with a packaging error.

$ mvn -version
Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
Maven home: /opt/homebrew/Cellar/maven/3.9.9/libexec
Java version: 21.0.6, vendor: Azul Systems, Inc., runtime: /Users/downsb/Library/Java/JavaVirtualMachines/azul-21.0.6/Contents/Home
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "14.7.3", arch: "aarch64", family: "mac"

$ mvn install
[INFO] Scanning for projects...
[INFO] 
[INFO] ----------------< com.slack.api:bolt-quarkus-examples >-----------------
[INFO] Building bolt-quarkus-examples 1.45.3-SNAPSHOT
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- enforcer:1.2:enforce (enforce-maven) @ bolt-quarkus-examples ---
[INFO] 
[INFO] --- jacoco:0.8.7:prepare-agent (default) @ bolt-quarkus-examples ---
[INFO] argLine set to -javaagent:/Users/downsb/.m2/repository/org/jacoco/org.jacoco.agent/0.8.7/org.jacoco.agent-0.8.7-runtime.jar=destfile=/Users/downsb/dev/github.com/slackapi/java-slack-sdk/bolt-quarkus-examples/target/jacoco.exec
[INFO] 
[INFO] --- resources:2.6:resources (default-resources) @ bolt-quarkus-examples ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] 
[INFO] --- quarkus:2.16.11.Final:generate-code (default) @ bolt-quarkus-examples ---
[INFO] 
[INFO] --- compiler:3.8.1:compile (default-compile) @ bolt-quarkus-examples ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- quarkus:2.16.11.Final:generate-code-tests (default) @ bolt-quarkus-examples ---
[INFO] 
[INFO] --- resources:2.6:testResources (default-testResources) @ bolt-quarkus-examples ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/downsb/dev/github.com/slackapi/java-slack-sdk/bolt-quarkus-examples/src/test/resources
[INFO] 
[INFO] --- compiler:3.8.1:testCompile (default-testCompile) @ bolt-quarkus-examples ---
[INFO] No sources to compile
[INFO] 
[INFO] --- surefire:3.2.5:test (default-test) @ bolt-quarkus-examples ---
[INFO] No tests to run.
[INFO] 
[INFO] --- jacoco:0.8.7:report (report) @ bolt-quarkus-examples ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO] 
[INFO] --- jar:3.2.0:jar (default-jar) @ bolt-quarkus-examples ---
[INFO] Building jar: /Users/downsb/dev/github.com/slackapi/java-slack-sdk/bolt-quarkus-examples/target/bolt-quarkus-examples-1.45.3-SNAPSHOT.jar
[INFO] 
[INFO] >>> source:3.0.1:jar (attach-sources) > generate-sources @ bolt-quarkus-examples >>>
[INFO] 
[INFO] --- enforcer:1.2:enforce (enforce-maven) @ bolt-quarkus-examples ---
[INFO] 
[INFO] --- jacoco:0.8.7:prepare-agent (default) @ bolt-quarkus-examples ---
[INFO] argLine set to -javaagent:/Users/downsb/.m2/repository/org/jacoco/org.jacoco.agent/0.8.7/org.jacoco.agent-0.8.7-runtime.jar=destfile=/Users/downsb/dev/github.com/slackapi/java-slack-sdk/bolt-quarkus-examples/target/jacoco.exec
[INFO] 
[INFO] <<< source:3.0.1:jar (attach-sources) < generate-sources @ bolt-quarkus-examples <<<
[INFO] 
[INFO] 
[INFO] --- source:3.0.1:jar (attach-sources) @ bolt-quarkus-examples ---
[INFO] Building jar: /Users/downsb/dev/github.com/slackapi/java-slack-sdk/bolt-quarkus-examples/target/bolt-quarkus-examples-1.45.3-SNAPSHOT-sources.jar
[INFO] 
[INFO] --- quarkus:2.16.11.Final:build (default) @ bolt-quarkus-examples ---
[INFO] [io.quarkus.deployment.pkg.steps.JarResultBuildStep] Building uber jar: /Users/downsb/dev/github.com/slackapi/java-slack-sdk/bolt-quarkus-examples/target/bolt-quarkus-examples-1.45.3-SNAPSHOT-runner.tmp
[INFO] [io.quarkus.deployment.QuarkusAugmentor] Quarkus augmentation completed in 1779ms
[INFO] 
[INFO] --- install:3.1.2:install (default-install) @ bolt-quarkus-examples ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  3.518 s
[INFO] Finished at: 2025-02-02T10:09:38-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:3.1.2:install (default-install) on project bolt-quarkus-examples: The packaging plugin for project bolt-quarkus-examples did not assign a main file to the project but it has attachments. Change packaging to 'pom'. -> [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

Reproducible in:

mvn dependency:tree | grep com.slack.api
gradle dependencies | grep com.slack.api
java -version
sw_vers && uname -v # or `ver`

The Slack SDK version

(Paste the output of mvn dependency:tree | grep com.slack.api or gradle dependencies | grep com.slack.api)

Java Runtime version

(Paste the output of java -version)

OS info

(Paste the output of sw_vers && uname -v on macOS/Linux or ver on Windows OS)

Steps to reproduce:

(Share the commands to run, source code, and project settings (e.g., pom.xml/build.gradle))

Expected result:

(Tell what you expected to happen)

Actual result:

(Tell what actually happened with logs, screenshots)

Requirements

Please make sure if this topic is specific to this SDK. For general questions/issues about Slack API platform or its server-side, could you submit questions at https://my.slack.com/help/requests/new instead. 🙇

Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you agree to those rules.

@seratch seratch added question M-T: User needs support to use the project project:bolt and removed untriaged labels Feb 3, 2025
@seratch
Copy link
Member

seratch commented Feb 3, 2025

Hi @bruceadowns, thanks for writing in. If you want to run the sub project in this repo, please follow the steps described at https://github.com/slackapi/java-slack-sdk/blob/main/bolt-quarkus-examples/README.md#how-to-run-on-your-local-machine but perhaps you're thinking of adding bolt dependencies to your own Quarkus project. If that's the case, you can create a new blank Quarkus project using their standard way, and then reuse the build settings and source files in this repo for the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
project:bolt question M-T: User needs support to use the project
Projects
None yet
Development

No branches or pull requests

2 participants