maven-2

Can Maven 2 use two different versions of a build plugin in the same project?

My project requires features of a new version of a maven build plugin for some of its goals, but the new version fails (due to a bug in the plugin) on one of the other goals. As a workaround until the bug is fixed, I'd like to run the broken goal with an older version of the plugin. Edit: More specifically, I need to run the generateAsy...

How do I remove a Hudson Upstream Project relation?

I used to have one job, which I split into two. For some reason, the new split-off job treats the first as an Upstream Project. I'd like to remove this relation, but can't find the configuration for it on disk, or in the Hudson UI (ver. 1.312) Note: the new job, like the old one, is maven2. There is no reference/relation between the POM...

upload jar to respository

I have a jar files that cannot be found on maven2 repository. i interested to add the jar so i can just include extra tag in my pom.xml file and other developer can use the jar. what is the steps needed to upload the jar to http webserver webfolder? what file should i uploaded beside custom.jar ? what other files need to exist on the w...

Debuging issue with maven, jetty and IDEA

I have problem with running jetty in debug and attaching IntelliJ IDEA to listening port. mvnDebug jetty:run-exploded will start jetty as I can see following message Preparing to Execute Maven in Debug Mode Listening for transport dt_socket at address: 8000 However when I try to to connect IDEA to port 8000 I will get message...

Maven site-deploy build error.

Hi, When I run "mvn install site-deploy" lately in the build I get the following error continuously. I cannot figure out what's wrong as I've replaced the m2 repo also tried several clean builds. Could somebody give me a hint where I can find a solution. I tried googling but could not come across something relevant. Thanks. FATAL ERROR...

Is it possible to insert module dependency to the beginnig of the classpath in some maven profile?

I'm trying to move out jmockit-coverage-0.994.jar dependency from the project to some profile not active by default, but cannot insert it to the beginning of result classpath from the profile dependencies. ...

To download jar file to local .m2 repository using settings.xml

I have a remote repository which updates the jar once in 5 hours without changing the version number.Pom file is not able to update as the version is same.Each time I need to manually delete.Is there any way i can get the latest files using the settings.xml. ...

Install Maven2 on Karmic

Is there a .deb for Maven2 on Karmic Koala? I see maven2, but it has 100+MB of dependencies (!). Is there a package that is only mvn and none of those dependencies? ...

Question about Maven2 repositories mirroring

I have set up a Maven 2 repository (call 'dev repository') using Apache Archiva which holds artifacts of my private projects. If I build an artifact of my own project, say group1:cat for example, and Cat depends on { group1:dog, commons:collection }. The group1:cat and group1:dog are sit in dev repository, and commons:collection in the...

How do I conditionally include or exclude a file from an archetype when project is generated?

I'm creating Maven 2 archetypes for our project (Weld). I would like to be able to control which files are placed into the generated project based on the value of a property that is defined during archetype:generate. For instance, I foresee the following prompt: Define value for groupId: : com.example Define value for artifactId: : mypr...

Maven throws "java.lang.OutOfMemoryError"

Hi, I'm compiling an open source project with "mvn install" but ended up with java.lang.OutOfMemoryError: Java heap space. I tried to execute java -Xmx256m but the output was java synopsis which indicated it's an invalid command. I'm using jdk1.5.0_08, any ideas why this is happening? Thanks, ...

Dependency version management in maven

When declaring dependencies in maven, can you specify the minimum version the project depends on to, but have mvn exec use the latest binaries. When building a library, I would like to export to minimal set of dependencies (e.g. JUnit 4.0), but always want to use the latest dependencies myself (e.g. JUnit 4.8.1). ...

do not pack specified resources in jar

Hi, All! I have a maven2 project, consisting of root project (with pom packaging) and a set of modules having dependencies on each other. The project is a library with a set of apps built on top of this library. Now the problem. My library uses some resources which cannot be packed in jar - namely some sqlite databases, and I can't fin...

Using Maven to run a WAR dynamically in Tomcat, how does one add classpath entries so only Tomcat sees them?

Scenario is such: I have a webapp that I'd like to run dynamically with the tomcat-maven-plugin's tomcat:run goal. The wrinkle is that I have numerous classpath resources that need to differ between the packaged artifact and the one run off a local workstation. Failed Attempts: 1.) My first attempt was to use the builder-helper-maven-p...

Is there a way to "fail fast" for junit with the maven surefire plugin?

I'm currently working on a java project using maven. We use the maven surefire plugin to run our junit suite as part of the build process. Our test suite is rapidly growing, in both coverage and execution time. The execution time is very frustrating and time consuming when you end up waiting ten minutes to find out that a test failed...

JavaFX with Maven

Hi, I recently started a JavaFX project, and I'd like to use Maven as my compiler/deployment tool. Is there a good tutorial or plugin to integrate JavaFX and Maven? ...

converting GWT1.7 application to GWT2.0

I am developing a web application in GWT 1.7.Now I am planning to move to GWT 2.0. I am using maven build tool and intellij idea IDE.Can any one tell me the maven plugin for GWT2.0 and how to run/debug using intellij idea IDE?RIght now I am using GWT Mojo plugin http://mojo.codehaus.org/gwt-maven-plugin/ ? ...

Maven-Tomcat-Plugin using configured web.xml errors with FileNotFound after a clean

When attempting to execute mvn tomcat:run right after a clean, and with a configured tomcatWebXml specified in the pom, I get a FileNotFoundException. Here's the snippet from my POM: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>tomcat-maven-plugin</artifactId> <version>1.0-beta-1</version> <configuration> ...

Maven (EJB) project with client and server artifacts

Here's my variation on the "multiple artifacts from Maven build" question: I'm porting from Ant to Maven. My application is an EJB server that is packaged as an EAR, but it also exposes a client JAR for use by other client apps. This jar contains the EJB interfaces, facade class and some helpers. I know that the Maven way is to have on...

Maven: local development deploy vs bundling for distribution

Bear with me, I'm migrating from Ant to Maven2: I think I've hit one of those little things that was easy in Ant, but not so in Maven... How do I handle the difference between a local deployment vs. creating an archive/bundle for distribution to another machine? Let's assume my project's output is an EAR plus some additional config fil...