How to use external jar in springboot project
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 25/100
- Issue type
- Documentation
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- java, spring-boot
- Domain
- build-system
Research direction
Start with the issue's Maven dependency configuration and the java -jar springboot-sample.war -classpath ... command. Determine what documented usage should cover for the external okm-spring-plugins-0.0.1-SNAPSHOT.jar, and consider the question resolved when the project has a clear, reproducible way to use that jar without the absolute systemPath dependency.
Written by the indexing model from the issue text.
Description
Hi,
I have a spring boot project what is using spring-plugin, my project is named springboot-sample ( it builds a springboot-sample.war ). My plugins code are in a external project, what build a jar file ( okm-spring-plugins-0.0.1-SNAPSHOT.jar ).
Currently, if I add in my spring boot project (war file ) the next dependency, I get it working:
....
<dependency>
<groupId>com.test</groupId>
<artifactId>okm-spring-plugins</artifactId>
<version>0.0.1-SNAPSHOT</version>
<scope>system</scope>
<systemPath>/software/git/test-spring-plugin/okm-spring-plugins/target/okm-spring-plugins-0.0.1-SNAPSHOT.jar</systemPath>
</dependency>
...
I have tried to remove the dependency and set the plugin's jar from the command line:
java -jar springboot-sample.war -classpath /software/git/test-spring-plugin/okm-spring-plugins/target/
But seems is not working, any suggestion will be appreciated.
Thanks for your time.
- Dominant language
- Java
- Stars
- 481
- Forks
- 129
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from spring-projects/spring-plugin
-
Release 4.2 M2 Openin: infrastructure
Difficulty 5/5 Over a week Newbie friendliness 20/100
spring-projects/spring-plugin#158 ·
-
in: infrastructure type: dependency-upgrade
spring-projects/spring-plugin#156 · 1 assignee ·
-
waiting for feedback
Difficulty 3/5 1-2 days Newbie friendliness 48/100
spring-projects/spring-plugin#102 · 5 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
spring-projects/spring-plugin#74 · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 25/100
All issues in spring-projects/spring-plugin
Similar issues
-
area-deployment area-integrations triage:bot-seen
Difficulty 2/5 Half a day Newbie friendliness 86/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
apache/flink-agents#1156 ·
-
[source-shopify] FAILED bulk operation without partialDataUrl is silently treated as successful Openarea/connectors autoteam community connectors/source/shopify needs-triage team/use type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100