maven-2

m2eclipse workspace resolution

Hi all, I am using m2eclipse for managing maven projects in eclipse. It seems that in the previous release that I was using (0.9.8) the workspace resolution did not work at all, but right now it also does not work quite as I would expect. Namely, when the "resolve dependencied from workspace" setting for a project is not checked, the pr...

Maven build fails on an Ant FTP task failure

I'm using the FTP Ant task with maven-antrun-plugin <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <id>ftp</id> <phase>generate-resources</phase> <configuration> <tasks> ...

Maven hibernate jar not found (3.5.1-Final)

Hello, i'm trying to update the hibernate dependecy in my pom, I had the 3.3.2.GA version and i changed to 3.5.1-Final. But maven can't find the jars in the repo, so checking the url. http://repository.jboss.org/maven2/ in the hibernate section. I can see that there are't any jar, only pom's. But If i check the entity manager section ...

oracle hibernate + maven dependenciesm dbcp.basicdatasource exception

I'm trying to create a web application using maven, tomcat and hibernate. Now I'm getting a cannot find class for org.appache.commons.dbcp.basicdatasource for bean with name datasource... exception. Without the hibernate aspects it works fine, but if I add <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"> <pro...

Include XSD in Jar with Maven?

We have an XSD file along with some java src files. How can we instruct Maven to include the XSD in the jar file output? Currently it appears to ignore the file. ...

maven assemblies. Putting each dependency with transitive dependencies in own directory?

I have a maven project which consists of a few modules. This is to be deployed on a client machine and will involve installing Tomcat and will make use of NSIS for installer. There is a separate application which monitors tomcat and can restart it, perform updates, etc. So, I have the modules setup as follows: project +-- client (a...

QuickBuild: How can I create a builder to open a tarball package (tar.gz) whose name will change with each version?

I'm using PMEase QuickBuild to perform automated builds of our Maven2 projects and a nightly sanity test to ensure nothing is broken. The test needs to untar packages which are created by the automated Maven2 projects. The problem is that the package names change frequently due to project versions being incremented all the time. Does a...

Error while using JSFUnit/HtmlUnit/CSSParser

We've just recently converted our project to using Maven for builds and dependency management, and after the conversion I'm getting the following exception while trying to run any JSFUnit tests in my project. Exception class=[java.lang.UnsupportedOperationException] com.gargoylesoftware.htmlunit.ScriptException: CSSRule com.steadystate....

Specifiy classpath for maven

Quite new to maven here so let me explain first what I am trying to do: We have certain JAR files which will not be added to the repo. This is because they are specific to Oracle ADF and are already placed on our application server. There is only 1 version to be used for all apps at anyone time. In order to compile though, we need to ha...

How to make jetty-maven-plugin deploy a war that is retrieved from a repository?

Hi there. I'm setting up an integration test module for a good sized web project. The integration test module is separated from the web project itself, and it has it's own pom. The idea is to use the maven-soapui-plugin to send requests and verify the response. Setting up the soapui-plugin is no hassle. However, I'm having trouble with...

How to avoid wasting time during compilation during development?

Hello, I'm working with a small team of developers. My job is to convert a Make project (with Intellij Idea 9.0) into a Maven 2 project. The problem is : we spend a lot of time during the development. With Make, only one complete build was required and then any change did not consume a lot of time (almost instantaneously). On the other...

Adding JBoss repository to m2eclipse, no latest Hibernate version

I'm trying to add JBoss repository to m2eclipse, mainly for Hibernate. It seems to work, but it can't find the latest version of Hibernate (3.5.1), only 3.5.0beta. I looked at some other packages, and they all seem a couple of months behind. What could be causing this? I'm running latest m2eclipse, and i guess latest Eclipse (it just say...

If I package a web application with the maven goal war:exploded, why won't pom.xml and pom.properties be included?

Hi, I'm pretty new to Maven and I've noticed an interesting thing in the Maven WAR Plugin. When I package my Java web application with war:war, a zipped war is created. This war contains also the files pom.xml and pom.properties in the META-INF directory. But if I package my application with war:exploded and create an exploded war dire...

Is there anyway to exclude artifacts inherited from a parent POM?

Artifacts from dependencies can be excluded by declaring an <exclusions> element inside a <dependency> But in this case it's needed to exclude an artifact inherited from a parent project. An excerpt of the POM under discussion follows: <project> <modelVersion>4.0.0</modelVersion> <groupId>test</groupId> <artifactId>jruby</artifact...

Debugging my Maven2 plugin in Eclipse

I've written a plugin for Maven2 in Eclipse. How can I run the plugin in debug mode in Eclipse? If possible, I'd like to avoid remote debugging an external process and I'd also like to avoid installing plugins into Eclipse. ...

Maven Buildnumber plugin - Git

Hi all, The Maven Buildnumber plugin doesn't appear to work with GIT yet. Is there a workaround for the time being? I recently switched from SVN to GIT and have found it to be an easy transition, but this is the only thing that I don't have working presently. Walter ...

How to Avoid Maven builds stall on ssh host authenticity problem?

What's the right way to keep ssh host authenticity from being a problem for maven and hudsno builds? I have hudson building my maven project on a VM. When the ESX server with my VMs on it is taxed some of my jobs will stall out stuck in a loop of ssh host authenticity problems. The hosts were in the known hosts file, but during these...

Maven Spring tests fail when run together, but succeed individually (ehcache closed, IllegalTransactionStateException)

We're using Maven/Surefire and Spring/Hibernate transactional tests for a fairly large web application. There are 138 Test* classes, running a total of 1178 tests. A straightforward "mvn test" will generate 82 errors, the nature of which tend to imply a corrupt application context: Many of these: IllegalTransactionStateException: Pre-b...

Maven check for updated dependencies in repository.

Is there a Maven plugin that allows you to check if there are newer versions of dependencies available in the repository? Say, you are using dependency X with version 1.2. Now a new version of X is released with version 1.3. I'd like to know, based on the dependencies used in my project, which dependencies have newer versions available....

Maven2 junit timeout annotation doesn't work

We have a bunch of tests in a maven2 project and build with cruisecontrol. However the build regularly hangs, because the annotation of the test with a timeout @Test(timeout = 5000) is ignored. I tried and run maven locally, reproducing the fact that the timeout is ignored. Is there a way to activate the timeout for the tests again? ...