getting below error when using jhipster to run the server application
mvnw
Blockquotejava.lang.ArrayIndexOutOfBoundsException: 13292
at org.codehaus.plexus.util.xml.pull.MXParser.parsePI(MXParser.java:2502)
at org.codehaus.plexus.util.xml.pull.MXParser.parseEpilog(MXParser.java:1604)
at org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:1434)
at org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1131)
at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:3856)
at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:595)
I was having this problem as well and ended up deleting my Maven local repository folder
Unix/MacOS: ~/.m2/
Windows - C:\Documents and Settings\{your-username}\.m2
and reimported the Maven project and then ran ./mvnw and it worked!
Related
In a spring boot project I would like to download all dependencies before starting the application.
When I run "mvn compile" first, it is downloading a lot of dependecies. But when I run "mvn spring-boot:run" after that, it still downloads tons of dependecies.
So what is the right way to download all dependecies like spring-boot:run does - but without running the application?
Thank you!
Try running maven with -o switch to run your maven command in offline mode. This will use already downloaded dependencies in the local repository.
I am building a war file from eclipse it is working fine but when I tried a build a war file in Jenkins by using Maven plugin it is building a war file but it is not working. where exactly I am doing wrong..
i installed ubuntu 16.04
installed java 1.7
installed maven 3.3
installed jenkins
configured jenkins and with java and maven installation path. Given maven cmd
clean install.
the build is successful and war file is deployed to tomcat 8 container but I am getting an error like
HTTP Status 500 - No WebApplicationContext found: no ContextLoaderListener registered?
But when I export war file from my eclipse and copy it to tomcat container it is working fine and I followed https://www.youtube.com/watch?v=eIldJE4tSlA to configure maven project in jenkins.
I follow this tutorial to create spring boot project, when I run the project, it shows an error. Please help me to fix it.
my pom.xml
You mentioned that it worked with gradle but not Maven.
One possible solution is to delete your local maven repository to force it to redownload the dependencies:
Go to your home folder and remove the folder ~/.m2/repository.
Then, try rebuilding your project with maven : mvn clean install
I try to update Java and Maven,but it also do not work,and then I change Maven to Gradle,the application can run! Maybe Maven has problem.
I have the newest STS build and have installed on Window 8.1. Following tutorials, I get a pom.xml error. Following any and all suggestions, including re-installing the STS does not fix it.
it is a maven configuration problem, try :
Right click on the project > run > maven build ...> goal : eclipse:clean
and then update the project
if the error is not fixed , then may be you have some corrupted dependencies
delete the folder .m2 under C:\Users\<the current user>\.m2 and update the project again, maven will load the missing jars again.
I have downloaded the code from the repository but I have little experience to use maven (command line) to get the .war file to be included in my tomcat.
I do not have experience in this.
I have not changed the pom.xml file
I directly run the command mvn clean package but I have several errors.
Spete help me?
My goal is to generate the. War file CAS 4.0RC
I'm using the pom.xml file that I found on git (a very long file) can fit that?
If you've downloaded the source of CAS and its by itself should be a mavenized project then, pom.xml should be inside.
so you should just 'cd' to the root folder of your source and type
mvn install
or
mvn package
The first command will install your jar into local maven repository, the second one will only prepare the war in the target folder of the module with packaging war in the source.
If you encounter any errors, please post them here.
Hope this helps
It should build without any problem when executing mvn clean install in the CLI... What are your errors ?