Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pom.xml文件中替换maven-assembly-plugin部门。原因,使用原代码打成的jar 不包含第三方的jar文件,运行是报错 #3

Open
yaoyuanyy opened this issue Apr 25, 2022 · 0 comments

Comments

@yaoyuanyy
Copy link

yaoyuanyy commented Apr 25, 2022

pom.xml文件中替换maven-assembly-plugin部门。原因,使用原代码打成的jar 不包含第三方的jar文件,运行是报错:ClassNotFound:xxxx

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-assembly-plugin</artifactId>
  <version>2.4</version>
  <configuration>
      <descriptorRefs>
          <descriptorRef>jar-with-dependencies</descriptorRef>
      </descriptorRefs>
  </configuration>
  <executions>
      <execution>
          <phase>package</phase>
          <goals>
              <goal>single</goal>
          </goals>
      </execution>
  </executions>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant