swagger-petstore icon indicating copy to clipboard operation
swagger-petstore copied to clipboard

Maven War Plugin is missing

Open dnolte123 opened this issue 1 year ago • 2 comments

Without specifying the maven war plugin following error happens: "plugin 'org.apache.maven.plugins:maven-war-plugin:2.2' due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Cannot access defaults field of Properties"

Furthermore after explicitly specifying the maven war plugin a lot of warnings appear during " mvn package jetty:run" and at the end jetty is not working because of "Failed to execute goal org.eclipse.jetty:jetty-maven-plugin:9.4.53.v20231009:run (default-cli) on project swagger-petstore: Failure: Error forming scan list: Not file or doesn't exist: D:\dev\apps\swagger-petstore-master\src\main\resources\openapi-inflector.yaml"

dnolte123 avatar May 03 '24 08:05 dnolte123

I have already opened this issue #143 and made pull request - #144. You need to add file inflector.yaml to src\main\resources.

IvanovIlya116 avatar May 14 '24 10:05 IvanovIlya116

I have already opened this issue #143 and made pull request - #144. You need to add file inflector.yaml to src\main\resources.

But at least for me, this wouldn't work w/o adding

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-war-plugin</artifactId>
    <version>3.3.2</version>
</plugin>

karstengresch avatar Aug 30 '24 12:08 karstengresch