maven-2

Don't download artifact from remote repository

I'd like to specify some artifacts that SHOULD NOT be downloaded from a remote repository, even if they are present there. Is there any way to achieve this in maven2? ...

Maven - Multiple builds in single pom

Is it possible to build multiple artifacts in a single POM file? It is not about building multiple assemblies but the artifacts have different builds and dependencies but refer the same source. For e.g. one artifact I need to build is a WAR file which excludes certain AspectJ files from the build and the other is a JAR file which needs ...

Cobertura maven plugin when to download

Can anyone tell me to locate and download the cobertura maven plugin? I've looked on the web. On the Corbertura homepage there is a URL http://maven-plugins.sourceforge.net/repository/maven-plugins/ to the download, but that page is dead. ...

Maven - Add directory to classpath while executing tests

The Junits I have in my project need to load property files from the classpath. How can I specify the directory of those property files so that Maven will set that in the classpath before running the tests? ...

Using Maven for Coldfusion project

I have to deal with what is pretty ugly and large blob of ColdFusion code which up to this day is maintained by direct modifications on production server (don't ask). I managed to clean it up from dupes and backups and put it into Subversion, now I need tp pick a make system to be able to put this onto continuous build (TeamCity) and als...

Maven-assembly-plugin: custom jar filenames

I use the assembly plugin to create several jars with some classes in it. I need custom names for the resulting jars: *app_business.jar* *app_gui.jar* core.jar etc. Currently I have to following configuration: <plugin> <artifactId>maven-assembly-plugin</artifactId> <configuration> <appendAssemblyId>false</appendAs...

Snapshot not downloaded by Maven

I am trying to set up Maven with a Repository located in our local Network and I already have set up a Repository for snapshots and one for Releases (both apache archiva). Downloading the packages from the release repository works fine. However I keep getting errors, when I try to load SNAPSHOT versions from the snapshot repository, whe...

Set environment variable for build in hudson

I am trying to put a maven2 project under continuous integration in hudson. The project uses selenium for some integration testing. Hudson is running on a headless linux. I am using xvfb to start a x server session for selenium. In order to run the tests, I need to export an environment variable named DISPLAY. e.g. export DISPLAY=:99 ...

Classloading issues in maven2 with JUnit

I have a project that builds with maven2 and runs a series of JUnit test cases against the code. This has worked fine up until this point, where I now have 2 tests that must run in a certain sequence for things to work correctly, let's say TestA and Test (A then B). Unfortunately, maven2 doesn't understand this, so I'm looking for a wa...

Is it possible to rename a maven jar-with-dependencies?

I'm currently using the jar-with-dependencies assembly to create such a jar. However, the name of my jar is a bit long. Since this jar is being used by RPG programs on an AS400, I'd like to shorten it to make life a bit easier for those developers. But, other than by hand, I've not found a way to rename the jar from the usual projec...

Overlay BIRT runtime into correct WAR locations

I'm trying to get Maven to assemble a WAR with the BIRT runtime in a useful location within the WAR. The BIRT runtime is in the pom.xml as <dependency> <groupId>org.eclipse.birt</groupId> <artifactId>report-engine</artifactId> <version>2.3.2</version> <type>zip</type> <scope>runtime</scope> </dependency> The desired outcome...

String arrays as command line arguments for maven plugin

I'm writing a maven plugin that has a parameter that's a String[]. Like this: /** * @parameter expression="${args}" */ protected String[] args; This can be utilized through the POM like this: <args> <arg>arg1</arg> <arg>arg2</arg> <args> But I want to send it in from the command line -Dargs={arg1, arg2} Is this possible? ...

How do I configure maven 2's surefire plugin to run Junit 4.5?

Maven 2 does not seem to consider my @Test and @Ignore annotations. How do I configure the surefire plugin to run and use the annotations? This question is still not answered. ...

ProxyServlet with SSL

I have some proxy servlet(link text): , and I want to make the connection(con A and con B on the diagram) to this servlet secure(with SSL). This proxy works under Maven Jetty Plugin. I have configured jetty to handle ssl request: <connector implementation="org.mortbay.jetty.security.SslSocketConnector"> <port>8443</port> <maxIdle...

m2eclipse won't download sources from local repository

I am using Maven in Eclipse to manage the project dependencies which are resolved from a local repository (SNAPSHOT). It works fine for compiling, but when I am trying to download the sources of a package (via right-click on package and Maven -> Download Sources) it does not work. All I am getting is this output, but no information why ...

Maven2: How to be sure Maven build is using a specific plugin version?

Hi, I just found something that sounds weird with Maven plugin management. While working on the site generation I wanted to use a specific version of the maven site plugin in order to have a specific functionnalty working. Let's say I want to use version 2.0.1 of this plugin. If I use the reporting section of my POM in order to genera...

Adobe Flex/AIR Maven integration

I am writing an Adobe AIR application that needs to build in a CI using maven and nexus. I tried to follow this article which is the most up to date article from the source, but I still don't understand these things: Are the first and second pom.xml examples in the article in the same pom.xml file? How do I get the Flex SDK dependenci...

Automatically set a Java EE Module dependencies in Eclipse using Maven2

I have two projects, one called my-lib, the other one is my-webapp. As I use Maven2, I set my-lib as a dependency of my-webapp. In Eclipse, I need to have my-lib set as a "Java EE Module dependencies" for my-webapp. Is there a way to make this dependency set when I run the mvn eclipse:clean eclipse:eclipse command? For the moment, ever...

[Maven2] How to deliver properties files in addition to artifacts?

I am using Maven2 to build a WAR project. Some properties files are dependent on the environment targeted for a release. I want to deliver, in addition of the WAR, a file called datasource.xml. This file already exists in my project directory, but contains properties that will be filtered during the build (i.e. some ${foo.bar}). In oth...

How can I get Maven to stop attempting to check for updates for artifacts from a certain group from maven-central-repo?

I'm working on a fairly big Maven project. We have probably around 70 or so individual artifacts, which are roughly split into two libraries of shared code and maybe ten applications which use them. All of these items live in the namespace com.mycompany.*. Most of the time we're running against snapshot builds. So to do a full build ...