maven-2

How to include a parent Spring project (using Git submodule)?

I'm currently developing multiple web applications using Spring. I'm using Maven for building and Git for version control. At the moment I'm trying to find a way to split development of some things used by all webapps, e.g. I have some helper classes that are the same for all projects. The problem is, I don't want to use only classes, bu...

question about maven clean

Why does maven download dependencies when I run mvn clean? can I turn that off? ...

Maven release JAR

How can i make a project jar release and maven repository strucuture(md5hash,distribution pom,etc) to put this in my own repository? Maven have a plugin to do it? Note, i need to generate this structure in my local machine, i don't have CI and others to do it! Hopes!!! ...

How to create a patched build with Maven?

I was wondering if there is a standard way (i.e. a plugin) to apply a set of patches during a Maven build. Patching the code base in a dedicated step before building is getting tedious as soon as you have different builds or generated sources. To give an example, this script should deploy 3 different versions from a fresh SVN checkout: ...

Maven: How to test two modules with the same tests in a third module

Hi Imagine a maven project with 3 modules, an interface module and two different implementations of this interface in a module each. I could test each implementation in its own module, but the test cases are basically the same, because of the same interface. Is there a way to collect the test cases in a fourth maven module and test the...

Maven Change a value in a file based on profile

I have a properties file called ApplicationResources.properties in my application with a property that changes depending on the environment. Let us say the property is: resources.location=/home/username/resources and this value is different when the application is executed during development and when the application goes into pro...

How to add Maven dependencies from different repositories

For example, let's say I have a Maven build file that has dependencies located in two different repositories: <repository> <id>id1</id> <name>id1</name> <url>http://localhost/mavenRepo/repository1&lt;/url&gt; </repository> <repository> <id>id2</id> <name>id2</name> <url>http://localhost/mavenRepo/repository2&lt;...

Does maven reusable resource project possible?

Is there any ability to build maven artifact which will contain only resources but no sources and which can be reused by other projects? Motivation is the following. I have a library which contains only html/css/javascript code. This library must be packed as resources into war project. As for now I build web archive with resources by s...

Using Maven to build an Eclipse Plugin - latest opinions

I am building a plugin for Eclipse - but as we use Maven as a standard build platform I would like to be able to build the plugin using Maven. I have found a previous question about using Maven with Eclipse Plugins - but as it is a year old I thought it was worthwhile collecting some new answers: http://stackoverflow.com/questions/5455...

Eclipse (STS) + Maven

I basically have 2 questions: Is there a way to invoke maven console from eclipse? (where I could write eclipse:eclipse, and it started building eclipse project) Where does STS unpack it's maven? I'd like to add that path to env variables, so that I could use it from my windows console. ...

Maven - several modules for one package

I have a web app that I would like to split into three pieces. I noticed it has two completely distinct functionalities, but the core architecture (libs used in presentation layer, Spring container, DAO etc.) is shared. One piece would be the "master", with full vertical stack from presentation through DAO, but only for what's common fo...

maven multi-module versioning

I have a multi-module project. parent POM (1.0-SNAPSHOT) |-- module1 (1.0-SNAPSHOT) |-- module2 (1.0-SNAPSHOT) `-- module3 (1.0-SNAPSHOT) When I execute mvn release:prepare it verify that parent POM has a SNAPSHOT version and all dependent modules don't have a SNAPSHOT version. How automatically update all child modules from SNAPSHO...

maven plugins stored where

Where are maven plugins stored? in the local repository as well? what happens if you build your application with eclipse? does it store the plugins inside the eclipse/plugins folder or still in the local repository? ...

Working with multiple maven projects and multiple branches

All, currently I have following maven projects all stored in svn: Common-Test v1.0                               -> svn:repo/Common-Test/trunk Common-Core v3.1 (depends on 1)     -> svn:repo/Common-Core/trunk PM-Web v3.1 (depends on 2)               -> svn:repo/PM-Web/trunk Now, I need to create a branch since v3.1 is installed in p...

Which m2eclipse archetype to use for JBoss/Hibernate based projects ?

Hello, I am new to Java world but I am pretty good at using Flex, actionscript 3, Ant and even Maven to some extent. Now I would like to learn some java and use Hibernate and JBoss (webapp). I already have Maven working and have found the m2eclipse plugin on the web, it seem pretty nice for maven integration. Now I would like to know ...

Spring BlazeDS + Flex + JBoss Project setup in eclipse using Maven

Hello, I would like to know how to proceed to set up a work environment in order to develop Spring BlazeDS applications. Those server applications are meant to be accessed via AMF remoting from some client Flex application. Actually I have Maven and m2eclipse set up and working, local JBoss v6.0M2 running, Flex 4 plugin installed. Ide...

Make Maven Proxy/Server settings configurable based on location?

So I'm not sure what the best way to accomplish this is, but basically I have a laptop that I use at work for Maven projects. It works fine when I'm at work, but as soon as I walk out of the door of their corporate proxy and maven server, I often have to do alot of hand-fudging of the settings.xml file when I'm at home if I'm not VPN'ed...

INFO: Additional JARs have been added : 'xalan-2.7.0.jar'

After a successful start of Tomcat and a few REST calls I get this message in Tomcat console and then the application reload it self. And because reload takes a few seconds, response time is too long. And then again - after a REST call I again get this message and it reloads the application again... Google did not help me, can you? :) ...

Download Maven2 dependency from non-standard layout repository

I need to download a file from a non-standard layout repository. The standard repository layout is groupId>/<artifactId>/<version>/<artifactId>-<version>.<packaging> however, I need to download the following file: http://hudson.myserver.com:10000/repo/ocp-services/schemas/trunk/201/archive/schemas/dist/schemas.jar where ocp-services ...

Maven automatic SNAPSHOT update

Let's say I have one project with the following POM: <groupId>com.mine</groupId> <artifactId>coreJar</artifactId> <packaging>jar</packaging> <version>0.0.1-SNAPSHOT</version> And then in another project I always want to reference the latest SNAPSHOT: <dependencies> <dependency> <groupId>com.mine</groupId> <artifa...