Это мой pom.xml
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.dht</groupId>
<artifactId>helloworld</artifactId>
<version>1.0.0</version>
<name>hello-world product</name>
<dependencies>
<!-- https://mvnrepository.com/artifact/junit/junit -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.dht.helloworld.HelloWorld</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
<plugins>
Я попробовал это, но не в порядке
пакетcom.dht.helloworld;
открытый класс HelloWorld {
public String sayHello(){
return "Hello Maven";
}
public static void mian(String[] args){
System.out.print(new HelloWorld().sayHello());
}
}
Вот мой pom.xml.Когда я пытаюсь выполнить чистую установку mvn, я получаю сообщение о том, что это нераспознанный тег.Как мне это исправить?