maven-2

Maven - add dependency on artifact source

I have two maven modules, one that ends up as a jar, and one war that depends on that jar. I want the jar module to package it's source code together with the compiled classes in the jar, so that the second module is able to access it. I have tried using the maven-source-plugin, but I am confused as to how to add a dependency on the ou...

Seam - No Active Event Context

Hi all, I am having problems with my Seam application, I'm not sure if it is from using Maven along with Jetty for testing or simply a misconfiguration on my part. The error I am getting is rather simple, when Seam attempts to close the event context, it expects it to be open and it must have already been closed by something else. The...

maven cobertura generated-classes

hi, I'm using the maven cobertura plugin to generate coverage reports, but for some reason, the instrument goal gets stuck in an infinite loop. In my classes directory (named bin), an infinite loop occurs and creates directories named generated-classes/cobertura/generated-classes/cobertura...and on and on as long as I let the instrument...

Maven2 property that indicates the parent directory

I have a multi-modules project, like this one: main-project/ module1/ module2/ sub-module1/ sub-module2/ sub-module3/ ... module3/ module4/ ... I need to define a set of properties (that are dependent of the environment on which I want to release my project) in Maven2. I will not use...

Is it possible to explicity tell maven to download and install an artifact to the local repository?

Yes I read http://stackoverflow.com/questions/884808/ and other related questions, but I don't want to install the file manually. Actually I want to have something like a wget for maven, which fetches an artifact (with dependencies) and puts it somewhere or installs it in the local repository. Is the maybe a plugin available which does t...

Java: How do I build standalone distributions of Maven-based projects?

Hello! I often encounter distributions of Java applications or libraries which use Maven as their build tool. Some of them, sadly, don't provide standalone (or redistributable) jars. Is it possible to build Maven-based applications in such a way, that the build result contains all dependencies and can be redistributed to work out-of-t...

Why use Buildr instead of Ant or Maven?

http://buildr.apache.org/ http://ant.apache.org/ http://maven.apache.org/ What does another build tool targeted at Java really get me? Is it so hard to write a plugin using Java versus writing it in Ruby? If you use Buildr over another tool, why? Side question: How many build systems does the Apache foundation need targeted at Ja...

hudson cobertura reporting 0

Hi, I have a problem that when I run the cobertura target maven, the report always shows 0%.I've tried forking my junit tests, and no luck. I've tried configuring the cobertura plugin in the reporting section and build section of the pom, and also tried binding it to both the site and package phase. Any thoughts? On a related note, I'v...

Maven assembly plugin fails with NullPointerException?

I get a NullPointerException and I don't like it. It is a larger build with several submodules (which differ in their maven config only slightly), for most of the modules it does work, but for some not. Any ideas what the problem might be? [INFO] [assembly:assembly] [INFO] Reading assembly descriptor: src/assemble/all.xml [INFO] -------...

How can I include unit tests in maven assembly?

Reason: Our project is using Ant as commandline interface. After making a new assembly with maven's assembly plugin, I want to make initial tests to see if all has been properly assembled. Therefore I need to include the unit tests in the final assembly. After assembling, the initial tests would then be called sth like > ant initTest ...

How do you generate WSDL using Maven2?

I am using jax ws wsgen tool in maven2. I need to deploy the webservice on weblogic10.1 wsgen is not generating the webservice.xml , weblogic-webservices.xml. Is there any way to generate these weblogic related artifacts using wsgen or by anyother tool by inuputting the wsdl. ...

Activate different Maven profiles depending on current module?

We have a multi module build with modules using different technologies, like Java and Flex. Is it somehow possible to activate different profiles based on the module that is compiled currently? I tried it with an activation like <profile> <id>flex</id> <activation> <file> <exists>${basedir}/src/main/flex</exists> </fi...

Maven best practices: including timestamps for snapshot releases or not?

I recently added Maven snapshot build capability to a project, configured to use unique timestamp version on deployed artifact. But there is some confusion regarding whether this is the right thing to do (snapshots in question are deployed to one of public repos, not just within an entity like company): some say it causes problems when t...

java agents with maven in eclipse

hi, I'm running aspectjweaver as a javaagent in Eclipse. I use maven to manage my dependencies, but I need to put a path to aspectjweaver on the command line. What's the recommended way to do this? Save another copy in my workspace? Reference my local repository? thanks, Jeff ...

Best choice for hosting Maven repository and continuous integration?

Can anyone recommend a good hosting provider where we can host our Maven 2 repository and continuous integration process? We're very open minded about the implementation and are willing to use any OS, CI software and repository software so long as it gets the job done well. Thanks in advance ...

maven compile groovy

I have a situation where some of my groovy code references my java files, but I also have different java files that reference the same groovy code. When trying to compile in maven, I either need to compile the groovy before or after the java, and that won't really work since the groovy code depends on some java files, and different java ...

emma maven plugin code highlighting

is it possible to have the output html reports have highlighting where code was covered in a maven build? I know you can in standalone emma and with ant, but I haven't yet figured out how to do this with maven and emma. Thanks. Jeff ...

Maven and Spring

Hi i am studying Spring In Action 2.0 and i am new to maven. I am walking through the chapters and codes but i i got following error when i imported project through pom.xml on the pom editor in eclipse. 6/21/09 3:19:42 AM CDT: Missing indirectly referenced artifact incubator-activemq:activeio-core:jar:3.0-beta3:compile 6/21...

How can I terminate a running Maven build in NetBeans?

If I run a Maven build in NetBeans which starts a long-running Java process (for example a HTTP listener or a JMX agent), terminating the process seems to have no effect. So I have to restart NetBeans and terminate the processes manually. I am using NetBeans 6.5 and 6.7 RC 1 on Windows XP and Vista. ...

Error in GMaven Plugin

Whenever I execute the gmaven plugin, I get the following problem org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal 'org.codehaus.groovy.maven:gmaven-plugin:1.0-rc-5:generateStubs': Mojo execution failed. The relevant section of my POM is below. Any thoughts why? <plugin> ...