maven-2

maven-assembly plugin - how to create nested assemblies

I have a project whereby I'm trying to create a distribution zip file, which contains (amongst other files) an executable jar with dependencies of my java project. So I sort of want it to look like this: -wiki-search-1.0.0-dist.zip -wiki-search.bat -wiki-search-help.html -wiki-search-1.0.0-jar-with-dependencies.jar ...

Maven + Grails + App Engine

Has anyone used Maven, Grails, and App Engine together? I can use Maven with Grails and Grails with App Engine, but using them in concert gives me the following error: The command 'grails run-app' is not supported with AppEngine. Use 'grails app-engine' to start the application Is there any way to "pass through" the Maven goal to ...

Versioning for a maven project with small, very frequent releases

I'm converting an ant project to a maven one. This project differs from the ones I've usually converted since it has very frequent releases, typically 8-10 times per day. By release I mean that the resulting jar is packaged and included in the production enviroment. This project is a leaf one, so it publishes no API, it only consumes it...

Error reading settings.xml

Hi I wanted to run maven commands from the command line. While running mvn commands , getting the error- Error reading settings.xml: only whitespace content allowed before start tag and not \ufffd (position: START_DOCUMENT seen \ufffd... @1:1) Line: 1 Column: 1 what is the problem with my settings.xml ? ...

How can I in a jsp page get maven project version number?

Hello guys, I am working on a java web application, managed by maven2. From time to time, we did some changes, and want to do new releases, of course with new version number. In the homepage (jsp), there is text like <b>version:</b> 2.3.3... Is it possible, every time I do a new release, I only change the <version/> in pom.xml, and ...

Token for Maven package name

Hi, I use maven/hudson to build my project. One of the goals run by hudson is mvn package so I have a full distribution produced on every build. Is there a way (maybe an argument to package?) that I can append the build number to the name of archive that's produced? thanks, Jeff ...

Maven build deployment

Hello, I have to manually deploy my servlet war packages on an Apache tomcat instance running on an AWS (Amazon Web Services) machine (remote server). Also i have Maven setup for dependency management and build packaging in local development environment. What I want is to setup my maven install/deploy task such that my packaged war fi...

XML DTD/Schema validation maven plugin

Does anyone knows maven plugin that validate xml documents against DTD or Schema and generates reports? ...

How to share a filter file among Maven2 modules?

I have a multi-module project and I would like to define a single filter file that will apply properties to all the child modules. For example, I would like to have the following structure: parent - filter.properties - module1     - resource1 - module2    - resource2 such that when I build parent, it would apply the filter to resource1...

Eclipse WTP publishing configuration

I have a web project that is built with maven. I have the project in eclipse as a WTP project (generated using mvn eclipse:eclipse), and it is associated with a glassfish server, also configured in eclipse. I can publish to the server. The problem is, we use maven to do some filtering in one of the configuration xml files in the webap...

maven ${user.home} not being resolved correctly.

I've got the following line in my pom.xml: <updateRepositoryURL>file:/${user.home}/.m2/repository/repository.xml</updateRepositoryURL> and when I am attempting to use it within my program the resultant string is: file:/c:Documents and Settings<myusername>/.m2/repository/repository.xml where <myusername> is my user name funnily enou...

Maven dependency questions

So I finally took the dive and installed maven2 but I've got some problems. My code relies on some third party jars which I installed using install:install-file. I then listed those jars as dependencies in my pom. Maven can compile and package it all fine and dandy. But when I run my jar like so: java -cp "target/*" com.blah.App It do...

Is it possible to generate assemblies selectively?

Hi My pom.xml is used to generate around 8 assemblies.So, when i run mvn assembly:assembly, all are generated.Is there a way to selectively generate 1/2 assemblies at a time? ...

Configure continuum 1.2.3 with maven2 project; "Username isn't defined."

I use continuum 1.2.3 to build maven projects. On a fresh continuum installation, I added a pom by upload. I try to build, and get the following error: Exception: Exception while executing SCM command. My SCM URL looks like this: (replaced domain name) scm:cvs:pserver:cvs.example.com:/Projects:car/wheel/ Any idea what went wrong?...

Possible to get used maven version to insert into a filtered resource file?

I wonder, if it is possible to get currently used version of maven for filtering resource file. I've a resource file, that is filtered by maven: version=${project.version} buildDate=${timestampFormatted} buildBy=${user.name} name=${project.artifactId} buildVersion=${build.number} osName=${os.name} osArch=${os.arch} osVersion=${os.versi...

How to merge wars into one?

In our company, we have a number different modules constructed as separate wars. Each client can pick and choose module he wishes to buy. Since all modules share same session, security context etc, it makes sense to merge them into a single war. Is it possible to automate this process? For example, it should merge web.xml, calculate e...

Maven include JavaDoc Jar in Assembly

I have a project with multiple modules, including on that is responsible for building the final assembly from the artifacts of the other modules. As part of the assembly, I want to include the JavaDocs for two of the other modules. I have updated the pom files for those modules to generate the JavaDoc JAR files, and modified the assemb...

Maven install-file won't generate pom.xml

I've installed some third party jars to my repository using the following command: mvn install:install-file -Dfile=/home/anotherCoder/Downloads/nifty-1.0.jar -DgroupId=nifty-gui -DartifactId=nifty-gui -Dversion=1.0 -Dpackaging=jar However, once I do mvn compile, maven complains that there is no pom file in the repository and attempts ...

Preferred way of developing web applications with m2eclipse

When developing Maven web applications I usually resort the the jetty-maven-plugin to quickly launch my application for local testing and debugging. Using the launch with m2eclipse has the drawback of not properly including all sources for debugging, even though they are downloaded by Maven ( see Source lookup does not seem to work ). W...

Is there a public Maven repository that contains spring-core 3 yet?

Is there a public Maven repository that contains spring-core 3 yet? I can find 2.5.4 all day long but not 3. If there answer is yes, please include the location in the answer. ...