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
-
1
votes0
answers118
viewsHibernate + Maven + Glassfish
I have a Maven Project, which uses Hibernate, and has all the dependencies ok. I’ve already created the connection pool in glassfish. The problem is that even the class mapped with the annotations…
-
1
votes1
answer911
viewsMaven Project - Click on Tomcat, but do not run
I have a project from Maven which, although the messages displayed on the Eclipse terminal inform that the Deploy was successfully done. When I type the URL into the browser, I get a 404 error; then…
-
1
votes1
answer450
viewsHow to build a jar even if the project has a build error?
I am starting the process of automating the builds of our application, and in the project there are some classes with compilation error. Despite some build errors, the application is working fine. I…
-
1
votes1
answer67
viewsRun unit tests with dependencies that are in the exclusions group
I have a scenario where I need to run a test with Junit in a feature that has an external dependency, but to run this functionality on the application server I need to put this external dependency…
-
1
votes1
answer155
viewsWhat dependencies in Maven to use Jqwicket to integrate Wicket and Jquery
I am developing a Wicket-Hibernate-Spring project. Until the communication and persistence of objects in the bank, it was working normally. After some time, with some scope increase, I need to use…
-
1
votes2
answers8637
viewsMaven build error - Could not resolve dependencies for project
This message appears on my Maven app I tried to build a Maven with the clean package command [INFO] Scanning for projects... [INFO] [INFO] Using the builder…
-
1
votes1
answer186
viewsMaven not finding java
I’m trying to run the Maven and is returning me the following error: /opt/apache-maven-3.3.3/bin/mvn: 227: exec: /opt/jdk1.7.0_79/bin/java: not found I checked the paths and are ok, someone knows…
-
1
votes1
answer783
viewsImport javax.persistence and javax.inject libraries
How do I import javax.persistence and javax.inject libraries into a Maven project? Note: I am using eclipse.
-
1
votes1
answer267
viewsMaven calling Ant
I have a Maven project, I want Maven to "call" some target of ant, I’ve seen that there is a plugin "Maven-antrun-plugin" there on the apache site, but I can’t understand any example, someone could…
-
1
votes0
answers2050
viewsCorrect way to import a project that is on Github
I have a college project hosted at Github, at this link, but in the project I only pushed to Github from the entities files, which have been created so far, I did not push the entire project,…
-
1
votes2
answers854
viewspackage does not exist (Maven)
Let’s contextualize the problem: I have a project that consumes some Web Services, in this project I have separate source folders as suggested by Maven ex:(main/java test/java), the classes…
-
1
votes0
answers113
viewsHow do I correctly import using Maven in Android Studio?
I imported the org.apache.commons:commons-email through the command ALT + SHIFT + CTRL + S in Android Studio. The class identified without problems but I can not compile the project! PS: I entered…
-
1
votes1
answer136
viewsConvert Java + Windowbuilder project to Android or Web
Good afternoon, Would it be possible to convert my Java + Windowbuilder project to Android devices or to the web? I saw that it is possible to convert Java to Maven plus another doubt is... What…
-
1
votes0
answers68
viewsArchive Template for Netbeans
With Maven Archetype you can create project templates. And for archive template there is something similar? I would like to create a file creation wizard. Something like creating Servlets, where the…
-
1
votes2
answers259
viewsCreate two jar with the same pom by eclipse
How to create a pom in the Maven that manages by eclipse two files. Jars, where one will have the files . class and the other . jar will have the sources ( .java files) doing only one install.…
-
1
votes1
answer2928
viewsNo Qualifying bean of type found for dependency
I searched Stackoverflow and Stackoverflow in Portuguese but nothing guaranteed the solution to the problem. I have been through this problem several times but at the moment I do not find the…
java spring maven tomcat dependency-injectionasked 8 years, 8 months ago Giancarlo Abel Giulian 3,999 -
1
votes1
answer3473
viewsError creating table with flyway using Maven
I’m with this error below when creating the wine table using flyway, this is a Maven project, anyone knows why gives this error? Estates spring.jpa.database=POSTGRESQL…
-
1
votes0
answers208
viewsError 404 Tomcat
I’m starting with Maven, I put the dependencies I want on pom.xml and created a page xhtml to test for error 404: The requested resource is not available. Nothing appears on the console, it’s blank.…
-
1
votes4
answers368
viewsDifficulty with CSS in a JSF2 project
Greeting to all, I’m new as a Java programmer with JSF projects, I want to put an image as the page plan, and I don’t know how to do. This is the structure of my project; I tried to put the line of…
-
1
votes2
answers255
viewsFirst application using Maven
In my application I am trying to use Maven, but I have some problems that can be related to configuration, when I will generate a project JAR or use some Run As option from the pom.xml file in the…
-
1
votes0
answers127
viewsUnable to build Entity manager Factory in jar created with Maven
Good morning, everyone, In one project we’re using Hibernate, Log4j2, Gson and a few other things that you can see in pom.xml <?xml version="1.0" encoding="UTF-8"?> <project…
-
1
votes0
answers534
viewsUpdate project when running Maven
I have a java project with Maven stacks. I changed some java functions and applied the command again mvn clean install by the prompt. But when it is time to execute it does not update the code, it…
-
1
votes0
answers116
viewsInsert folder with MAVEN javafx project
Guys I have a MAVEN project, when Gero the project, it generates the main JAR and the LIB folder, which contain the library, all right up to there, what I need is to include another folder with…
-
1
votes2
answers685
viewsTomcat does not activate in Spring boot. How do I activate it?
I’m doing a project using Spring boot on Intellij + Maven. Following and reading tutorials. I did the step by step but when taking Run Tom Cat is not shown, activated. I am not using any other…
-
1
votes1
answer40
viewsSpring XML localization in a Maven project
Within a Maven project, where I put the Spring file, spring-context.xml?
-
1
votes0
answers69
viewsError when converting java project with Jersey to Maven
I created a project with angular and WS REST using Jersey. It was working normal until I went to convert the project pro Maven. While trying to move up the project, I’m having the following…
-
1
votes0
answers76
viewsException when running project
I have a project Maven where I tried to add a more recent dependency on JSF After these attempts the project always presented errors. I created a new project and copied all classes, pages etc. Now…
-
1
votes0
answers31
viewsliquibase:diff always generates indexes
I am using spring-boot with the liquibase-Maven-plugin plugin to generate database changes according to my classes, but the command "mvn Compile liquibase:diff" always generates removals and…
-
1
votes0
answers186
viewsHow to use the self-generated mvnw.cmd file from the Spring Initializer website?
How can this auto-generated file be useful from day to day? I even tried to run it on MS-DOS but saw nothing happen.
mavenasked 6 years, 12 months ago user97933 -
1
votes2
answers6518
viewsHow to Configure Maven/Java Environment Variables
I have set the following environment variables JAVA_HOME C:\Program Files\Java\jdk1.8.0_144%MAVEN% MAVEN_HOME C:\Users\Rafael Storm\Desktop\apache-maven-3.5.2 - (extrai o Maven) MAVEN…
-
1
votes1
answer395
viewsError deploying SOAP web service with Maven and Apache Tomcat
I built a JAX-WS application by Maven, but I’m unable to deploy it to the Tomcat application server. They follow my artifacts: pom.xml: <project xmlns = "http://maven.apache.org/POM/4.0.0"…
-
1
votes0
answers147
viewsProblem starting the Tomcat
good afternoon I have the following problem on my production server. I already installed Tomcat 8 and 9 to test, JDK 8, I set everything up straight (I believe) and one of my projects does not go…
-
1
votes1
answer933
viewsError in project pom.xml file
Hello, I have a problem that I could not identify, in my project an error appears in the file pom.xml, I already ran Maven updte in the project, but the error persists, and my repository is . jar is…
-
1
votes0
answers142
viewsProblem rendering JSF page
I have a very "boring" problem, yesterday I had a system JSF working perfectly with all pages opening correctly. When I enter the system today the page is like this: No component of Primefaces or…
-
1
votes1
answer716
viewsInclude angular.js using Maven in Java Spring project
I’m studying the Spring Framework with Maven, in the part of inserting dependencies I’m having a little difficulty when trying to insert the angular.js in the html of the page, in the pom.xml file,…
-
1
votes1
answer370
viewsError in creating a Maven project
As soon as I create a Maven project with the "War" Packaging, it gives the following error : Description Resource Path Location Type web.xml is missing and <failOnMissingWebXml> is set to true…
-
1
votes1
answer115
viewsHow to package a Spring Boot application with Maven without running the tests?
I am developing an application with Spring Boot and every time I perform the command mvn package He runs my unit tests. However, my tests do not raise the server with the application to run the…
-
1
votes1
answer7968
viewsjava.lang.Classnotfoundexception: javax.faces.webapp.Facesservlet
Trying to start my JSF application returns this error : java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet pom.xml <dependency> <groupId>com.sun.faces</groupId>…
-
1
votes0
answers239
viewsHow to convert a Maven project to Gradlew?
I have a Maven project working perfectly and I need to convert to Gradlew how I can do this ?
-
1
votes1
answer136
viewsSonar + Maven + Jenkins integration
Good morning, everyone, I am setting up an integration server using Jenkins + Maven + Sonar Quebe, but I have the following scenario: 1 - If junit tests fail, Maven stops deploying the application.…
-
1
votes1
answer63
viewsError Opening a Maven Project
Every time I try to import some Maven/Spring project gives me this error, some error in build 3.0.1. Does anyone know what might be? I am using a Macbook Pro (version 10.13.6 (17G65)) macOS High…
-
1
votes1
answer30
viewsHow is it possible not to use a dependency to compile, but to use it at runtime?
Studying build tools like Maven, I saw that it is possible to declare the scope of a dependency only as Runtime, which would make it impossible to compile a code that uses it. As this is possible,…
-
1
votes0
answers39
viewsIs it necessary to use any CI tool to build and build Docker-Compose with Maven?
I am building a web application with Spring MVC and Postgres, my problem here is with using pom.xml to create a Docker-Compose file to deploy in containers. Is it possible to add commands to pom.xml…
-
1
votes1
answer1248
viewsJPA(2.1) dependency on POM.xml file
I did a normal Javase project with JPA for the persistence part, and it worked, the project consists only of an entity that is persisted in the bank and nothing else. I used the following libraries:…
-
1
votes1
answer44
viewsMaven does not work with proxy
mvn archetype:generate -Dartifactid="products" -Dgroupid="br.com.Alura.Maven" -Dinteractivemode="false" -Darchetypeartifactid="Maven-archetype-Quickstart" when I try to run this piece of code Maven…
-
1
votes1
answer136
viewsHow to change the version of mvnw from the command line?
I need to change the version of mvnw to the 3.5.0 or higher. I am using a maven-wrapper inherited from another project (copied and pasted), but it is in the version 3.3.9. How to make this change in…
-
1
votes0
answers264
viewsIntellij JSF - Page opens in white
What I did I created a project Maven and added the module of JSF, however, even with the library downloaded. What’s going on When I run my project using the Tomcat, the page olamundo.xhtml comes…
-
1
votes0
answers767
viewsMaven dependency problem (plugin m2) in Eclipse
I’m new to Java development and I don’t know much about Maven. The little I learned was through research and tutorials on the internet, and now I’m facing a problem that seems to be related to…
-
1
votes1
answer524
viewsWhat does a SNAPSHOT version mean?
A version SNAPSHOT would be similar to a BETA version? Work with Maven and by default he creates the Wars files like MeuProjeto-0.0.1-SNAPSHOT.war. If my version is not yet a version 1.0.0 what is…
-
1
votes0
answers252
views