Vaadin 10 configuration error into eclipse

Good evening, im trying to install vaadin framework and integrate it into my eclipse but everytime i try to run the maven build i keep getting this error block, the main part is that the prefix jetty is not recognized and im not sre how to deal with that. Please help…

[INFO]
 Scanning for projects...
    [WARNING]
 The project com.gmail.khaled:my-starter-project:pom:1.0-SNAPSHOT uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
[INFO]
 ------------------------------------------------------------------------
[INFO]
 Reactor Build Order:
[INFO]
 
[INFO]
 My Starter Project                                                 [pom]

[INFO]
 My Starter Project-backend                                         [jar]

[INFO]
 My Starter Project-ui                                              [war]

[INFO]
 Downloading from : https://maven.vaadin.com/vaadin-prereleases/org/codehaus/mojo/maven-metadata.xml
[INFO]
 Downloading from : https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml
[INFO]
 Downloading from : https://maven.vaadin.com/vaadin-prereleases/org/apache/maven/plugins/maven-metadata.xml
[INFO]
 Downloading from : https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml
[INFO]
 Downloaded from : https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml (14 kB at 13 kB/s)
[INFO]
 Downloaded from : https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml (20 kB at 18 kB/s)
[INFO]
 ------------------------------------------------------------------------
[INFO]
 Reactor Summary:
[INFO]
 
[INFO]
 My Starter Project 1.0-SNAPSHOT .................... SKIPPED
[INFO]
 My Starter Project-backend ......................... SKIPPED
[INFO]
 My Starter Project-ui 1.0-SNAPSHOT ................. SKIPPED
[INFO]
 ------------------------------------------------------------------------
[INFO]
 BUILD FAILURE
[INFO]
 ------------------------------------------------------------------------
[INFO]
 Total time: 1.739 s
[INFO]
 Finished at: 2019-03-18T21:39:18+02:00
[INFO]
 ------------------------------------------------------------------------
[ERROR]
 No plugin found for prefix 'jetty' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo]
 available from the repositories [local (C:\Users\hp\.m2\repository), vaadin-prereleases (https://maven.vaadin.com/vaadin-prereleases), central (https://repo.maven.apache.org/maven2)]
 -> [Help 1]

[ERROR]
 
[ERROR]
 To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR]
 Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
 
[ERROR]
 For more information about the errors and possible solutions, please read the following articles:

Is this at StackOverflow question also from you

https://stackoverflow.com/questions/55229095/vaadin-no-plugin-found-for-prefix-jetty/55234628

Check that your pom.xml of “My Starter Project-ui” has jetty-maven-plugin configured and run jetty:run target in it

In your pom.xml there should be section <plugins>...</plugins> and there you need to have something like the following:

<plugin> 
	<groupId>org.eclipse.jetty</groupId> 
	<artifactId>jetty-maven-plugin</artifactId> 
	<version> ${jetty.plugin.version}</version>
</plugin>

Yes the question asked is mine, i searched the document and there is non.

<?xml version="1.0" encoding="UTF-8"?>
<modelVersion>4.0.0</modelVersion>

<groupId>com.example.test</groupId>
<artifactId>my-starter-project</artifactId>
<packaging>pom</packaging>
<version>1.0-SNAPSHOT</version>
<name>My Starter Project</name>

<properties>
    <vaadin.version>13.0.1</vaadin.version>
    <jetty.plugin.version>9.4.11.v20180605</jetty.plugin.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.reporting.outputEncoding>UTF-8
    </project.reporting.outputEncoding>
    <maven.compiler.source>1.8</maven.compiler.source>
    <maven.compiler.target>1.8</maven.compiler.target>
    <failOnMissingWebXml>false</failOnMissingWebXml>
</properties>

<prerequisites>
    <maven>3</maven>
</prerequisites>

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
            <version>3.1.0</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.vaadin</groupId>
            <artifactId>vaadin-bom</artifactId>
            <version>${vaadin.version}</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>
<repositories>
    <!-- Repository used by many Vaadin add-ons -->
    <repository>
        <id>vaadin-addons</id>
        <url>http://maven.vaadin.com/vaadin-addons</url>
    </repository>
    <!-- Repository needed for the prerelease versions of Vaadin -->
    <repository>
        <id>vaadin-prereleases</id>
        <url>https://maven.vaadin.com/vaadin-prereleases</url>
    </repository>
</repositories>

<pluginRepositories>
    <!-- Repository needed for the prerelease versions of Vaadin -->
    <pluginRepository>
        <id>vaadin-prereleases</id>
        <url>https://maven.vaadin.com/vaadin-prereleases</url>
    </pluginRepository>
</pluginRepositories>

<modules>
    <module>my-starter-project-backend</module>
    <module>my-starter-project-ui</module>
</modules>

The file you copied is the root pom.xml, have you checked the another pom.xml file of “my-starter-project-ui” module?

17570766.png
17570769.png

No, ill check that now

This is a copy of what i have, which matches what you asked me to add. yet despite that it still gives me the same error

<plugins>
                    <plugin>
                        <groupId>com.vaadin</groupId>
                        <artifactId>vaadin-maven-plugin</artifactId>
                        <version>${vaadin.version}</version>
                        <executions>
                            <execution>
                                <goals>
                                    <goal>copy-production-files</goal>
                                    <goal>package-for-production</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.eclipse.jetty</groupId>
                        <artifactId>jetty-maven-plugin</artifactId>
                        <version>${jetty.plugin.version}</version>
                        <configuration>
                            <webAppConfig>
                                <resourceBases>
                                    <!-- add the default transpileOutputDirectory as resourceBase for jetty -->
                                    <resourceBase>${project.build.directory}/${project.build.finalName}</resourceBase>
                                </resourceBases>
                            </webAppConfig>
                        </configuration>
                    </plugin>
                </plugins>
				
				
			

You should select pom.xml file of “my-starter-project-ui” module to run jetty:run target, not the root pom.xml of the project.

That makes sense, i thought that they are somehow connected and it runs from the root. it works, thank you very much for your time and patience