I used 'mvn install' and 'mvn exec:java' to start my project, but the error occurred as the title. What exact 'Mainclass' should I set to 'mojo:exec-maven-plugin'? I tried to delete full m2.repository but it didn't work for me. I also tried to add some code to set the plugin but I don't know what mainclass should I set. Could anyone give me some advise?
my pom file shows below:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<developers>
<developer>
<id>TaehoonK</id>
<name>Taehoon Kim</name>
<email>taehoon.kim@pusan.ac.kr</email>
<organization>Pusan National University</organization>
<roles>
<role>Module Maintainer</role>
<role>Java Developer</role>
</roles>
</developer>
</developers>
<organization>
<name>STEMLab in Pusan National University</name>
<url>http://stem.pnu.edu</url>
</organization>
<properties>
<jar.name>simmApplication</jar.name>
<lib.dir>lib</lib.dir>
</properties>
<groupId>edu.pnu.stem</groupId>
<artifactId>OpenGDS_Conversion</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<build>
<plugins>
<!-- ======================================================= -->
<!-- JAR packaging. -->
<!-- ======================================================= -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<configuration>
<finalName>${jar.name}</finalName>
<outputDirectory>${project.basedir}</outputDirectory>
<archive>
<manifest>
<mainClass>edu.pnu.stem.convert.MainForm</mainClass>
<addClasspath>true</addClasspath>
<classpathPrefix>${lib.dir}/</classpathPrefix>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.3</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
</execution>
</executions>
<configuration>
<outputDirectory>${project.basedir}/${lib.dir}</outputDirectory>
<overWriteIfNewer>true</overWriteIfNewer>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
<inherited>false</inherited>
<executions>
<execution>
<id>copy-resources</id>
<phase>install</phase>
<goals>
<goal>copy-resources</goal>
</goals>
</execution>
</executions>
<configuration>
<encoding>UTF-8</encoding>
<outputDirectory>${basedir}/target</outputDirectory>
<resources>
<resource>
<filtering>true</filtering>
<directory>${basedir}</directory>
<includes>
<include>VERSION.txt</include>
</includes>
</resource>
</resources>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<fork>true</fork>
<encoding>utf-8</encoding>
<maxmem>512M</maxmem>
</configuration>
</plugin>
</plugins>
</build>
</project>