#Maven can't find plugins and dependecies in the spring boot project

18 messages · Page 1 of 1 (latest)

sage wigeon
#

Hello I have issue. In my spring boot project Maven can't find plugins and dependecies in the spring boot project despite my pom.xml file is clean


```<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.7.5</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
    <groupId>com.example</groupId>
    <artifactId>demo</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>demo</name>
    <description>Demo project for Spring Boot</description>
    <properties>
        <java.version>19</java.version>
    </properties>
    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>

  
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-tomcat</artifactId>
            <version>2.7.5</version>
        </dependency>
    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <version>${project.parent.version}</version>
            </plugin>
        </plugins>
    </build>

</project>
past starBOT
#

Hey, @sage wigeon!
Please remember to /close this post once your question has been answered!

errant bay
#

Did you click the reload button on the top?

sage wigeon
#

I try to relaod no changes. As a result I can't launch project as Java app. I must use mvn spring-boot:run -Dapp.profiles=test command

errant bay
#

when double-dlicking on the compile tab, what does it show?

sage wigeon
#

Nothing happens

#

maybe adding maven project can do a trick?

errant bay
#

probably

#

right click on the pom.xml

#

and there should be an option for it

sage wigeon
errant bay
#

try reloading with that

#

and if it doesn't work, unlink and link agaain

sage wigeon
#

nothing happens

sage wigeon
#

I try to run project on different laptop just clone from repo and run fine and no signs of missing plugins or dependecies

#

So I tomorrow will do the same for main pc

past starBOT
# past star

Before your post will be closed, would you like to express your gratitude to any of the people who helped you? When you're done, click I'm done here. Close this post!.