解决 jersey 单jar包 IME media type text/plain was not found.
2017-03-01 22:23
204 查看
1、maven-assembly-plugin 换成 --> maven-shade-plugin
2、jersey-bundle插件
<plugins> <!-- shade插件打包成jar包 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>2.4.2</version> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> <configuration> <transformers> <!-- use transformer to handle merge of META-INF/services - see CodeGo.net --> <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /> <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> <manifestEntries> <Main-Class>com.pf.task.slave.start.SlaveRun</Main-Class> </manifestEntries> </transformer> </transformers> <filters> <!-- filter to address "Invalid signature file" issue - see CodeGo.net --> <filter> <artifact>*:*</artifact> <excludes> <exclude>META-INF/*.SF</exclude> <exclude>META-INF/*.DSA</exclude> <exclude>META-INF/*.RSA</exclude> </excludes> </filter> </filters> </configuration> </execution> </executions> </plugin>
2、jersey-bundle插件
相关文章推荐
- Jetty提示错误MIME media type text/plain was not found
- Jersey与Spring整合异常:MIME media type, application/json, was not found
- Jersey: MessageBodyWriter not found for media type=application/json
- 解决“The Apache Portable Runtime which allows optimal performance in production environments was not found on the java.library.pat
- Could not find jar tool executable & Target is not a JDK root.System library was not found.
- Specified VM install not found: type Standard VM, name Java 如何解决
- 解决Tomcat启动报错:The Apache Tomcat Native library which allows optimal performance in production environments was not found on the j
- “cvc-complex-type.2.4.a: Invalid content was found starting with element 'taglib'”错误的解决办法
- 解决:The Apache Tomcat Native library which allows optimal performance in production environments was not found
- 修改包名——解决htc hd使用gson时的TypeNotFoundException
- [转]解决:The Apache Tomcat Native library which allows optimal performance in production environments was not found
- ClassNotFoundException : Com.Sun.Jersey.Spi.Container.Servlet.ServletContainer解决
- A valid provisioning profile for this executable was not found.问题的解决
- CXF报错后,独立解决->unwinding now Response was of unexpected text/html ContentType.
- .Net Remoting 排错笔记:The constructor to deserialize an object of type 'xxx.xxxx.xxxxx' was not found.
- ClassNotFoundException : Com.Sun.Jersey.Spi.Container.Servlet.ServletContainer解决
- "Borland license information was found,but it is not valid for delphi." 的解决方法
- Deserialization Problems ... The constructor to deserialize an object of type ... was not found
- The requested URL /OA_HTML/AppsLogin was not found on this server. 的一个解决办法
- 错误:A field or property with the name 'XXX' was not found on the selected data source 解决