Project terminated error even after placing all the dependencies | Spring Boot Forum
M
Mahesh P Mohite Posted on 23/05/2020


Y
Yogesh Chawla Replied on 23/05/2020

Hi,

There must be something wrong in pom.xml. You can share that too. I will check and correct the same for you.

You can install Community edition of IntelliJ IDEA too using the link below and import the project there.

https://www.jetbrains.com/idea/download/#section=windows

It's easy to build and deploy project there using IntelliJ IDEA and steps are also mentioned as part of videos.

Please try this IDE once and share your pom.

 

Regards


M
Mahesh P Mohite Replied on 23/05/2020

<?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>

<groupId>Spring.example</groupId>
<artifactId>SpringBootMVCRest</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>war</packaging>

<name>SpringBootMVCRest Maven Webapp</name>
<!-- FIXME change it to the project's website -->
<url>http://www.example.com</url>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>

<dependencies>
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.1.2</version>
<type>maven-plugin</type>
</dependency>

<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>5.1.9.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>5.1.9.RELEASE</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
</dependency>
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>javax.servlet.jsp-api</artifactId>
<version>2.3.2-b02</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
</dependencies>

<build>
<finalName>SpringBootMVCRest</finalName>
<plugins>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>3.1.0</version>
</plugin>
<!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_war_packaging -->
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.0.2</version>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.1</version>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>3.2.2</version>
</plugin>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
</plugin>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<port>8055<port/>
</configuration>>
</plugin>
</plugins>
</build>
</project>


M
Mahesh P Mohite Replied on 23/05/2020

hI Yogesh thanks for the quick response appreciatred posted pom.xml

I am new to that IntelliJ  as uptill date i was handyy with Eclipse so Please My question at initial stage might be technical or might be non technical. But I hope you will  assist on all those .

 

Thank you once again

 

Regards

Mahesh


Y
Yogesh Chawla Replied on 24/05/2020

pom.xml is correct. 

There might be something wrong with the build process.

 

Our trainer will see your screen and help you with the build process.


M
Mahesh P Mohite Replied on 28/05/2020

"C:\Program Files\Java\jdk1.8.0_161\bin\java.exe" -Dmaven.multiModuleProjectDirectory=C:\Users\mmohite\IdeaProjects\SpringBootMVCRest "-Dmaven.home=C:\Users\mmohite\IntelliJ IDEA Community Edition 2020.1.1\plugins\maven\lib\maven3" "-Dclassworlds.conf=C:\Users\mmohite\IntelliJ IDEA Community Edition 2020.1.1\plugins\maven\lib\maven3\bin\m2.conf" "-Dmaven.ext.class.path=C:\Users\mmohite\IntelliJ IDEA Community Edition 2020.1.1\plugins\maven\lib\maven-event-listener.jar" "-javaagent:C:\Users\mmohite\IntelliJ IDEA Community Edition 2020.1.1\lib\idea_rt.jar=54501:C:\Users\mmohite\IntelliJ IDEA Community Edition 2020.1.1\bin" -Dfile.encoding=UTF-8 -classpath "C:\Users\mmohite\IntelliJ IDEA Community Edition 2020.1.1\plugins\maven\lib\maven3\boot\plexus-classworlds-2.6.0.jar;C:\Users\mmohite\IntelliJ IDEA Community Edition 2020.1.1\plugins\maven\lib\maven3\boot\plexus-classworlds.license" org.codehaus.classworlds.Launcher -Didea.version2020.1.1 install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< Spring.example:SpringBootMVCRest >------------------
[INFO] Building SpringBootMVCRest Maven Webapp 1.0-SNAPSHOT
[INFO] --------------------------------[ war ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ SpringBootMVCRest ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 52 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ SpringBootMVCRest ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ SpringBootMVCRest ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\mmohite\IdeaProjects\SpringBootMVCRest\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.0:testCompile (default-testCompile) @ SpringBootMVCRest ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.22.1:test (default-test) @ SpringBootMVCRest ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-war-plugin:3.2.2:war (default-war) @ SpringBootMVCRest ---
[INFO] Packaging webapp
[INFO] Assembling webapp [SpringBootMVCRest] in [C:\Users\mmohite\IdeaProjects\SpringBootMVCRest\target\SpringBootMVCRest]
[INFO] Processing war project
[INFO] Copying webapp resources [C:\Users\mmohite\IdeaProjects\SpringBootMVCRest\src\main\webapp]
[INFO] Webapp assembled in [3814 msecs]
[INFO] Building war: C:\Users\mmohite\IdeaProjects\SpringBootMVCRest\target\SpringBootMVCRest.war
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ SpringBootMVCRest ---
[INFO] Installing C:\Users\mmohite\IdeaProjects\SpringBootMVCRest\target\SpringBootMVCRest.war to C:\Users\mmohite\.m2\repository\Spring\example\SpringBootMVCRest\1.0-SNAPSHOT\SpringBootMVCRest-1.0-SNAPSHOT.war
[INFO] Installing C:\Users\mmohite\IdeaProjects\SpringBootMVCRest\pom.xml to C:\Users\mmohite\.m2\repository\Spring\example\SpringBootMVCRest\1.0-SNAPSHOT\SpringBootMVCRest-1.0-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  13.506 s
[INFO] Finished at: 2020-05-28T15:56:56+05:30
[INFO] ------------------------------------------------------------------------