kymbrik
11/15/2017 - 1:02 PM

No main manifest attribute, in jar

<build>
	<plugins>
		<plugin>
			<!-- Build an executable JAR -->
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-jar-plugin</artifactId>
			<version>2.4</version>
			<configuration>
				<archive>
					<manifest>
						<mainClass>com.roufid.tutorials.AppTest</mainClass>
					</manifest>
				</archive>
			</configuration>
		</plugin>
	</plugins>
</build>
Consider that the the fully qualified name of your Main class is com.roufid.tutorials.AppTest

Launch a clean install on your application

mvn clean install
Run your executable jar using the following command :

java -jar AppTest-0.0.1-SNAPSHOT.jar