java-design-patterns
java-design-patterns copied to clipboard
Executable jar problem
The project includes Maven Assembly plugin to produce executable jars out of all the submodules (individual patterns). However, there currently seems to be a problem with the intended behaviour.
Steps to reproduce:
- At the project root build everything, i.e.
mvn clean package -DskipTests=true
- Execute one of the produced jars, e.g.
java -jar spatial-partition/target/spatial-partition-1.26.0-SNAPSHOT.jar
Expected behaviour
- The spatial partition jar is executed and the pattern example runs without problems
Actual behavior
- An error message
no main manifest attribute, in spatial-partition/target/spatial-partition-1.26.0-SNAPSHOT.jar
is printed
Hello @iluwatar Can you give me chance to solve above issue ? If yes then I'm willing to contribute over here and want to help you to solve executable jar problem.
Thank you in advance
Can I have a look here ?
@satyajitbhatt are you working on it?
No, I am not.
On Sun, Sep 24, 2023, 8:49 PM Ilkka Seppälä @.***> wrote:
@satyajitbhatt https://github.com/satyajitbhatt are you working on it?
— Reply to this email directly, view it on GitHub https://github.com/iluwatar/java-design-patterns/issues/2565#issuecomment-1732595463, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQA37LBSGJBBQPEG7M7L453X4BFPXANCNFSM6AAAAAA3XDA7MQ . You are receiving this because you were mentioned.Message ID: @.***>
@iluwatar I want to go through the issue and work upon it
Hi @iluwatar here we have 2 approaches to solve this bug a) add the name of main class to the jar file b) create the jar file as an executable jar
I am trying hard to contribute but getting an error Unable to access jarfile spatial-partition/target/spatial-partition-1.26.0-SNAPSHOT.jar. It would be helpful if you review it once and suggest me something better @iluwatar
Assigned to @Navneetsinghnegi
I would Like to work on this issue.
This issue has been automatically marked as stale because it has not had recent activity. The issue will be unassigned if no further activity occurs. Thank you for your contributions.