maven-2

Should I migrate from Ant to Maven?

I am working on a fairly large project (with a number of modules, a bunch of external libraries etc.) and we are now considering switching from Ant to Maven. I understand the differences between the two, but I am not convinced that it is really worth spending time converting the project layout, setting up all the dependencies, teaching d...

How to deploy a WAR onto an existing Tomcat 6 instance using Cargo?

I installed Tomcat using the Windows installer ages ago and it runs fine as a service on my development laptop. Now I'm mavenising my project and would like to use Cargo (or something similar) to deploy updated WARs onto the local Tomcat. I can't find any fully worked examples of a POM file containing the right XML to do this and am str...

Maven: How to deploy with deploy-file and custom wagon

I'm trying to use a custom maven wagon extension to deploy a jar to my own repository. Can I somehow configure in settings.xml that it recognizes the custom url scheme to be used with the specific wagon or do I have to always modify pom files to contain the wagon extension? There doesn't need to be a base pom or any pom available when...

How do I implement maven source dependency among sibling projects?

I have a java project that is composed of 3 sub projects that generate a .jar artifact each (and have sub-dependencies among them). In addition there is a web projects that depends on the first 3 projects and generate a war file. The war file is my final artifact, i.e. what I ship my customers. Additionally I have a parent module that e...

Differences between Ant and Maven

Could someone tell me the differences between Ant and Maven? I have never used either. I understand that they are used to automate the building of Java projects, but I do not know where to start from. ...

Eclipse Maven Plugin fails to create groovy-maven-archetype project

I have installed the Maven for Eclipse plugin from Sonatype. (update site: http://m2eclipse.sonatype.org/update/) I am creating a Maven project, and choosing to use the groovy-maven-archetype as my starting point. However, halfway through, I am seeing: 04/03/09 12:52:28 GMT: [FATAL ERROR] org.codehaus.mojo.groovy.stubgen.GenerateStu...

How can I replace Ant with Maven?

What are the minimum steps I should follow to replace Ant with Maven? ...

Creating a process from within an instance of Jetty that was launched from Maven

Hello, I'm looking to launch a separate Java process from within an instance of a Spring controlled bean that runs in a Jetty container. The Jetty instance was launched from mvn jetty:run This separate process communicates with the launching process via RMI and I'd like to be able to maintain a hook to the process's ID or Process objec...

Maven in multimodule web project: how to put sibling modules output to WEB-INF/classes and not into WEB-INF/lib as JARs?

I have a multi-module Maven project. By default when I build a web module, all sibling modules of type JAR it depends on are copied to WEB-INF/lib folder. I want output of sibling modules to be placed in WEB-INF/classes folder without packaging to JAR. More general question may be: how to keep sibling modules' configuration files out of...

Multiple deployments in maven

We have a internal artifactory repository. At the moment all snapshots will be deployed there. We also want to have a different server with a web interface, and want to copy the to it the created artifacts. For our builds we use Hudson, but the post-build action "Deploy artifacts to Maven repository" together with scp doesn't work. So t...

What are the URLs of all the Maven Archetype catalogs that you know about?

Maven Archetypes are the "templates" by which you can quickly generate a running example of a given framework or project type. I am trying to compile a list of all the Maven archetype catalogs currently active on the net. From the Maven documentation about catalog files: Knowledge about archetypes are stored in catalogs. The...

How do I deploy multiple peer webapps from a parent pom

I have a set of web apps that I manage that I am trying to move to maven. /pom.xml // parent pom webapp1/pom.xml // configured to point to parent webapp2/pom.xml // peer of webapp1 and points to parent. each of the webapps refers to the parent pom, and they both currently have a jetty maven plugin that works. My...

What is the best IDE for developing in Tomcat?

Recently I've been doing a bunch of work developing servlets for deployment in Tomcat 5.5. My current IDE is Eclipse Ganymede with WTP. I've been very unhappy with the Tomcat integration, as the configuration is constantly breaking and needing tweaking. I was wondering if anyone could recommend another IDE that handles this integrat...

Is there a variable in Maven that holds the current goal?

In order to invoke the maven invoker plugin with the same goal that is currently running in my uber-pom, I need a way to pass the current goal into the invoker-plugin's config. Somethig like org.apache.maven.plugins maven-invoker-plugin ... ${maven.gaol} ....

Hibernate Core daily/weekly build Maven repository

I'm looking for a Maven repository that contains daily or weekly builds of Hibernate Core. More specifically I'm trying to get a hibernate-core build that contains a bug fix which was checked-in on December 9, 2008. Unfortunately the most recent hibernate-core is 3.3.1GA built during September, 2008. ...

Alternate port for Tomcat (not 8080) when starting with Maven?

Is there an easy way to specify an alternate port for Tomcat in the pom or on the commandline. I'd like to have several projects running on the same machine. ...

Maven error with multiple executions in maven-deploy-plugin

I found this nice recipe and want to use it to deploy some 3rd-party files in our repository The call on the command line is mvn -P deploy-libs If I do this for one file it works exactly as intended <profiles> <profile> <id>deploy-libs</id> <build> <defaultGoal>deploy:deploy-file</defaultGoal> ...

Can someone explain the ivy.xml dependency's conf attribute?

I can't find any thorough explanation of the ivy dependency tag's conf attribute: <dependency org="hibernate" name="hibernate" rev="3.1.3" conf="runtime, standalone -> runtime(*)"/> See that conf attribute? I can't find any explanation (that I can understand) about the right hand side of the -> symbol. PLEASE keep in mind I don't k...

Is there a Maven Alternative or port for the .NET world?

Is there a Maven Alternative or port for the .NET world? I would love to use a good dependency management system that the Java world has ... but i don't find anything comparable for .NET projects ... georg ...

How to get revision number from subversion using maven?

I'd like to put revision number on main page of webapp, how can i do that using maven? P.S. Its two part question, how to get revision number and how to write it into selected file in the project. ...