<dependency>
<groupId>org.apache.phoenix</groupId>
<artifactId>phoenix-4.14.0-cdh5.14.2</artifactId>
<version>client</version>
</dependency>
maven下载不到jar就搜索下载jar包,之后使用maven install将jar包install到本地仓库
mvn install:install-file -DlocalRepositoryPath=D:\Home\Java\tools\repository -Dfile=phoenix-4.14.0-cdh5.14.2-client.jar -DgroupId=org.apache.phoenix -DartifactId=phoenix-4.14.0-cdh5.14.2 -Dversion=client -Dpackaging=jar
Idea启动是正常的,打包启动就报错 什么unsupport zip64之类的
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.1.6.RELEASE</version>
</dependency>
</dependencies>
<configuration>
<keepDependenciesWithProvidedScope>true</keepDependenciesWithProvidedScope>
<createDependencyReducedPom>true</createDependencyReducedPom>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>META-INF/spring.handlers</resource>
</transformer>
<transformer
implementation="org.springframework.boot.maven.PropertiesMergingResourceTransformer">
<resource>META-INF/spring.factories</resource>
</transformer>
<transformer
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>META-INF/spring.schemas</resource>
</transformer>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<manifestEntries>
<Main-Class>com.xzkj.kafka.KafkaApplication</Main-Class>
</manifestEntries>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
任何maven仓库下载不到的依赖,从网上下载到,然后使用mvn install 到本地仓库,然后就不用使用systemPath来引用了,免得打包的时候,不会被打包进去.
------------------------------------------------------------------------------------------------------------------------------------ 一只弱弱的小菜鸡
------------------------------------------------------------------------------------------------------------------------------------2019年12月27日11:54:50