maven-2

Parent build file in buildr

I am currently looking at migrating from maven2 to buildr and I am concerned about how get to keep the build scripts DRY. Currently our maven project is defined with parent pom file containing all common build code and is picked up like any other dependency: <parent> <groupId>com.companyname</groupid> <artifactId>parent</artifa...

Maven continuously building EAR module for JEE project

I have a maven JEE project built using javaee5-maven-archetype and imported into Eclipse(Helios). The EAR module of the project is continuolsy build every second, even when there are no changes. Sometime Eclipse freezes and i have to kill the process. Nothing is listed in the Problems view but the below is displayed continuosly on the Ma...

What is a maven repository url for jung2 (java graph framework) ?

I am looking for a maven repository that distributes jung2 packages. Unfortunetely I can not find any information on its location. Update: I have included the cental repository repo1. <repository> <id>central</id> <name>Maven Repository Switchboard</name> <layout>default</layout> <url>http://repo1.maven.org/maven2&lt;/url&gt;...

Tapestry5 application not running on WTP Tomcat server

My Tapestry 5 application is running fine with a maven "tomcat:run" build, but not when I use a Tomcat WTP server. I.E: I created a tapestry 5 project based on the tapestry 5 quickstart maven archetype. At the beginning, it works fine with both servers. After playing a little bit with the dependencies (i.e. adding and then removing t...

MAVEN / Eclipse TargetPlatform

We are building an Eclipse RCP plugin that is based on an Eclipse target platform (also developed internally in our company, by a different department). We would like to compile the plugin using MAVEN2 (we also use NEXUS for repository management). The target platform consists of about 130 JARs (most of them org.eclipse.*). One way to ...

multi-product project layout with svn and maven

Hi, I need to migrate a project from Ant to Maven. This project has multiple proprietary packages (lets say, stacked in 3/4 layers. some of the layers share the same svn repo). Also, it's using ~30 3rd party packages (which are currently manages with svn:externals). On top of that, there are ~10 different "products" (different packaging...

How can i disable the excution of maven-war plugin by using variable in properties file

In my pom.xml, i used maven-war plugin to package different war files and properties-maven-plugin to read the properties file. <plugin> <artifactId>maven-war-plugin</artifactId> <executions> <execution> <id>package-war1</id> <phase>package</phase> <goals> <goal>war</goal> </goals> <configuration> ......... ...

How to instruct Maven to ignore my main/resources/persistence.xml in favor of test/...?

I have two persistence.xml files, for the sake of testing: src/main/resources/META-INF/persistence.xml src/test/resources/META-INF/persistence.xml How to instruct Maven to ignore the first file during testing? Now it is not ignored since OpenEJB says: ERROR - FAIL ... Finder: @PersistenceContext unitName has multiple matches: unitN...

Does Maven support properties inheritance?

Let's say I have a property foo defined in my parent POM. Is it possible to access the "foo" propery in any of the children? To give you a bit of context, I am working on a multi-module maven project with inheritance. I did search the web and some forums for a while and could not find the answer. Many thanks in advance. ...

how to add arbitrary information in manifest from maven assembly plugin

Hi, i use the assembly plugin to create a uber jar from several maven artifacts. Now I like to add some company specific entries into the Manifest of the created assembly jar. But how ? the archive element doesnt allow arbitrary elements (or is there a way to add foobar: tutu inside the archive tag ?) also in addition with maven-jar...

Pass password for proxy server in Maven2 through command line or prompt?

As I'm uncomfortable storing my username and password (must auth to the proxy server with my normal login credentials) in plaintext in .m2/settings.xml, I'm trying to see if there is a better way to pass my credentials. What I've tried Relying on system proxy settings - didn't work (obviously) Leaving out password - downloaded 5k - 74...

Maven checksum pom setting?

Google has failed me and I can't find an answer even here on SO - relegating me to actually posting my first question here. I'm trying to get the command "mvn install" to automatically generate the checksums for the artifacts and place the checksums in the repository right along with the artifacts. Everything I've read seems to indicat...

gmaven no test found

Hi i m running into some error I have a really small project in groovy. I want to use maven. I was able to compile my files, source and test(i have my .class in the target folder). But no test are executed. here is my pom file. <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://w...

Release different configurations with Maven

I'm currently migrating our build process to Maven from Ant. Our application is deployed to many different customers, each with a unique set of dependencies and and configuration. I can implement different profiles to model these and build the required wars from them. However this is a process that happens at compile time. Each release ...

Enterprise Aplication with EJB, JSF and JAX-RS

What is the best Maven archetype to use on enterprise application in java using EJB and JAX-RS, considering that in a near future i will have to make a front-end in JSF2 using as the backend EJBs used with the JAX-RS? ...

How can I change a .properties file in maven depending on my profile?

How can I change a .properties file in maven depending on my profile? Depending on whether the application is built to run on a workstation or the datacenter parts of the file my_config.properties change (but not all). Currently I manually change the .properties file within the .war file after hudson builds each version. ...

How to proxy spring milestone repo using nexus.

I want to proxy the spring milestone repository using nexus. Can anybody tell me the correct url to use. ...

How to convert file separator in maven

I have a property defined like this: <properties> <main.basedir>${project.parent.basedir}</main.basedir> </properties> Since I use Windows as OS, it contains backslashes. I want to add this path to a glassfish domain as JVM option (using glassfish maven plugin). The problem is, that asadmin can consume only slash as separator, and...

How to handle multiple database schema creation scripts with Maven?

I have an application in development that supports several databases including SQL*Server 2008, Oracle 10G, Oracle 11G, MYSQL 5, etc. Already within Maven I have done three things: 1) There is a profile for each database so that the system can use it for integration testing during the build. 2) Maven invokes the hibernate3 plugin to ...

DRY way of defining dependencies for both jetty:run and deployment

I'm wrapping up the build for a web project which supports two ways of running: locally using mvn jetty-run; deployed on an application sever. For the application server many libraries are marked as provided, since otherwise classpath conflicts occur. At the same time, I have redeclared these dependencies as compile dependencies for ...