Generate jar file in Maven with dependencies and tests
问题 I use this code in pom.xml to create a jar file. <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <configuration> <excludes> <exclude>**/log4j.properties</exclude> </excludes> <archive> <manifest> <mainClass>test.LeanFTest</mainClass> </manifest> </archive> </configuration> </plugin> I got error message: Deployment failed: repository element was not specified in the POM inside distribution UPDATE: I added another plugin in pom.xml. <plugin>