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...
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...
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</url>...
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...
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 ...
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...
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>
.........
...
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...
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.
...
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...
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...
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...
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...
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 ...
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? 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.
...
I want to proxy the spring milestone repository using nexus.
Can anybody tell me the correct url to use.
...
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...
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 ...
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 ...