Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding the dependency results in RestTemplate GET-Requests to not work anymore. #10

Open
Floge123 opened this issue Oct 29, 2021 · 1 comment

Comments

@Floge123
Copy link

As the title says, adding the dependency in maven:

<dependency>
        <groupId>org.orienteer.jnpm</groupId>
        <artifactId>jnpm-maven-plugin</artifactId>
        <version>1.1</version>
</dependency>

results in may RestTemplate-Request to give me the error:

var response = this.restTemplate.exchange(
          url, HttpMethod.GET, new HttpEntity<>("parameters", getAuthorizationHeader()), returnType
      );

method GET must not have a request body.

This happens without using any methods, just by adding the dependency. Removing the dependency fixes this again.

@PhantomYdn
Copy link
Member

@Floge123 , most probably, it's due to some problem with cross dependencies. Could you please share mvn dependency:tree ? Also I see that you are adding jnpm-maven-plugin not jnpm - could you please clarify: is jnpm-maven-plugin needed for your code directly? Are you working on some maven plugin which should use jnpm-maven-plugin?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants