maven-2

Can you use ehcache 2.1.0 with Hibernate 3.3.x

ehcache-core-2.1.0.jar seems to have the following dependency, does it imply I cannot use this with hibernnate-core-3.3.x.jars <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-core</artifactId> <version>3.5.1-Final</version> <scope>provided</scope> </dependency> ...

Eclipse mvn project deploy to jboss

I changed my project to use maven2 (from just plain eclipse dynamic web project) and now I can't do Debug As > Debug on Server (JBoss). Previously I can just do Debug As > Debug on Server (JBoss) and Eclipse will happily copy the war file into jboss deploy directory and I can debug etc. Now it seems like eclipse just don't recognize th...

Server can not find class in .ear

Hello, I have some problems with my .ear file. The structure of the file is: app.ear |-xxx.jar -yyy.jar -zzz.jar -ektorp.jar -app-ejb.jar -app-web.war |-WEB-INF |-lib |-xxx.jar |-yyy.jar |-zzz.jar |-ektorp.jar When I try to deploy my application, I get ClassNotFoundException, with class wihch is in ...

incorporating -xmlConfigured in maven

Does the maven-aspectj-plugin have an option to specify ajc's option -xmlConfigured? If not, what's the common practice for compiling aspect codes with most recent version of ajc using maven? ...

Specifying jar file in maven build argument

Hi, We have our project build using maven. We try to run our unit test cases in maven build itself and for doing that we need to add DB2 driver jar in the dependency of all the sub projects. Instead of doing that, we need a solution to specify the absolute path of the jar file as a mvn command line argument to use it in the running of...

Can't add project from local Maven repository as a dependency

Hi. I've written a new Maven project and for now let's call it Utils. I've installed it successfully in my local Maven repository. At least the targets clean install print BUILD SUCCESSFUL in the end. I can also find the jar when I navigate to it manually through the Windows Explorer. Now there's another project called Import I've writ...

Create pom.xml file

Could anayone give me some sugestions on how to create a pom.xml file for a multimodules project, that is build with ant? I need to create this pom.xml file in order to analyze the project with Sonar. ...

How to deploy a specific child project with cargo:start using maven

Hi experts, I have a developed application and I am just trying to make the build process easy. The POM file for parent looks like this: <parent> <groupId>com.shc.obu.ca</groupId> <artifactId>shcobuca-pom</artifactId> <version>1.1.0</version> </parent> <groupId>com.shc.obu.ca.osol</groupId> <artifactId>apps-pom</artifa...

Maven properties in gwt.xml

How do I use a Maven properties from pom.xml in my.gwt.xml? ...

Classes from .war cannot find EJB beans.

Hello, I have .ear file, in it there is .war and ejb .jar. When I deploy the .ear to the server (glassfish v3), I'm getting javax.naming.NameNotFoundException: com.deportio.ejb.TransportsFinder#com.deportio.ejb.TransportsFinder not found This class is in ejb .jar. Everything is built by maven. What should I configure for it to work?...

Best practices for command-line builds

Item 2 of the Joel Test is "Can you make a build in one step", but what is the best (or commonly accepted) way to achieve this? What are the pros and cons of using the IDE's command-line interface to do a headless build, as opposed to maintaining a build script that is completely independent of the IDE (e.g. using Ant or Maven in the cas...

Maven surefire plugin fork mode

By default maven surefile plugin run tests in isolated (forked) environment. You can override this behavior with following configuration: <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <forkMode>never</forkMode> <...

Advice on a good Java build tool, well integrated with eclipse

Hi SO guys ! I am working in a small team (3 persons) on several modules (about 10 currently). The compilation, integration and management of build versions is becoming more and more tedious. I am looking for a good build / integration tool to replace / complete Ant. Here is the description of our current development environment : - S...

Maven2 + JMeter + JUnit with dependencies

I'd like to run my JUnit tests in JMeter. Using maven-jar-plugin I can create a jar with my tests in order to put it inside the JMeter's classpath ($JMETER_HOME/lib/junit). The problem is that my tests have a lot of dependencies that Maven2 doesn't put into the jar, including the main classes of the project, classes from other projects a...

Launch MongoDB with Maven

I am using the MongoDB Java driver to perform some persistence in my application. The build for my application is managed via Maven and I'm looking for the best way to integrate a series of MongoDB-related unit tests into my Maven build process. I cannot assume that the user building the application has installed the MongoDB dameon as a ...

Nexus repository contains artifact but only makes POM available

I have a Nexus instance with Maven 2 repositories hosted on a non-Internet-connected corporate development domain. I need to use the maven-jaxb-schemagen plugin from Sun, however, it was only available in Maven 1 format (along with many other Maven 1 dependencies, so this is not a one-off edge case). I made a new Maven 1 hosted reposit...

How can I deploy build to server with Apache Maven?

I have just started to use Apache Maven. Now I would like to make Maven to be able to make production and development enviroment deploys with one click. I'm using Eclipse (Springsource version) and I have Maven plugin installed. My server has tomcat and only thing needed for deployment is to overwrite old war with new one and server has ...

Is there a Java library to convert a commandfile into parameters for main method

I am working on a (Codehaus) Maven 2 Mojo. Unfortunately the logic called has a not compatible license and I have to fork a separate process (as it is done for Cobertura maven plugin). Forking itself is easy using org.codehaus.plexus.util.cli.Commandline and friends. The fork needs to be able to set thousands of arguments to the main m...

maven dependency clash

In my project, there are 2 libraries, each of which depend on the XML parsing class java.xml.parsers.DocumentBuilderFactory. Each of these libraries reference the file from different jar (one gets it from a jar called xmlParserAPIs while another gets it from xml-apis-1.0.b2.jar). Unfortunately there are different versions of the class in...

Unit tests in Sonar

Is it possible to run unit tests when a non-maven project is analyzed with Sonar, in Sonar light mode? ...