Skip to content

Plugin does not work from inside Eclipse #509

@javadch

Description

@javadch

I have the following plugin spec in my eClipse POM:

<plugin>
  <groupId>org.openapitools</groupId>
  <artifactId>openapi-generator-maven-plugin</artifactId>
  <version>3.1.0</version>
  <executions>
    <execution>
    <phase>generate-resources</phase>
      <goals>
        <goal>generate</goal>
      </goals>
    <configuration>
      <inputSpec>${project.basedir}/src/main/resources/api.yaml</inputSpec>
      <generatorName>spring</generatorName>
    <configOptions>
    <dateLibrary>joda</dateLibrary>
    <sourceFolder>src/gen/java/main</sourceFolder>
    <modelPackage>services.nano.timex.models</modelPackage>
    <apiPackage>services.nano.timex.apis</apiPackage>
    <invokerPackage>services.nano.timex.invokers</invokerPackage>
    <delegatePattern>true</delegatePattern>
    <hideGenerationTimestamp>false</hideGenerationTimestamp>
  </configOptions>
  <library>spring-boot</library>
</configuration>
</execution>
</executions>
</plugin>

It generates the output artifacts using the mvn clean package command, but does not generate the code form inside Eclipse! The IDE complains about the node saying:

Description Resource Path Location Type Plugin execution not covered by lifecycle configuration: org.openapitools:openapi-generator-maven-plugin:3.1.0:generate (execution: default, phase: generate-resources) pom.xml /timex-backend-api line 34 Maven Project Build Lifecycle Mapping Problem

How can I fix this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions