I am running pom through maven and am getting the following error. Pom looks okay. It built successfully when run with testng. Could someone help me with this. T E S T S ------------------------------------------------------- Running TestSuite Result
I have an existing Java project with a single dependency. I just want to make a pom.xml so that someone can pull the project, mvn install or mvn init or whatever it is, then start working. How do I do this without using an IDE? I'm looking for the eq
I have recently begun converting existing maven projects to OSGI bundles and am confused about what all I need to list in the <Import-Packages> tags in the POM file. Initially I put an asterisk to see everything OSGI thought is need and was surprise
In the attempt to add Hibernate Search feature to my existing project, I edited my pom.xml file, specifically changed hibernate version from 3 to 4. And the following error arised ERROR: org.springframework.web.context.ContextLoader - Context initial
I was searching over the web for a solution to my problem and I almost tried everything I found but I still didn't get the right one. Here is my problem shortly : In my pom.xml file I have a user property in properties section like this : <properties
The first my directory look like: +- pom.xml +- src/ +- test/ +- java/ +- dms.config/ +- config.java +- dms.util/ +- generatedata.java +- dms.pages/ +- LoginPage.java +- dms.testcase/ +- LoginTest.java My testng.xml look like: <?xml version="1.0&q
I have used MAVEN in my recent projects, and I'd like to keep using it also now that I'm on a project published under an SVN Repository with Hooks checking for a particular structure (ANT + IVY related) that allows a build.xml in / (the project root)
I have a project that uses UI4J, and instead of using external jar I decided to go for maven, I am going to distribute it via git, so I guessed that this is a much better approach. This is my pom.xml: <project xmlns="http://maven.apache.org/POM/4.
This question already has an answer here: Are there rules for valid Maven developer roles? 3 answers Is there any special significant of using "developers" tag in pom.xml file or we just use it to list developers of the project.From Maven doc, A
I have the following warnings when I run Maven project with goals of jetty:run for Spring MVC like below: [WARNING] Failed startup of context org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@7dd712e8{/dfaMusicStore,C:\Users\Tony Do\Desktop\Eclipse\
I'm unable to start my webapp on my Tomcat 7.0 Server because of the following error : java.lang.ClassCastException: org.glassfish.jersey.servlet.ServletContainer cannot be cast to javax.servlet.Servlet My web.xml , which include the ServlectContaine
I am a maven newbie. My test project depends on module project (extended-java-client). I need to run "mvn clean package" on the module path which gives me extended-java-client-Jar. Then, I need to run "mvn clean install test" to run th
I use tycho-packaging-plugin to set the output folder for the jar. Here is shortened version of my pom: <properties> <tycho-version>0.21.0</tycho-version> </properties> <build> <plugins> <plugin> <groupId>or
I am trying to setup a Jersey RESTful service, the problem is that I am getting the following error when trying to do GET request to the following API: http://localhost:8080/GroupAppServer/api/status: com.sun.jersey.api.container.ContainerException:
Project build error: Non-resolvable parent POM for org.alfresco.maven:alfresco-sdk-parent:1.1.1: Failure to transfer org.alfresco.maven:alfresco-lifecycle-aggregator:pom:1.1.1 from https://artifacts.alfresco.com/nexus/content/groups/public was cached
I am trying to add a jar file to the Maven dependency in my project. The settings.xml is configured to set the repository to a public repository. But this particular jar is not present in that repo. As i have the jar in my lib folder, how can i confi
Agregate Project 1: <groupId>com.mycompany</groupId> <artifactId>builder</artifactId> <version>1.0.0</version> <packaging>pom</packaging> <modules> <module>../module-1</module> <module&g
I want to run multiple CMD commands in maven using single pom.xml. May I know how can I do that? for example <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.2.1</ve
I'm able to run all my tests but i don't know how to configure group in pom.xml and run the test group using maven. I'm using TestNG frame work but nothing added like testing.xml in pom.xml. can anyone please help me to make group in pom.xml using te
I have a maven module for holding a plain text file that I need to "build" (rename the file with name-version-classifier.extension format) and deploy on my maven repository. I know I can deploy it via command line but I want to know if i can wri
Problem: Keep getting "module 'xxx' may need to be (re)compiled". Steps: Importing a sample GWT-Maven project into eclipse ("MobileWebApp" - from the GWT SDK). GWT|compile the project. Running in production mode (without the codesvr pa
I am seeing a weird issue: I have around 5 Test Cases that are written in java, and I am running these Test Cases using maven, but I cannot run any test cases (.java files) if the class name doesn't include the keyword "Test". So, I am able to e
This question already has an answer here: Where is Maven Installed on Ubuntu 6 answers in the windows environment you will have .m2 folder in C:\Users\user_name location and you will copy your settings.xml file to it in order to setup your proxy sett
Every time I make a new proper project using Maven hosted on Github I have to go look at either one of my own old projects and copy the pom file or I go find a project that I think does a good job and copy there POM file. Then I have to go search and
I'm using pluginManagement element in my parent pom.xml to configure plugins for all its children. For example, I have the following configuration: <pluginManagement> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifac
I am working on a maven plugin. I seem to have a hard time figuring out, what would be a good way to get POM information from project in which you execute the MOJO ? For instance if I execute my mojo in another maven project I would like to get proje
I have a following tree structure of maven project: Root/pom.xml Root/moduleA/pom.xml Root/moduleA/src/main/java/moduleA/MyClass.java and i want to use a class moduleA.MyClass in Root pom.xml via exec-maven plugin. The problem is: if i define ModuleA
I searched a lot in apache documentation and ibiblio.org and I could not find a decent straight answer. My questions: When I download a jar using maven dependency (setup in pom), how can I be sure that the file does not change on the remote repositor
I am trying to add Hector dependencies to my POM. My IDE is Eclipse, and I am also using m2eclipse. Adding dependencies of JAR type is not a problem, but this dependency is of type POM. I have tried almost everything usual including cleaning, buildin
this far i've been working on projects without using any build manager, i've used Maven just once before and found it pretty useful, so i'd like to start implementing it on my new projects. I'm starting a Web application that uses Hibernate, JPA, Str