I’m working on a webapp in Spring using Spring Tool Suite. If I build and deploy the application there using the IDE onto the provided Pivotal tc Server, it works just fine. However, if I do a manual “mvn clean package” build and attempt to deploy it to a standalone Tomcat server (using newest Tomcat 7), it throws the following
Tag: maven
Maven not found in Jenkins
I am running my Maven/Spring project in Jenkins (just testing it out, first time) using the shell script option with: mvn spring-boot:run I get the build error: /Users/Shared/Jenkins/tmp/jenkins8087926087546049217.sh: line 2: mvn: command not found How can I fix this? Its a Spring-boot app. It works fine when I run mvn spring-boot:run via command line. Answer Try this, Navigate to Manage
What’s the default value for maven-surefire-plugin’s forkedProcessTimeoutInSeconds?
forkedProcessTimeoutInSeconds can be set to 0 in order to prevent forked test VMs from being assumed dead after the specified time. What’s the default value for this property? The documentation doesn’t specify it, the XML autocompletion in NetBeans says undefined which doesn’t make sense because only setting it to a specified value or 0 does. A superficial look in the
Running sonar analysis with mvn sonar:sonar ignores sonar-project.properties
Latest 3.3 sonar-maven-plugin and 5.6 LTS as web server. Running sonar analysis with mvn sonar:sonar ( Scanner for Maven ) ignores sonar-project.properties file. (with many parameters https://docs.sonarqube.org/display/SONAR/Analysis+Parameters) Is it that the expected behavior? So do I have to configure all sonar parameters within pom.xml files? Answer Other way would be to configure reading via Maven Properties Plugin Q&A
xml-apis JAR file necessary?
I’m using a (Maven) dependency which itself depends on xml-apis. Unfortunately, the presence of this package now causes conflicts in our OSGi environment (see below in case it should be relevant). Looking at the JAR content, I find classes which seem to be present in a current JRE anyways. So, my question: Is it safe to exclude this dependency? In
Docker and Eureka with Spring Boot failing to register clients
I have a very simple demo of using Spring Boot + Docker Compose + Eureka. My server runs on port 8671 with the following application properties: My Eureka client runs on port 9000 with the following application properties: When I start up my docker.compose file in the parent maven project, this is the contents of my docker-compose file: When I
Why doesn’t Gradle or Maven have a dependency version lock file?
I’ve recently been introduced to the concept of a dependency version lock file when reading about package managers like NPM, Yarn, Paket, Cargo, etc. My understanding is that it is a file that lists all direct and transitive dependencies along with their exact version number so subsequent builds are guaranteed to use an equivalent set of dependencies. This seems to
Change Spring boot folder structure for source code and resources
How can I change the path where spring boot is looking for the source code and resources. I want to move from src/main to src/server/main. In pom I put: Error: Could not find or load main class ema.Application Answer Here is a sample build section of a POM that can be used to configure the directories. Below Sample:
Maven doesn’t run my testng.xml
When i’m running through testng.xml (right click on testng.xml, then run as TestNG) it works fine – 2 of the tests i have there are running, but when i’m running it from Maven (mvn test) it just perform build and doesn’t run the tests. BTW – i noticed that if i have classes with the word Test in them they
Spring boot app terminated at startup
I have created a spring boot project using spring initilizer. I use spring-boot-cli version v1.5.3.RELEASE. I just try to run: But my server won’t stay running, it is closing automatically. On port 8080 I have no other connection: LATER EDIT: Still not working. EDIT: here is the pom file: Answer I added in the pom file a tomcat dependency and