Most voted "maven" questions
Apache Maven is a software knowledge and project management tool. This tag should be used for questions that do not concern a specific Maven version.
Learn more…317 questions
Sort by count of
-
17
votes2
answers13314
views -
16
votes1
answer24414
viewsWhat is Maven for?
I often find large projects that have the pom.xml file, but I never understood the usefulness of it, I just found out it’s something related to Maven. Finally: What is Maven for? What is the pom.xml…
-
16
votes3
answers582
viewsMaven Module vs Java 9 Module
Besides the fact that Maven works with jars and Java 9 with "modules", what is the difference between the modularization system of the two? Why would I stop modularizing my systems with Maven to…
-
15
votes3
answers16809
viewsHow to generate an executable . jar using Maven?
Is it necessary to make some extra configuration to generate a Maven executable . jar? How have I never used this technology under development desktop I’m a little lost. When I build the project…
-
15
votes4
answers5515
viewsDockerize Java Web App: Maven + Tomcat + Docker
I have often seen several tutorials from Docker stop up "ready" services, but I see few related instructions on how to use it within the development flow. Mainly on compiled languages as an example…
-
13
votes1
answer1179
viewsAuto Deploy after Git Push
I use daily the Openshift to create and host applications in the clouds. One interesting thing I observe is as to the process of deploy applications hosted on this platform. deploy is preceded by…
-
9
votes2
answers3152
viewsBuild generation in the Maven project
I would like to generate a Java build using Maven, where the generated file name . jar was the same number as the last revision of the SVN repository. Example: My last build generated has the…
-
9
votes2
answers6704
views -
8
votes1
answer606
viewsError Making Jar Build
I’m trying to do the build of my first JAR using the Intellij and Maven to manage dependencies. I created the artifact and executed build, but when I run the program I get the following exception:…
-
8
votes1
answer151
viewsWhat would MOJO be on Maven?
I use the Maven some time together with other tools, and always see something related to Mojo, what would really be a Mojo?…
mavenasked 7 years, 4 months ago Homer Simpson 3,001 -
8
votes1
answer83
viewsIs there a property in Maven to access the "Resources" directory value?
Issue-based https://stackoverflow.com/q/9216557/4438007 I know I can use ${project.build.sourceDirectory} to access my source file directory. If I want to access the resource files directory, the…
-
7
votes2
answers321
viewsWhich tool to use to generate releases in Java?
I am developing my first project in Java, the application is an API using several libraries, among them: Jetty, Hibernate, Httpclient, Jasperreport... In this project I use the Maven framework, I…
-
7
votes1
answer1242
viewsControl module version with Maven
I have a multi-module Java project with Maven. Currently, I control the version of each module manually, editing the element <version> pom.xml for each module that undergoes updates. I believe…
-
6
votes2
answers173
viewsHow to force the version of a Maven plugin?
I have such a Maven project, that at the time of running the build, an A plugin runs. This A plugin depends on a B plugin that is pulled, which in turn depends on a C plugin. It turns out that this…
mavenasked 10 years, 11 months ago Victor Stafusa 63,338 -
6
votes3
answers6578
viewsHow to resolve the SLF4J failure in Maven?
Problem with Maven install: When I spin in the eclipse Run As > Maven install I always get that message: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to…
-
6
votes2
answers189
viewsAdd JNI Library Compilation with Maven or ant tasks
I am creating a Java project with native methods (JNI) without having to create three separate projects for it. My goal is to compile everything I need all at once. I use only one DLL/OS in this…
-
6
votes1
answer5016
viewsInclude jar file in Maven project
How do I include a . loose jar in a Maven project? Obs: The jar I need to include has dependency on another 3 jar files. The jars in question are from the project Brunette Attempt #1 I created a lib…
-
6
votes2
answers1225
viewsMaven + Spring MVC + JSP project, how to share view files?
I’m trying to adjust a file structure to start a big project, an ERP to be more exact. Today, there is a good part of it made in PHP in a disorderly way. Let’s adopt Java Web (Maven + Spring MVC +…
-
6
votes2
answers7676
viewsHow to add SQL Server dependency to Maven?
I’m trying to add dependency on SQL Server in my POM but gives Missing Artifact. <dependency> <groupId>com.microsoft.sqlserver</groupId>…
-
6
votes1
answer323
viewsJPA, Hibernate, Spring MVC, Maven - Definition
I’m having a lot of questions about definitions! My goal is to build a system architecture, but the definitions of JPA, HIBERNATE, SPRING MVC, MAVEN, are obscure. JPA: It is nothing more than a…
-
6
votes1
answer103
viewsHow to create an application from a Maven file?
I was working with EJB and dealing with four simple Maven projects, a web project ,a desktop project (JSE Swing), a project (JSE) that had only the interface and ultimately a web project (which I…
-
6
votes1
answer250
viewsHow to unify two Csss files
I’m doing a project Spring MVC 4.2. In this project I have more than one file CSS and more than one JS. What I want is to transform all the files Csss in a single ALL.css and that this file is…
-
5
votes1
answer933
viewsHow to override variable defined in POM with specific value at the time of mvn execution?
In an environment with multiple configurations of Web Container sometimes we need to correctly point the deploy directory of the application that may be in different directories depending on the…
-
5
votes2
answers8082
viewsMaven how to define JDK version?
Problem: When I create a project maven the project always got the version JDK 1.5, change the JDK version in the IDE when doing a Maven > Project Update he goes back to JDK 1.5. The archive…
-
5
votes3
answers534
viewsReduce jar size in Maven Design
I’m generating a jar from a Maven project and the size is absurdly high. What measures can I take to reduce the size of this jar?
-
5
votes0
answers148
viewsMojofailureexception caused by charsetName in Maven Archetype
A WAR project I’m trying to use as a base to run mvn archetype:create-from-project causes the following Exception stack after trying to read one of the files .java: [ERROR] Failed to execute goal…
-
5
votes2
answers239
viewsGET request is not answered correctly by backend
The project is an Angular 6 front-end, which connects to a Java back-end for communication with a SQL Server BD. The server that receives the file .war, containing both the back and the front, is…
-
4
votes3
answers589
viewsIs there any way to run batch files during the build of a Maven project?
I have a. bat file that performs some prerequisites during the build of my Maven project. I want to run this file . bat automatically when I build the project I developed Is there any way to…
-
4
votes1
answer4795
viewsApache Maven scopes usage situations
The question is about the different values that can be assigned to the property <scope> of the Apache Maven dependencies, and what criteria should I establish for the use of each of them.…
-
4
votes2
answers2530
viewsMaven - Configuring the Mainclass
Problem: When I create a JAR for eclipse it works smoothly, but I’m trying to enjoy the JAR that the Maven is creating and I realized that it does not perform, because my class main is not in the…
-
4
votes2
answers594
viewsManaging dependencies with Maven in an offline environment
I don’t know if what I’m going to ask is simple or complex, but it turns out that I started using Maven about two weeks ago in college, on a somewhat complex project of the Java EE discipline. I…
-
4
votes2
answers538
viewsMaven project with Hibernate and Glassfish does not generate database
I have a Maven project and I’m having problems generating the database, I’m using Hibernate and Glassfish 4. No error is generated, just no data is generated, I’m new with Maven maybe I’m forgetting…
-
4
votes1
answer4154
viewsHow to convert a Java project to Eclipse for a Maven project?
I have a Java project in Eclipse that I want to convert into a Maven project. For conversion, I right-click and select the option "Convert to Maven Project" as shown in the figure below. The problem…
-
4
votes3
answers1738
viewsIs it possible to test only specific classes?
I have two classes of tests: class A { @Test public void fazAlgo(){ // ... } } class B { @Test public void fazAlgoMesmo(){ // ... } } My tests are taking too long because all classes are being…
-
4
votes1
answer4911
viewsFailed to execute Goal org.apache.Maven.plugins:Maven-Compiler-plugin:2.5.1:Compile (default-Compile)
By clicking on install in any of my three MVC parts, he makes reference to the cited error. ================================================================================ Scanning for projects...…
-
4
votes0
answers338
viewsConfiguration of the Maven
I created a project Maven (NOTE: It is the first time I am touching this technology), but he is making this mistake. This plugin what message is talking about I need to install it? How do? Another…
-
4
votes1
answer810
viewsHow to add a folder via Maven to build path
I have an application using Jhipster, to make queries I added querydsl, configured in Maven to generate Q classes, these classes are being generated in the path: target/generated-sources Except that…
-
4
votes1
answer1940
viewsMaven: Generate JAR with Dependencies / Directory recources
I’m very lay with Maven and the fact that there is a lot of material on the Internet I ended up getting lost as I perform the operation below: I need to generate the JAR Runnable of my project with…
-
4
votes1
answer622
viewsMaven with Proguard
Well someone could explain to me how I can use Proguard in the Maven build to obfuscate the web project (War) in the direct deploy for Jetty? <project…
-
4
votes0
answers51
viewsSum of profiles in the Maven?
Setting: I have 10 customers, 3 of them use Websphere , 10 use Tomcat, 7 use jboss. in the pom.xml <profile> <id>cliente01</id> <dependencies> <!-- depencias para…
mavenasked 8 years, 10 months ago Bruno Rozendo 1,339 -
4
votes1
answer510
viewsProblem with deploying to Heroku
I’m using Maven, Java, JSF, Primefaces, Hibernate, Mysql, CDI and Tomcat 8 on the local machine to create the app. Now I’m trying to climb up and I’m having great difficulty getting the project up…
-
3
votes2
answers451
viewsSpecifying an EJB-client with Maven
I am unable to use the interfaces of an EJB-client generated by Maven. I have basically two separate projects with different functions. An EAR containing EJB’s and a WAR using EJB’s interfaces from…
-
3
votes1
answer225
viewsjavax.el - Implementation of Glassfish
There is a JSR-000341(Expression Language - EL) API in version 3.0.0. Maven dependency on the javax.el API: <dependency> <groupId>javax.el</groupId>…
-
3
votes1
answer2259
viewsProblems with Maven package dependencies
When I insert this package it generates an error, because it will be? <!-- Abstração para envio de e-mails --> <dependency> <groupId>com.outjected</groupId>…
-
3
votes2
answers597
viewsproblem in a Maven + JSF application
I’m trying to follow a workbook but when I do the Access project properties procedure and find the Project Facets side menu appears the window in the attachment and then I mark the altenativa as…
-
3
votes1
answer401
viewsWhat is the best repository for Maven?
Sometimes I can’t find the dependencies in a repository, so where should I look for those dependencies? Is there a core where all possible dependencies will be there?
-
3
votes1
answer373
viewsHow to change the language of the exceptions released during automated testing
Using Eclipse (IBM RAD Studio), Maven, and Junit, when an exception is released while running the tests the message is shown in English. I would like it to be shown in English. Example:…
-
3
votes3
answers375
viewsDemoiselle Error deploying to Jboss
When trying to deploy the example application, registration, of the Demoiselle tutorials in Jboss, I got the following error: 11:34:16,873 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7)…
-
3
votes1
answer1677
viewserror: cannot find Symbol - Maven install with class Folder
I have a Maven eclipse project that uses a Folder class. That folder has the . java and .class. The classes I use in the project are in build path as class Folder, when I do Maven install it gives…
-
3
votes1
answer596
viewsIntegrate Spark using Maven
Hello. I bought the Theme+Spark layout of the primefaces. In the community they wrote me that to use the layout. I would have to import the file spark-theme.1.0.war. Once imported, the full set of…