Comments (13)
Have you specified MAVEN_HOME env variable?
wad.sh uses https://maven.apache.org/shared/maven-invoker/ behind the scenes. The doc might be useful. In parallel I asked on twitter for windows help :-)
from wad.
I'm running wad on Windows. Had to add a system property when starting wad like this:
java -Dmaven.home="C:\Tools\maven\apache-maven-3.5.2" -jar wad.jar C:\server\wildfly-16.0.0.Final\standalone\deployments
from wad.
I got it running with M2_HOME
env variable pointing to the Maven installation folder
from wad.
I got it running with
M2_HOME
env variable pointing to the Maven installation folder
This does the trick on my machine as well. Thanks.
from wad.
Have you specified MAVEN_HOME env variable?
wad.sh uses https://maven.apache.org/shared/maven-invoker/ behind the scenes. The doc might be useful. In parallel I asked on twitter for windows help :-)
Yes MAVEN_HOME set. Docs seems geared towards one using a Unix based OS.
I got it running with
M2_HOME
env variable pointing to the Maven installation folder
This got it up but then I get this
[�[1;90m08:01:22�[0m]org.apache.maven.shared.invoker.MavenInvocationException Error configuring command-line. Reason: Maven executable not found at: C:\Users\john\mvn\apache-maven-3.5.3\bin\bin\mvn.bat
Downloaded a fresh version of Maven into the folder but still.
from wad.
This got it up but then I get this
[�[1;90m08:01:22�[0m]org.apache.maven.shared.invoker.MavenInvocationException Error configuring command-line. Reason: Maven executable not found at: C:\Users\john\mvn\apache-maven-3.5.3\bin\bin\mvn.bat
Seems like you set M2_HOME to C:\Users\john\mvn\apache-maven-3.5.3\bin.
Try setting it to C:\Users\john\mvn\apache-maven-3.5.3 without the extra "\bin".
from wad.
This got it up but then I get this
[�[1;90m08:01:22�[0m]org.apache.maven.shared.invoker.MavenInvocationException Error configuring command-line. Reason: Maven executable not found at: C:\Users\john\mvn\apache-maven-3.5.3\bin\bin\mvn.bat
Seems like you set M2_HOME to C:\Users\john\mvn\apache-maven-3.5.3\bin.
Try setting it to C:\Users\john\mvn\apache-maven-3.5.3 without the extra "\bin".
Doesn't make any difference
[�[1;90m08:14:02�[0m]org.apache.maven.shared.invoker.MavenInvocationException Error configuring command-line. Reason: Maven executable not found at: C:\Users\john\mvn\apache-maven-3.5.3\bin\mvn.bat
I'm running Windows 10, fully updated if that's any help. Using Oracle Java 8.
from wad.
The latest Maven releases come with a "mvn.cmd" - but no "mvn.bat". The quick fix might be to simply copy/rename the mvn file. However, this is just a local fix.
There might be some older maven plugin in your project settings that is causing this issue.
from wad.
The latest Maven releases come with a "mvn.cmd" - but no "mvn.bat". The quick fix might be to simply copy/rename the mvn file. However, this is just a local fix.
There might be some older maven plugin in your project settings that is causing this issue.
No difference. Downloading and using Maven 3.6 is the same error
[�[1;90m08:33:03�[0m]org.apache.maven.shared.invoker.MavenInvocationException Error configuring command-line. Reason: Maven executable not found at: C:\Users\john\mvn\apache-maven-3.5.3\bin\mvn.bat
My pom.xml file is
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.pedantic</groupId>
<artifactId>cdi-code</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>war</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<failOnMissingWebXml>false</failOnMissingWebXml>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.jboss.arquillian</groupId>
<artifactId>arquillian-bom</artifactId>
<version>1.4.0.Final</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>8.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.arquillian.junit</groupId>
<artifactId>arquillian-junit-container</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>fish.payara.arquillian</groupId>
<artifactId>arquillian-payara-server-4-embedded</artifactId>
<version>1.0.Beta3</version>
</dependency>
<dependency>
<groupId>fish.payara.extras</groupId>
<artifactId>payara-embedded-all</artifactId>
<version>5.184</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<finalName>cdi-code</finalName>
<testResources>
<testResource>
<directory>src/test/resources</directory>
</testResource>
</testResources>
<testSourceDirectory>src/test</testSourceDirectory>
<!-- <plugins>-->
<!-- <plugin>-->
<!-- <artifactId>maven-compiler-plugin</artifactId>-->
<!-- <version>3.7.0</version>-->
<!-- </plugin>-->
<!-- </plugins>-->
</build>
<!-- <profiles>-->
<!-- <profile>-->
<!-- <id>payara</id>-->
<!-- <activation>-->
<!-- <activeByDefault>true</activeByDefault>-->
<!-- </activation>-->
<!-- <build>-->
<!-- <plugins>-->
<!-- <plugin>-->
<!-- <groupId>fish.payara.maven.plugins</groupId>-->
<!-- <artifactId>payara-micro-maven-plugin</artifactId>-->
<!-- <version>1.0.1</version>-->
<!-- <executions>-->
<!-- <execution>-->
<!-- <phase>package</phase>-->
<!-- <goals>-->
<!-- <goal>bundle</goal>-->
<!-- </goals>-->
<!-- </execution>-->
<!-- </executions>-->
<!-- <configuration>-->
<!-- <useUberJar>true</useUberJar>-->
<!-- <deployWar>true</deployWar>-->
<!-- <payaraVersion>5.191</payaraVersion>-->
<!-- </configuration>-->
<!-- </plugin>-->
<!-- </plugins>-->
<!-- </build>-->
<!-- </profile>-->
<!-- </profiles>-->
</project>
from wad.
I just created a minimal project using your POM. Unfortunately, I am not able to reproduce the error (running on Maven 3.5.2) - unless I misconfigure M2_HOME.
from wad.
from wad.
I've updated my blog post about Adam's tool to have less confusion for further Windows devs (setting M2_HOME
correctly): https://rieckpil.de/review-improved-java-jakarta-ee-productivity-with-adam-biens-wad-watch-and-deploy/
from wad.
Reference to rieckpil's article in the new "articles" section added. This should help with Windows setup.
from wad.
Related Issues (13)
- WAR name is not derived properly if the pom contains `finalName` element. HOT 1
- Source change is not detected
- Not Working With Maven Installed By Sdkman HOT 2
- Add Support For Comment in .wadrc
- Generate a new release
- support gradle projects
- Doesn't watch for src/main/resources or src/main/webapp HOT 1
- [rfe] ~/.wadrc config file to add default deployment dirs HOT 3
- Enable a profile option to activate project profiles. HOT 1
- error output on build failure HOT 1
- Use `verify` instead of `clean install` HOT 2
- Parametrize war name HOT 2
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 wad.