Questions tagged as 'maven'

1
answer

How to build a jar even if the project has a compilation error?

I'm starting the process of automating the builds of our application, and in the project have some classes with compilation error. Despite some compilation errors, the application is working fine. I will have to do a task force, to remove the...
asked by 07.07.2014 / 14:50
1
answer

How to pass environment variables to Maven on command line?

I want to pass values of environment variables to Maven via the command line. How to do? Attempts: mvn liquibase:update -Dliquibase.url=$DB_URL : Maven runs, but the value is not passed mvn liquibase:update -Dliquibase.url=$...
asked by 24.11.2018 / 00:44
1
answer

How do I package a Spring Boot application with maven without running the tests?

I'm developing an application with Spring Boot and every time I run the command mvn package it runs my unit tests. However, my tests do not raise the server with the application to run the tests on it, because the database is not on my ma...
asked by 28.03.2018 / 16:43
1
answer

Use profiling of Maven or Spring Boot?

In my research I could understand that there is a way to perform application profiling (eg homologation and production) in two ways, via maven and spring-boot. The big question is that I have multiple profiles and would like to package each one...
asked by 28.03.2018 / 16:14
1
answer

Spring boot modules via maven do not interact

I'm using Spring Boot to create a web service RESTFul and a SOAP, each in a module but both in a single project. So I decided to separate my domain layer into a third module since it is the same for both types of web services and so I could reus...
asked by 23.03.2018 / 14:55
1
answer

How do you transform a Spring Boot project into a .jar file?

Personal I do not know how to turn a Spring Boot project into a .jar file My attempt was to get into the project with msdos and with the command mvn install to create the .jar file But there were several errors, there is no way to put it and...
asked by 12.12.2017 / 20:34
1
answer

Error in Spring when starting the server

Imported a Maven project that worked perfectly before, but now I'm giving it error. Every time I try to fix this error, I change the Java versions, deleting and importing them again and so on. Dependencies: </parent> <grou...
asked by 02.07.2017 / 03:21
2
answers

TomCat does not activate Spring boot. How do you activate it?

I'm doing a project using Spring boot in IntelliJ + maven. Following and reading tutorials. I did the step by step but when giving Run the Tom Cat is not demonstrated, activated. I am not using any other server. Below is the code Main + Pom + Co...
asked by 13.04.2017 / 00:50
1
answer

Maven causes problem with special characters for ISO-8859-1 files

I have a fully configured Eclipse project and my .java files use ISO-8859-1 encoding and some other resource files use UTF-8 encoding. I need to create an archetype from this project. I've tried it anyway and I can not get Maven to create...
asked by 07.11.2016 / 18:37
1
answer

Eclipse maven | lambda | use -source 8 or higher to enable lambda expressions

Java Maven project in Eclipse neon (4.6.0), simply does not compile when using lambda. The error:    use lambda expressions are not supported in -source 1.5 (use -source 8   or higher to enable lambda expressions) The detail is that I'...
asked by 07.09.2016 / 19:34