GithubHelp home page GithubHelp logo

Eclipse project import crashs about swagger-core HOT 4 OPEN

ahoehma avatar ahoehma commented on September 27, 2024
Eclipse project import crashs

from swagger-core.

Comments (4)

ahoehma avatar ahoehma commented on September 27, 2024

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: /

image

from swagger-core.

ahoehma avatar ahoehma commented on September 27, 2024

M2E Import doing some rounds ... now I have this final import state ... I'm not really sure if this is "okay". Any hint?

image

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.

ahoehma avatar ahoehma commented on September 27, 2024

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.

Nekyt avatar Nekyt commented on September 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.