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

Building Jar from source results in 'no main manifest attribute' #25

Open
Rob-Conan opened this issue Sep 21, 2022 · 4 comments
Open

Building Jar from source results in 'no main manifest attribute' #25

Rob-Conan opened this issue Sep 21, 2022 · 4 comments
Assignees

Comments

@Rob-Conan
Copy link

Pulling the latest version of both the source code and the jar file in the releases (https://github.com/fortify/ssc-restapi-client/releases/tag/v22.1) results in an error when attemting to run the application in a stand alone Jar format.

Previous versions of the JAR file allowed for the following command to be run without issue
java -jar ssc-restapi-client.jar.
Running the above command with the latest JAR version results in the error:
no main manifest attribute, in ssc-restapi-client.jar

This issue occurs on regardless of platform or java version used.

@akaryakina akaryakina assigned akaryakina and yarlichev and unassigned akaryakina Sep 27, 2022
@akaryakina
Copy link
Member

@yarlichev I know we upgraded the client to use a different generator for this release. Is there a way to restore the manifest in the generated artifact?

@Rob-Conan
Copy link
Author

Is there any update on this issue?

@akaryakina
Copy link
Member

@Rob-Conan What are you trying to achieve by running it with java -jar? ssc-restapi-client is a library, it needs to be accessed only programmatically from an application. Just put the jar on the classpath and use the ApiClient from your code.

@Rob-Conan
Copy link
Author

Rob-Conan commented Nov 8, 2023 via email

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

No branches or pull requests

3 participants