maven-2

Java6 XML binding integration in Maven

When developing with Java6, is there any Maven plugin for compiling an XML schema into the associated Java classes from Maven? ...

Creating Wicket Project Using Maven

Hi I try to create a wicket project with: mvn archetype:create -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=1.5-M2.1 -DgroupId=com.mycompany -DartifactId=myproject The statement was created with the tool on http://wicket.apache.org/start/quickstart.html If i execute i...

loader constraint violation

Hi, I encountered the problem of having the same .jar (for my case, el-api.jar v2.1)twice for one project, hence, the following error stack when I try to run my project using Tomcat 6. WARNING: Unexpected error forwarding to login page javax.servlet.ServletException: java.lang.LinkageError: loader constraint violation: when resolving i...

Complicated Maven assembly

I'm trying to write a maven assembly and I'm not sure how to continue. It's fairly complicated, so the examples I google don't really help. This is what I'm trying to do: Create an installation file using launch4j. This part works, assuming the jar file is correctly assembled (hence the need for a maven assembly.) The installation prog...

Eclipse project and maven dependency

Hello, I have the project in eclipse with static folder (lib). This folder contains a lot of libraries, also build process of this project based on the maven. Can I automate import(using eclipse maven plugin) all libraries for lib folder to the maven dependencies or I should do it manually? Thanks. ...

maven project include local jar files

I do not want to install few jars into repository(local/remote) , i have few jar files located in c:\work\projects\myapp\src\main\webapp\WEB-INF\lib\test.jar c:\work\projects\myapp\src\main\webapp\WEB-INF\lib\test2.jar how to include it into my project when open/edit with netbeans? ...

Your thoughts on a proposal to manage JavaScript dependencies

I've recently done a great deal of JavaScript programming in the context of developing a Rich Internet Application. My view at the start of development is pretty much what it is now; JS RIA works but the development tools are lacking. One tool that I missed in particular was for managing dependencies. What I found was that I ended up wi...

Java Web Application Project development for two clients

Hi, I'm developing a web-project based on Spring (MVC), Hibernate, PostgreSQL (using Maven). Now I'm trying to get a new customer who requires some differences in several parts of the application. I've read the Maven Definitive Guide from Sonatype to get a feeling about Multi-modules Maven Projects but one of my most important questions ...

Why does Hudson ignore my profiles.xml file?

I have a Maven2 project, with a pom.xml and a profiles.xml files at the same level. The project configuration is provided by Maven profile properties: dbhost=${dbhost} dbport=${dbport} // etc. Locally, each developper customize his build in the "profiles.xml". It works well. For continuous integration, a ci "profiles.xml" has been pu...

Compile-time weaving configuration

I am trying to convert my load-time-woven aspectj to compile-time-woven. So I removed <context:load-time-weaver/> from my spring config, and added an aspectj compiler to my pom.xml. But I don't know how to convert the info in META-INF/aop.xml. I have something like this in there: <!DOCTYPE aspectj PUBLIC "-//AspectJ//DTD//EN" ...

XJC dont generate required=true annotation into java files based on minoccours value

There is this schema: element type="xs:short" name="Status" minOccurs="1" maxOccurs="1" I miss the required=true from XJC output: @XmlElement(name = "Status") protected short status; But should be: @XmlElement(name = "Status", required = true) protected short status; I generate beans with maven using xjc plugin. POM part is here:...

Howto get rid of directory prefix in Java webserver url?

I am using Maven with Jetty / Tomcat. My pom.xml declares the ID of my application as <artifactId>webapp</artifactId>. Consequently, all my webapp source is located in src/main/java/webapp. Now, whenever I run any of the webserver, my URL looks like this: http://localhost:8080/webapp/index.html and I haven't found a clue that tells me...

Maven cobertura plugin - one report for multimodule project

Hi, I'm using maven cobertura plugin to report code coverage in my multimodule project. The problem is that I don't know how to generate one report for all modules in project. So far I have generated separate reports for every module, but it would be nice to have one report for whole project. My parent pom configuration: <p...

Plugin does not exist or no valid version can be found error

I have downloaded the complete source of hudson jira API plugins and am trying to build it by mvn install. The jira plugin gets build properly, but when it tries to build the hudson plugin, I am getting the error [INFO] The plugin 'org.kohsuke:access-modifier-checker' does not exist or no valid version could be found. The access-modifi...

The following files have NOT been resolved when using mvn install ?

greetings all i have a web application using (spring-hibernate) frameworks and when tried to build the application with maven2 using the command mvn install i get a build successful with the following note: The following files have NOT been resolved: [INFO] The following files have NOT been resolved: [INFO] antlr:antlr:java-source:s...

Profiling maven web application with JProfiler

Hi! I know I can profile my application with JProfiler using ANT target. Is there a way to do the same with maven?? Actually maven allows to run ant targets, using maven-ant plugin, but I'd like to perform such profiling without ANT. Thanks in advance! ...

Getting maven and git to work.

I have recently began delving into git and maven. I have a system that has several module sets and this is stored in various git repositories, I need this to be pulled down into the same workspace and run various maven goals. I was wondering if anyone else has run through this setup and provide tired and true way of doing this. I would...

what is the difference between maven release and maven assemblies plugins?

Question says it all, I believe. Please and thank you GC ...

Maven : Parent project not resolved, transitive dependencies not used for compiling

Hello. After searching and trying a lot of things I need a Maven maven :) So, my problem is that on my development box (which is Windows 2003) I can build my maven project, but on the Bamboo server (x86_64 x86_64 x86_64 GNU/Linux) it fails because one of the modules doesn't have a library and the compiling doesn't find a class. The clas...

maven: add arbitrary file as a servlet context resource

I have a maven war project which produces webapp.war, and a maven 'skin' project which produces skin.zip (a file full of resources and XML files). Now I want to add this zip file as a servlet context resource (e.g WEB-INF/skin.zip). I tried using overlays, but it expands the zip file into WEB-INF instead of placing the un-expanded fi...