There is a maven project, created its jar file, when I run through the console, I get the error no mainfest attribute in Greeting.jar. In the console, I write java -jar Greeting.jar.
Manifest-Version: 1.0 Class-Path: D: \ Programming \ Projects \ Java \ Greeting \ src \ main \ java Main-Class: Main
in the environment settings, the PATH pointed out.
The file maven is written
http://maven.apache.org/xsd/maven-4.0.0.xsd "> 4.0.0
<groupId>com.time</groupId> <artifactId>mainTime</artifactId> <version>1.0-SNAPSHOT</version> <build> <plugins> <plugin> <groupId>com.time</groupId> <artifactId>mainTime</artifactId> <version>1.0-SNAPSHOT</version> <configuration> <archive> <manifest> <addClasspath>true</addClasspath> <mainClass>Main</mainClass> </manifest> </archive> </configuration> </plugin> </plugins> </build>
pom.xmlpart<build>....</build>- Chubatiybuild? Bring pozh. for example the wholebuildsection - Chubatiy