Commit 8b6dd80
Use 'mvn dependency:copy-dependencies' to populate the lib/ directory of
runtime jars that the MANIFEST.MF Class-Path entries reference. Without
this the image only contained the thin jar and Java threw:
NoClassDefFoundError: io/grpc/BindableService
The jar's MANIFEST.MF (set by maven-jar-plugin classpathPrefix=lib/) expects
dependencies at lib/ relative to the jar, i.e. /tika/libs/lib/ in the image.
Running dependency:copy-dependencies into that path after the main build
ensures all runtime deps are present.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent cb20b84 commit 8b6dd80
2 files changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
110 | 113 | | |
111 | 114 | | |
112 | 115 | | |
113 | 116 | | |
114 | 117 | | |
115 | | - | |
| 118 | + | |
116 | 119 | | |
117 | 120 | | |
| 121 | + | |
118 | 122 | | |
119 | 123 | | |
120 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
104 | 107 | | |
105 | 108 | | |
106 | 109 | | |
107 | 110 | | |
108 | 111 | | |
109 | | - | |
| 112 | + | |
110 | 113 | | |
111 | 114 | | |
| 115 | + | |
112 | 116 | | |
113 | 117 | | |
114 | 118 | | |
| |||
0 commit comments