Questions tagged [maven-wrapper]

Maven Wrapper is a CLI script to support Maven builds with defined versions and without requiring systemwide installation.

15 questions
15
votes
1 answer

Java 17 with Maven Wrapper results in Unrecognized VM option 'MaxPermSize=512m'

I use OpenJDK 17 with Maven Wrapper 3.8.2 from Spring Initializr (Maven project, JAR packaging, Java 17, Spring Boot 2.6.0). No additional dependencies. user@DESKTOP-U2OU5HG MINGW64 /c/Projects/my-project (master) $ java -version openjdk version…
Nikolas Charalambidis
  • 40,893
  • 16
  • 117
  • 183
5
votes
2 answers

mvnw.cmd for demo spring-boot project not working in windows

I generated a simple demo project (2.3.0 version) from Spring Initializr to my windows 8.1 OS and below is the basic structure C:. └───src ├───main │ ├───java │ │ └───com │ │ └───example │ │ └───demo …
Sachin
  • 2,087
  • 16
  • 22
3
votes
1 answer

Intellij - No valid Maven installation found when configured to use Maven Wrapper

I've upgraded my IntelliJ Community from 2021.1 to 2021.2 today and now I'm getting the following error when trying to run maven commands: No valid Maven installation found. Either set the home directory in the configuration dialog or set the…
tonyfarney
  • 300
  • 3
  • 14
3
votes
1 answer

Eclipse and Maven-Wrapper

I try to build a project, which is using the Maven Wrapper. The build works fine on command line. There is also a plug-in for IntelliJ Idea. However, I haven't found any article, how to build such project with Eclipse. Do you have an experience with…
Theodor Keinstein
  • 1,653
  • 2
  • 26
  • 47
3
votes
1 answer

How to fix Absolute Path Traversal in MavenWrapperDownloader.java

After a security scan, I get the error Absolute Path Traversal in the file: https://github.com/takari/maven-wrapper/blob/master/.mvn/wrapper/MavenWrapperDownloader.java Line 50: File baseDirectory = new File(args[0]); The MavenWrapperDownloader.java…
marhg
  • 659
  • 1
  • 17
  • 30
2
votes
1 answer

How define for Maven's Environment Variable to define Local Repository and Wrapper download location?

I need do mention about Gradle to understand and find the same solution for Maven. In Gradle exists the GRADLE_HOME and GRADLE_USER_HOME (repository) environment variables, for Maven the former through M2_HOME and about the repository I use the…
Manuel Jordan
  • 15,253
  • 21
  • 95
  • 158
0
votes
0 answers

How to use maven wrappers in netbeans

I have used NetBeans for years, but never with Maven. I am trying to use Maven wrappers to set up a remote repository utilized by the microservices at my new company; is there a way to do so native to NetBeans so that it's applicable to all Maven…
Sheldon R.
  • 452
  • 2
  • 7
  • 26
0
votes
0 answers

Ignoring Maven Wrapper on Azure DevOps pipeline build

I'm configuring a pipeline on Microsoft DevOps platform to build Maven project. My project includes Maven Wrapper, since I'm using this to define a project-specific settings.xml, that's useful for local development. When the build is executed by the…
davioooh
  • 23,742
  • 39
  • 159
  • 250
0
votes
0 answers

Issue when running docker build on Windows machine: ./mvnw: /bin/sh^M: bad interpreter: No such file or directory

The Issue When trying to run docker build on my Windows machine, I receive the following error: ------ > [build 6/9] RUN ./mvnw dependency:go-offline -B: #10 0.300 /bin/sh: ./mvnw: /bin/sh^M: bad interpreter: No such file or…
MattArgo
  • 21
  • 5
0
votes
0 answers

How can I setup the VS Code plugin "Dependency Analytics" to use the maven wrapper from my Spring project, so that I don't have to intall maven?

The Visual Studio Code plugin "Dependency Analytics" tries to use maven, but since I don't have a separate installation it will fail. How can I setup the plugin to use the maven wrapper from the project? Is that even possible? I don't like to…
richard
  • 59
  • 2
  • 14
0
votes
0 answers

how to allow http repo in maven wrapper

My project use maven wrapper $ ./mvnw -v Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63) Maven home: /home/xxx/.m2/wrapper/dists/apache-maven-3.8.6-bin/67568434/apache-maven-3.8.6 Java version: 1.8.0_332, vendor:…
Chaofan
  • 53
  • 4
0
votes
1 answer

How to navigate to module inside Jenkins pipeline to trigger maven wrapper

We have a project called update-catalog. Inside that project we have two modules, one for the frontend application and the other for the java backend, which is also called update-catalog. There on the backend module we have our pom and maven…
0
votes
1 answer

Permission denied for Maven wrapper in CircleCI build

I was following a tutorial to setup CI pipeline for my GitHub repository with CircleCI. This is my config.yml file: version: 2 # use CircleCI 2.0 jobs: build: docker: - image: circleci/openjdk:8-jdk steps: -…
0
votes
0 answers

Can't run maven wrapper 2.2.1: Could not locate the Maven launcher JAR in Maven distribution

CentOS 7, Java 8 I was to build my java project with specific Maven version = 2.2.1 So to do this I use maven wrapper. Doc here In terminal I run the next command in my Java project's folder: mvn -N io.takari:maven:0.7.7:wrapper -Dmaven=2.2.1 After…
Alexei
  • 14,350
  • 37
  • 121
  • 240
0
votes
0 answers

trying to run a spring boot application:Exception in thread "main" java.lang.reflect.InvocationTargetException

trying to run the downloaded simple spring boot app from spring.io initializer using ./mvnw spring-boot:run but i keep getting this error: Exception in thread "main" java.lang.reflect.InvocationTargetException at…
Ahmed
  • 413
  • 5
  • 9