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
-
3
votes1
answer228
viewsMaven Web Application with Github Repository and Hosted in Openshift
I have a Java web application (wildfly server) created with Maven, locally versioned with Git and remotely on Github, I’d like to know how to host this application in Openshift and deploy every Pull…
-
3
votes1
answer57
viewsFakehttpserver breaks when upgrading to Jetty 9
I’m migrating an application that used the Jetty 7.4.5.v20110725 to the Jetty 9.3.0.M2, using the Maven. I’ve already updated the javax.servlet-api to the versão 3.1.0. But, I’m using the…
-
3
votes1
answer1128
viewsHow to automatically create specific files via Maven to deploy from each container?
I am working on a rather complex JEE project, which involves the possibility of deploying the application to each client in a different container. In my development environment I use Jboss, but the…
-
3
votes2
answers1288
viewsExecution cannot find 'org.junit.Assert' even if you have the Junit jar in classpath
I have a problem that I’ve done a lot of research on and I haven’t found the answer to yet. I have a test case I’m trying to run and send a message to the console. But even though he has Junit’s…
-
3
votes1
answer274
viewsHow to generate compiled classes and maintain the. java in Maven?
Guys every time I do Maven install it compiles the classes and generates the xxx.class, so far so good. I would like to know if it is possible to generate . class and also keep all . java, in the…
-
3
votes1
answer659
viewsWeblogic and libs conflicts: how to know which versions Weblogic already has?
My question is of beginner, but I feel quite lost. I have been working with Java, but have always used Tomcat. I recently needed to make my "webapp" compatible with Weblogic. The problem is that I…
-
3
votes1
answer554
viewsHow to configure the java version?
Following the step by step of the lesson 1.3 Introduction to Maven, we have the following code (replace square brackets for braquets): [modelVersion]4.0.0[/modelVersion]…
-
3
votes2
answers796
viewsProject error after adding Ireport dependency
When I add the dependency following the project and pom.xml get bug: <dependency> <groupId>net.sf.jasperreports</groupId> <artifactId>jasperreports</artifactId>…
-
3
votes1
answer1585
viewsGenerate Runnable Jar from a Maven project
I am having difficulty generating a Jar file from my application from Maven, I followed the following tutorial. Mkyoung.com It comes to generate the Jar but with a super reduced size and at the time…
-
3
votes0
answers156
viewsHow to implement Flyway in a Javaee Maven project with Hibernate, vRaptor and JPA?
In a project Maven, JPA, with Hibernate and vRaptor integrated, how to implement easily and effectively, the Flyway? Implementing this, my bank will update how it was in developing the <property…
-
3
votes1
answer110
viewsHow can Maven’s archetype webapp work without web.xml?
I tried creating an app Maven archetype webapp in Eclipse JEE Photon: File > New > Maven Project > Next > maven-archetype-webapp 1.0 It generates the following file structure: . |-- src…
-
3
votes1
answer154
viewsError for Importing JDBC from sqlServer with Maven
In my java web application ,I needed to add a connection to a sql server database, so I put it as a dependency on Maven as described below: <dependency>…
-
2
votes2
answers814
viewsHow do you tell Maven that one module depends on another?
I have two modules and each depends on the other. How to say this on Maven dependencies?
mavenasked 10 years, 7 months ago Bruno Rozendo 1,339 -
2
votes2
answers1176
viewsError Building on Jenkins
I’m having a problem configuring the build in Jenkins follows errors: this happens in the job " configuration in the build step", where I choose the version of Maven and then below I need to…
-
2
votes1
answer574
viewsAdd Maven to a Web Application Project
Good morning, I am using a Web Application Project, to be able to use the Google App Engine. I wish I could download the . jar and its dependencies using Maven, someone knows how to add Maven to my…
-
2
votes1
answer177
viewsError while deploying to Openshift using my git
Hello. I’m having a very strange problem with my application in openshift. I created in Openshift a Jboss application and added Jenkins. From there I changed the source code source to my git…
-
2
votes1
answer649
viewsSpring Framework in modular design by Apache Maven
I created a modular web project using Apache Maven with the following structure: proj-build |--- proj-utils |--- proj-persistence |--- proj-services |--- proj-web `--- proj-ear Description…
-
2
votes0
answers79
viewsMaven UML Generator
I wonder if there is a more current plugin to generate the UML of my classes in a Maven project. The idea would be to run this "uml Generator" engine on the integration server continues, and so…
-
2
votes1
answer270
viewsI can’t get the artifacts into Maven
I have little experience with Java programming and I’m having difficulties to include the libraries by Maven, and I don’t know if it’s really necessary to create a local Maven repository on my…
-
2
votes1
answer1476
viewsERROR Could not open Connection and user root
Is happening these errors below in my application: Note: I am using Maven. Follow an image of how the project structure looks in the eclipse: Follow the mistakes below: out 22, 2015 11:03:58 PM…
-
2
votes1
answer39
viewsHow to change the life cycle of the Maven?
I have an EJB project and would like to run the test after deploying my Air. Because I have a test on the ejb layer, which needs to access the ejbstubs inside the server(was), before I did it with…
-
2
votes0
answers186
viewsGenerate test javadoc with Maven in Netbeans
I need to generate test javadoc using Maven. I found this tutorial => https://maven.apache.org/plugins/maven-javadoc-plugin/examples/test-javadocs.html It worked, however, I can only generate…
-
2
votes1
answer113
viewsSpring Loaded is not working
I have a Spring 3.1.4 project and I’m setting up the spring-loaded follows the image below: The Tomcat performs well but the spring-loaded is not working any change I have to raise Tomcat again.…
-
2
votes0
answers92
viewsMaven error: -fuzzyMatcher TYPEVAR
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.10.3:jar (package-javadocs) on project globalmentor-core: MavenReportException: Error while generating Javadoc: [ERROR]…
-
2
votes0
answers162
viewsHeroku does not work after adding dependencies to pom.xml (Maven)
I deployed a java project with Maven, it worked smoothly, but after I put the dependencies in the pom.xml file and push, Heroku no longer runs, not even "hello world". Follows as was pom.xml, then…
-
2
votes1
answer667
viewsError changing Primefaces theme
Hello, I’m learning primefaces and I’m trying to change the theme of primefaces. For this I downloaded by Maven. The theme even appears in the dependencies. But the following message appears when I…
-
2
votes1
answer666
viewsorg.xml.sax.Saxparseexception; lineNumber: 10; columnNumber: 24; Attribute "Singleton" must be declared for element type "bean"
I am upgrading a (old) project to the latest libraries, such as Spring (from version 3.2.4.FINAL to version 4.3.11.FINAL). One of the errors that appears in Tomcat 6 is:…
-
2
votes0
answers558
viewsjava.lang.Nosuchmethoderror: org.jboss.logging.Logger.debugf. Glassfish 4.1, Hibernate 5.2, Spring 4.3
I cannot upload an application to Glassfish 4.1. It seems to me that the problem is dependency org.jboss.logging I already added it to the project in version 3.3.0 but the error persists. The…
-
2
votes1
answer2035
viewsError importing Maven project into Eclipse: No Marketplace Entries found to Handle
I am new to Javaweb programming and when installing the eclipse and importing my project created by Maven, accuses the error below: No Marketplace Entries found to Handle Maven-antrun-plugin:1.8:run…
-
2
votes2
answers918
viewsProblem creating Maven project on Eclipse Mars
I was using the Maven in the Eclipse Luna Normally, I decided to test the new version of Eclipse and when I create a project Maven some exceptions are thrown: Description Resource Path Location Type…
-
2
votes1
answer53
viewsDoubt "Maven-archetype-webapp" template
I’m a beginner in development with Maven and I’m having some doubts. Next, I would like to create a Java web application, so I started running the following command: mvn archetype:generate…
-
2
votes1
answer456
viewsMaven - How to add a directory to build?
I’m having a hard time adding one directory of my project inside the archive *.jar. I added the code below in my pom.xml : <resource> <directory>migration/</directory>…
-
2
votes2
answers711
viewsUsing Maven or Spring Boot?
In my researches I could understand that there is how to perform application Profiling (e.g. homologation and production) in two ways, via Maven and spring-boot. The big question is that I have…
-
2
votes1
answer503
viewsError compiling a modular Maven project with modular java 10
I am adapting the exercise of the book "Java 9 - Interactive, reactive and modularized - author Rodrigo Turini" to a modular Maven project with java 10 modular. However this gives error when…
-
2
votes1
answer128
viewsModular Maven design with modular Java10 cannot find the java module
I am adapting the exercise of the book "Java 9 - Interactive, reactive and modularized - author Rodrigo Turini" to a modular Maven project with java 10 modular. However when running, you are not…
-
2
votes1
answer57
views'mvn clean Compile package' runs Phase Compiler 2 times?
Once if I run mvn clean package i know that consequently will run all phases of the default Lifecycle from Maven prior to package (Compile, test, package), so it is: calling for mvn clean Compile…
-
2
votes1
answer1761
viewsHow to get the value of the <version> property in pom.xml?
I need to get the value of the current version of the application in various parts of the code. A priori I thought of creating a class containing the version: public class Version { public static…
-
2
votes1
answer887
viewsError creating project in Maven
I am trying to create a project using Maven with the following command: mvn archetype:generate \ -DarchetypeGroupId=org.apache.maven.archetypes \ -DarchetypeArtifactId=maven-archetype-quickstart \…
-
2
votes1
answer1394
viewsAdd External Library . JAR, to MAVEN project using VSCODE?
I am developing a JAVA project together with MAVEN to be compiled. However, I need to put the library jar. that is already on my computer in the MAVEN project and pull the data that is inside it to…
-
2
votes1
answer195
viewsRestful with Spring, Hibernate, Maven, Postgresql and Wildfly - Createcriteria
I am doing a Restful project with the following frameworks and am going through a problem, I created a User class to relate to the database, then I created the userDao to carry out the CRUD methods…
-
2
votes0
answers108
viewsPlugin Execution not covered by Lifecycle Configuration
I have implemented unit tests in my application using Jasmine and I want to configure a continuous integration in Maven so that the tests run automatically. Already working, however an error is…
-
2
votes1
answer517
viewsError running . jar on Windows Powershell with Maven
Good afternoon to all. I am trying to run this tool (CPA - https://github.com/CityPulse/cpa). Through the link provided, I download the classes. After that, I run Maven, which generates a .jar. The…
-
2
votes0
answers900
viewsHow to fix Failed to execute Goal org.codehaus.mojo:exec-Maven-plugin:1.2.1:exec error?
I’m making that mistake: ------------------------------------------------------------------------ BUILD FAILURE ------------------------------------------------------------------------ Total time:…
-
2
votes1
answer241
viewsHow to generate JAR and POM project by following the Maven repository layout?
I have a project where I need to generate the jar and pom following the same method as the plugin Maven-install-plugin generates within the local repository, as in the return that is given when…
-
2
votes2
answers2953
viewsMy application does not start in Spring-Tools Suite
I created a Maven project in Spring-Tools Suite when I started this error appears: Exception in thread "main" java.lang.IllegalStateException: Failed to read Class-Path attribute from manifest of…
-
2
votes0
answers548
viewsJAR Executable much slower than running by Netbeans
Good morning, I have a project in netbeans that uses Maven to build an executable jar, so far so good. The problem is that when I run the project by ". jar" that is generated by Maven, execution…
-
2
votes1
answer1024
viewsPut Maven Local Project as Dependency on Gradle Project
I have this Maven project that has all the application domain classes and logic. Then I created an external Gradle test project where I do system testing with Selenium Webdriver. In order not to…
-
2
votes1
answer864
viewsSave Request Spring Boot
I’m a beginner at Spring Boot and I need a little help. I want to save an incoming and outgoing request by generating the automated id and saving the date and time, using Docker and Postgres (I…
-
2
votes2
answers66
views -
1
votes1
answer98
viewsVaadin project error in "pom.xml"
I created a Maven project and put the dependencies, I got the bug in the pom related to dependency Servlet . <dependency> <groupId>javax.servlet</groupId>…