No market entries found to handle yoman-maven-plugin

I recently installed and created an application with JHipster. When I launch the application in the terminal using "mvn spring-boot: run", the application starts without problems .

But when I import a project (like a maven project) into Eclipse, I have this error in my pom:

No market entries were found to handle yoman-maven-plugin: 0.4: build in Eclipse. For more information, see Help.

Here is a screenshot of the error.

maven error

Here is how this plugin is defined in the generated pom.xml by default:

    <build>
        <plugins>
            <plugin>
                <groupId>com.github.trecloux</groupId>
                <artifactId>yeoman-maven-plugin</artifactId>
                <version>0.4</version>
                <executions>
                    <execution>
                        <id>run-grunt</id>
                        <phase>generate-resources</phase>
                        <goals>
                            <goal>build</goal>
                        </goals>
                        <configuration>
                            <skipTests>true</skipTests>
                            <buildTool>grunt</buildTool>
                            <buildArgs>compass:server --force</buildArgs>
                        </configuration>
                    </execution>
                </executions>
                <configuration>
                    <yeomanProjectDirectory>${project.basedir}</yeomanProjectDirectory>
                </configuration>
            </plugin>
        </plugins>
    </build>

How can I continue to manipulate, edit created project files in my Eclipse?

+4
2

Eclipse :

http://www.eclipse.org/m2e/documentation/m2e-execution-not-covered.html

m2e yeoman-maven-plugin

- m2e:

<build>    
    <plugins>
        <pluginManagement>
            <plugin>
                <groupId>org.eclipse.m2e</groupId>
                <artifactId>lifecycle-mapping</artifactId>
                <version>1.0.0</version>
                <configuration>
                    <lifecycleMappingMetadata>
                        <pluginExecutions>
                            <pluginExecution>
                                <pluginExecutionFilter>
                                    <groupId>
                                        com.github.trecloux
                                    </groupId>
                                    <artifactId>
                                        yeoman-maven-plugin
                                    </artifactId>
                                    <versionRange>
                                        [0.4,)
                                    </versionRange>
                                    <goals>
                                        <goal>build</goal>
                                    </goals>
                                </pluginExecutionFilter>
                                <action>
                                    <ignore></ignore>
                                </action>
                            </pluginExecution>
                        </pluginExecutions>
                    </lifecycleMappingMetadata>
                </configuration>
            </plugin>
        </plugins>
    </pluginManagement>
</build>

, maven Eclipse .

+4

Mateusz Balbus, pom.xml, , :

            <build>
                <pluginManagement>
                    <plugins>
                        <plugin>
                            <groupId>org.eclipse.m2e</groupId>
                            <artifactId>lifecycle-mapping</artifactId>
                            <version>1.0.0</version>
                            <configuration>
                                <lifecycleMappingMetadata>
                                    <pluginExecutions>
                                        <pluginExecution>
                                            <pluginExecutionFilter>
                                                <groupId>
                                                    com.github.trecloux
                                                </groupId>
                                                <artifactId>
                                                    yeoman-maven-plugin
                                                </artifactId>
                                                <versionRange>
                                                    [0.4,)
                                                </versionRange>
                                                <goals>
                                                    <goal>build</goal>
                                                </goals>
                                            </pluginExecutionFilter>
                                            <action>
                                                <ignore></ignore>
                                            </action>
                                        </pluginExecution>
                                    </pluginExecutions>
                                </lifecycleMappingMetadata>
                            </configuration>
                        </plugin>
                    </plugins>
                </pluginManagement>
            </build>
+2

Source: https://habr.com/ru/post/1584709/


All Articles