<propreties>
<name>BYSJname>
<url>http://www.example.comurl>
propreties>
<propreties>
<project.build.sourceEncoding>UTF-8project.build.sourceEncoding>
<maven.compiler.source>1.8maven.compiler.source>
<maven.compiler.target>1.8maven.compiler.target>
propreties>
<propreties>
<dependencies>
<dependency>
<groupId>junitgroupId>
<aftifacitId>junitaftifacitId>
<version>4.8.2version>
<scope>testscope>
dependency>
<dependency>
<groupId>mysqlgroupId>
<aftifacitId>mysql-connect-javaaftifacitId>
<version>8.0.21version>
dependency>
dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.pluginsgroupId>
<aftifactId>maven-assembly-pluginaftifactId>
<version>2.5.5version>
<configuration>
<archive>
<manifest>
<maniClass>com.roadjava.AppmaniClass>
manifest>
archive>
<descriptorRefs>
<descriptorRef>jar-with-dependenciesdescriptorRef>
descriptorRefs>
configuration>
<executions>
<execution>
<id>one_jarid>
<phase>packagephase>
<goals>
<goal>singlegoal>
goals>
execution>
executions>
plugin>
plugins>
build>
propreties>
是需要什么插件吗,请问去哪里下载。。
需要在maven工程中加打包插件,直接在pom文件导入就行,然后在配置文件声明打包成jar包,然后在maven中点击打包即可打包
这不是pom在报错么
点击这个就行
可以参考我之前写的一篇文章:
https://blog.csdn.net/weixin_53036603/article/details/128211312