maven-2

Get sources of a snapshot dependency on Eclipse

Hello, Something bother me a lot... On a big project with many dependencies, some of them are set as SNAPSHOT in Maven2. The matter is that it seems i can't get the sources through Eclipse without loading the project or fixing the dependency to the last release. For debugging, it's really annoying me... EDIT This is what i get in ...

GWT Development Mode with Eclipse/Maven

Hi, I am just starting with GWT. I use Eclipse and have installed the GWT plugin. I have followed the directions here http://stackoverflow.com/questions/1894003/maven-gwt-2-0-and-eclipse to set up a GWT project using the gwt-maven-plugin. When I run the Maven goals gwt:compile gwt:run, GWT Development Mode is launched and I can copy...

Preserving argument spacing, etc when passing into mvn exec:java

I have a shell script that launches a Maven exec:java process - exec mvn exec:java -Dexec.mainClass=... -Dexec.args="$*" Now sadly if I run ./myMagicShellScript arg1 "arg 2" the single string arg 2 doesn't make it through as a single argument as I'd like. Any thoughts as to how to escape / pass things through properly (perferably ...

Maven repository for BIRT 2.6.0

Is there a Maven repository for BIRT 2.6.0 that I could point to? ...

Test-resources of dependecies not in classpath?

I have a multi module Spring project that I set up using Maven: my-root (pom) - my-logic - my-webapp (depending on my-logic) - my-consoleapp (depending on my-logic) My Test classes inherit from AbstractTransactionalJUnit4SpringContextTests and use @ContextCofiguration for setting up the ApplicationContext. E.g. the test c...

Selenium Webdriver - missing classes in maven repository

Hi, I have been using Selenium Webdriver successfully with JAR downloaded from their pages or code.google. But now I would like convert my project to use Maven repository. I found out that my required classes are in support module of webdriver and confirmed it in their repository ( classes Wait, WebDriverWait, ExpectedCondition). So I ...

com.sun.faces.config.ConfigurationException: no web.xml present

I programmed an application with JSF and some other fraeworks. Then I destroyed my metadata with maven and then I created a new project and imported all my classes and config files into the new project. So that I have clean metadata. The Project can be built without problems now. But when I want to start it onto tomcat I get the followin...

Maven doesn't see tested classes

Hello, i have problem with maven. When i try to compile test classes (mvn test-compile), it fails to find the tested classes used in test classes. For example class UserTest can't be compiled because compiler can't find class User which is being used inside the UserTest class. The problem is most likely in the class path not including t...

Best maven book (pdf) / tutorial

Anyone know where i can get the best of test maven book to read and learn the basics in a few days. Never worked with maven before. Thanks. ...

Has anyone been able to hotdeploy using m2eclipse on Websphere 6.1 with MyEclipse?

I've been looking around for a while how can I hotdeploy my projects when using m2eclipse plugin on MyEclipse and working with Websphere 6.1. What I've done so far is to deploy my full application using the was6 maven plugin (http://mojo.codehaus.org/was6-maven-plugin/) but that plugin will only deploy the EAR into the Websphere.So when...

Maven multiple modules - post-packaging step

I have a Maven project that consists of several modules. I have a single POM file that I use to invoke the build of all dependent modules. What I want to do is to copy a bunch of files to a single location and zip them up once, after the package lifecycle of all the sub-modules has completed. I've looked into antrun, but can't see how...

Is there any way to tell maven war plugin to use folder other than target/classes

when i use maven war plugin, by default, this plug-in will copy all class files(*.class) from target/classes to {warfile}/web-inf/classes. The problem is if i have compiled classes (*.class) that stay in another folder : basedir/other-classes (they are *.class file not *.java file, i know, it is weird. But those classes is generated fro...

how to ask maven war plugin to copy particular jar file into warfile/web-inf/lib

I have a simple.jar file that stay in c:/JAR. When i used maven war plugin to create a war file, it will copy all the dependencies into lib folder. How can i ask maven to copy simple.jar into lib folder as well. ...

would maven be a good fit for this scenario ?

We currently have an ant based project and are contemplating moving to maven. The project is java ee based, however it has a module structure where each module can contain multiple java ee projects. like this: mod1-->subdir-->war-A -->war-B mod1->src mod1->build/classes multiple such modules plus some jars dependencies a...

Best practices for integrating QTP with Maven build Scripts?

i want to Integrate QTP with the MAVEN build scripts. So that i can achieve continuous integration. Whats the best practices for achieving this? Will Hudson be of any use here? ...

Maven fails with tomcat-maven-plugin since this morning

Since this morning Maven can not build any project that requires tomcat-maven-plugin. I tried with the minimalistic pom.xml, with just that one dependency, but in all cases I get the following: [INFO] Error building POM (may not be this project's POM). Project ID: org.codehaus.mojo:tomcat-maven-plugin Reason: Error gett...

How to specify the order of modules for Maven?

Project structure is: /foo pom.xml /foo-war pom.xml /foo-ear pom.xml This is my parent pom.xml: .. <modules> <module>foo-war</module> <module>foo-ear</module> </modules> .. This is the content of foo-ear/pom.xml: .. <dependencies> <dependency> <groupId>${project.groupId}</groupId> <artif...

Maven Javascript Compressor

Hello, I want to know how one can compress javascriptfiles using maven. I have lready visited webistes like http://mojo.codehaus.org/javascript-maven-tools/guide-webapp-development.html but there is no implementation expained. I want to know the dependency for executing the maven plugin. Thanks. ...

Why is maven installing to the wrong place?

I try to run a mvn install, it compiles fine, but for some reason maven is trying to install to this location: [INFO] Installing /home/username/workspace/projectname/pom.xml to /home/username/workspace/projectname/?/.m2/repository/artifactname/artifact.pom Note, the location has a ? in it. This location really needs to be the home d...

Why is maven not packaging my hibernate-mapping file?

I'm using Maven 2 and Hibernate for a Java web app. I have a Hibernate-mapping file, Domain.hbm.xml in the same source folder with several domain classes. If I run mvn clean package I find that this file is not copied into the war file in the target folder. However, if I do only mvn clean and then go to eclipse and select Clean from t...