My problem is similar to many:
I have my application (JT embedded + jersey) and everything Run works. When I try to make an executable jar, I get an error:
org.glassfish.jersey.message.internal.WriterInterceptorExecutor $ TerminalWriterInterceptor aroundWriteTo Grave: MessageBodyWriter Media Type = not for application / json Found, type = class
my POM.XML:
& Lt; Version & gt; 2.3 & lt; / Edition & gt; & Lt; Hanging & gt; & Lt; Execution & gt; & Lt; Step & gt; Package & lt; / Step & gt; & Lt; Goals & gt; & Lt; Goal & gt; Shadow & lt; / Target & gt; & Lt; / Targets & gt; & Lt; Configuration & gt; & Lt; Transformer & gt; & Lt; Transformer implementation = "org.apache.maven.plugins.shade.resource.ManifestResourceTransformer" & gt; & Lt; MainClass & gt; Server.application.DeepDig & lt; / MainClass & gt; & Lt; / Transformer & gt; & Lt; / Transformer & gt; & Lt; Filter & gt; & Lt ;! - Filter "Invalid signature file" to solve the problem - https://stackoverflow.com/a/6743609/589215 - & gt; See. & Lt; Filter & gt; & Lt; Artifact & gt; *: * & Lt; / Artifact & gt; & Lt; Exclude & gt; & Lt; Out to & gt; META-INF / * SF & lt; / Exclude & gt; & Lt; Out to & gt; META-INF / * DSA & lt; / Exclude & gt; & Lt; Out to & gt; META-INF / * RSA & lt; / Exclude & gt; & Lt; / Not included & gt; & Lt; / Filter & gt; & Lt; / Filters & gt; & Lt; / Configuration & gt; & Lt; / Execution & gt; & Lt; / Hanging & gt; & Lt; / Plugin & gt; & Lt; / Plugins & gt;
No comments:
Post a Comment