Comments (4)
Hmmm ... maybe its my mistake?!
I configure now a jdk8 for the eclipse workspace (before this I have only a jdk17 defined) ... the eclipse itselfs runs with opendjk 22.
Now I can import the projects into eclipse but at the end I see everywhere:
Could not update project swagger-annotations-jakarta configuration
Path must include project and resource name: /
from swagger-core.
M2E Import doing some rounds ... now I have this final import state ... I'm not really sure if this is "okay". Any hint?
Specially these warnings not really clear to me:
Access "D:\Dev\git\privat\swagger-core" directory outside of project base directory. (org.apache.maven.plugins:maven-resources-plugin:3.1.0:resources:default-resources:process-resources)
And this error:
Failed to execute mojo org.apache.maven.plugins:maven-dependency-plugin:3.6.1:copy-dependencies {execution: copy-deps} (org.apache.maven.plugins:maven-dependency-plugin:3.6.1:copy-dependencies:copy-deps:package)
org.eclipse.core.runtime.CoreException: Failed to execute mojo org.apache.maven.plugins:maven-dependency-plugin:3.6.1:copy-dependencies {execution: copy-deps}
..
Caused by: org.apache.maven.plugin.MojoExecutionException: Artifact has not been packaged yet. When used on reactor artifact, copy should be executed after packaging: see MDEP-187.
at org.apache.maven.plugins.dependency.AbstractDependencyMojo.copyFile(AbstractDependencyMojo.java:149)
(see https://issues.apache.org/jira/browse/MDEP-187)
from swagger-core.
I found a temp. workaround!
I commented out the 2 extra resources in main pom.xml and swagger-project-jakarta pom.xml
<!--
<resource>
<targetPath>META-INF</targetPath>
<directory>../..</directory>
<filtering>true</filtering>
<includes>
<include>NOTICE</include>
<include>LICENSE</include>
</includes>
</resource>
-->
Then the import into eclipse works fine. These relative path's are a problem (for eclipse / m2e).
I tried with:
<directory>${project.basedir}/../..</directory>
Not working.
I think for a always working setup this resource must be defined only once in top-level pom and the directory must be an absolute path, which is not possible with pure maven. But there is a plugin for such things: https://github.com/jdcasey/directory-maven-plugin.
from swagger-core.
I have a similar issue. I tried to build the quick starters hello world projects for wildfly 30.1. Was able to do so using mvn command on my system but I wasn't able to use the builtin eclipse maven it didn't work.
from swagger-core.
Related Issues (20)
- C# SwaggerConfig added to VB.Net project
- BUG @Size is ignored in properties using collections when using oas 3.1.0 HOT 1
- BUG @Pattern on type parameter of properties using collections is ignored when using oas 3.1.0 HOT 1
- Swagger Core 1.5.X Jakarta support
- Name collision in api spec possible for colliding supertype names
- BUG Null-typed extensions elements disappear when creating yaml
- Generating dictionaries for free-form objects with Gradle plugin?
- @Schema is processed without enum when implementation and allowableValues exist at the same time
- Parsing/Converting Swagger 2.0 spec to an OpenAPI 3.1.0 spec HOT 3
- swagger-maven-plugin w/convertToOpenAPI31 sets dialect rejected by the swagger ui HOT 1
- How do we define authorization in spec?
- Schema generation fails when using `OptionalInt` as type for a field
- Make ModelConverterContext swappable
- Propagate JsonView annotation when resolving schema properties
- Schema with type object and items is being read as an array
- Missing schema name for enum HOT 1
- Is there `verify`-like behaviour to fail a CI build if there's a mismatch? HOT 5
- Upgrade org.apache.commons:commons-lang3 HOT 2
- @Schema oneOf config is ignored when generate the api-docs HOT 2
- 2.2.23 version not published in Maven registry HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swagger-core.