Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #509
Closed
Open
Issue created Jul 08, 2018 by Administrator@rootContributor

Plugin does not work from inside Eclipse

Created by: 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?

Assignee
Assign to
Time tracking