maven

What are the steps to upgrade maven/grails from 1.2.0 to 1.2.1?

I have recently started a new project using the maven grails archetype - at the time, (a few weeks ago), Grails 1.2.0 was the most recent release. Now that there's a newer release, what are the steps to upgrade? I would assume that since Grails dependencies are defined in the POM, that the POM will need to be updated? Are there any instr...

Can you run both maven1 and maven2 at the same time?

Is it possible to have both versions of maven running on the same computer? From what I understand you have to setup environmental variables for both of them, so won't that conflict? ...

What are some Maven project naming conventions for web application module?

When creating a project with the webapp archetype in Maven, they subtly advise not putting any Java source in the webapp project by not including the "src/main/java" folder. What do you name your Maven projects? project-webapp for the project that contains the JSP, CSS, Images, etc. project for the project that contains domain specific...

Maven: Unresolved references to [org.osgi.service.http]

I'm trying to create a bundle using HttpService for register Servlet using maven-bundle-plugin. The pom.xml of the project is: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt; <mo...

default maven compiler setting

Hello Maven gurus, Right now, I'm writing a small java application by my own, with few maven pom.xml files. I want to make all my maven packages to compile with jdk 1.6, and I can't find a good way to do it without manually setting it on every single POMs - I'm sick of copy-and-pasting <groupId>org.apache.maven.plugins</groupId> <artif...

is guava-libraries available in maven repo?

I am looking to find guava-libraries in maven repository. It looks like guava is adding more features to google-collections library. ...

Gradle directory stucture

I am working on a java Ant+Ivy based project that has the following directory structure: projectRoot/src projectRoot/classes projectRoot/conf projectRoot/webservices this works perfectly well in Ant but I am looking to migrate to Gradle. Is there a way to define a non-maven directory structure in gradle or should I be looking to mave...

what are good blogs to read relating java, spring, hibernate, maven?

To continue to question further I'm more interested in blogs, websites who once in a while release a tutorial, tip or best-practice on the topics I mentioned. For ex : http://net.tutsplus.com/ is very good website to follow if you wanna learn about or upgrade your knowledge about CSS, HTML, Javascript, PHP .. Is there a website like thi...

How can i automate eclipe plugin update site generation ??

Hi, In our project many eclipse plugins are prepared. I want use tycho to build eclipse plugins automatically. But while executing "mvn install" in an update site project tycho can not find required features. Is there anything wrong?? My Update site ---> packaging : eclipse-update-site My feature ---> packaging : eclipse-feature...

Maven2: How do I generate a file that contains the names of the project's dependencies?

I would like to place the names of the dependencies in a text file that is distributed inside a package that is built with Maven. I am planning to use the maven assembly plugin to generate the tarball package, and use filtering to put the names in the text file. The only problem is, I don't know how to reference the dependencies in the...

How can I leverage String constants in an XML file?

I'd like to enforce standardized keys by storing them as static final String variables on a Java class, and either referencing or statically importing them, to use them as values in either XML, Strings, Methods, Annotations, etc. Does anyone know a good way to have Maven insert (like filtering) values like StringKeys.SOME_KEY into an XM...

Maven Thrift repository

Does anyone know if the Thrift libraries are in any Maven repository? ...

How to update maven local repository with newer artifacts from a remote repository?

My maven module A has a dependency on another maven module B provided by other people. When I run "mvn install" under A for the first time, maven downloads B-1.0.jar from a remote repository to my local maven repository. My module A builds fine. In the mean time, other people are deploying newer B-1.0.jar to the remote repository. When ...

OPS4j repository alternative

The OPS4J repository is down at present and I am trying to run pax-provision using a profile for spring-dm. My question is how do I tell maven to locate the profile information from a site other than ops4j.org. Is this possible? ideally I would like to cache all the packages from the repo especially the spring-dm details which seem neve...

UML reverse engineering tools for Eclipse or Maven

Hi, do you know any good reverse engineering tool that creates UML diagrams from Java code and Hibernate mappings across multiple projects, in Eclipse or Maven (not in the Javadoc)? Thanks ...

How do I surpress maven assembly plugin skipping files that are already added? Or allow overwrite?

Hello, For weeks, I've been wrestling with maven, getting it to deploy our project "properly." I'm almost done but I have one stubborn little problem: When I use the maven assembly plugin with the "directory" goal as in mvn assembly:directory I get LOTS of console output like the following: [INFO] tomcat/conf already added, skippi...

maven dependencies and jetty - avoiding deploy

Hi, I have a project with 3 artifacts: common - entities, business logic. no UI code webapp-a - a public web app webapp-b - an admin web app webapp-a and webapp-b depend on common. common is configured to deploy to a local maven repo. so far so good. I have IntelliJ configured so that each artifact is a separate module. Module ...

Sonar and Eclipse IAM Plugin

When I am using the newest IAM Eclipse Plugin for Maven with the current Sonar version on a JDK 6 and I get an error while executing the sonar:sonar goal in clean install sonar:sonar The error in eclipse is 23:02:55 MESZ Starting Starting mojoExecution sonar-core:internal 23:03:44 MESZ fatal org.sonar.maven2.BatchMojo#execute() cause...

Maven - how to include empty directories

By default during the build process maven is removing the empty directories. Do you know if a parameter can be specified in the pom to instruct maven to include empty directories in the generated target/test-classes folder? ...

Maven deploy:deploy-file not found due to version/timestamp appended to jar

I'm having a problem using deploy:deploy-file with snapshots I'd like some advice on please. I have 2 projects; 1) Ant based and 2) the other Maven based that consumes the jars of the other project via Archiva. I've added a target to the Ant project to deploy snapshots on every successful build during our iteration. The problem is the...