I'm trying to build a jar that has an xml file as a resource. I'd like to apply a filter to that xml to insert the name of a dependency into the xml. The filtering is working, because I was able to drop in ${project.build.finalName} and get it replaced. I found one hint that the property I'm looking for might be
${project.dependenci...
There is a clear solution for sharing the common test code between maven projects using test-jar goal of maven-jar-plugin plugin (see here).
I need to do the similar thing with test resources, in particular, I want test resources of project A be available in the classpath of project B during testing.
For project A one need to declare:
...
When I run the application, it says:
[resources:resources]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
Copying 1 resource
[compiler:compile]
No sources to compile
[resources:testResources]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,...
I would like to have the maven eclipse plugin regenerate my .classpath whenever a build is run, and I did so by using the following configuration:
<!--
Generate a new .classpath each time the build is run, but don't try
to download sources or javadocs
-->
<profile>
<id>elipse-update</id>
<acti...
Has Jetty been completely migrated over to Eclipse yet?
I am using the Maven 2 plugin for Jetty version 7, 20091125.
Just recently, I am getting session manager issues that I never had come up before (no session manager configured). The standalone instance is running the Eclipse version of Jetty, but the same version, 20091125.
Is an...
Is anyone aware of a publicly available Maven repository that contains the Google App Engine 1.3.1 JAR's? I've been using the maven-gae-plugin repository, but it's not updated yet. It looks like the JAR's on the central Maven repository are even older.
EDIT: It looks like Cletus's answer below has most of the JAR's, but not all of them....
Updated to (hopefully) clarify: If a goal is defined to run during a given phase, is it possible to run the individual goal without running thru all phases. In other words would it be possible to run the antrun:run goal (which is defined as part of the install phase below) without getting dependencies, generate-resources, compiling, test...
Hello everyone, Maven is very impressive tool, I've used it for few weeks now and almost every day I learn something new about maven. What do you think are the best practices? I found this relevant on the google http://www.sonatype.com/people/2009/01/maven-continuous-integration-best-practices/ , others are not relevant at all, and maven...
Hello,
I'm using spring 3 and maven. I've defined all spring modules in my pom.xml.
When I use <aop:scoped-proxy /> annotation, I've got an error saying that cglib is missing.
Well... I add cglib dependency in my pom and all runs...
I'm a little confuse... Maven is a dependency manager... Why it does not download the cglib when I us...
I am trying to create a Confluence plugin. I have been following theses instructions.
However when I run the atlas-create-confluence-plugin command maven throws SSL errors trying to get resource from https://m2proxy.atlassian.com/repository/public/.
Do I need to change a setting in my configuration?
System setup: Windows Vista, wit...
Background: I'm setting up a functional tests module in a maven project. We use the maven-jetty-plugin for testing.
I've got the jetty plugin set up as described here (to play nicely with the Failsafe plugin), but what I'd like to do is deploy the war artifact from our main web module using jetty (which has just been installed into the...
I have a maven multimodule project when I try to build the site, it creates the links in the main page with the module name, but the href points to http://maven.apache.com
How do I make either mvn site-deploy or mvn site:site site:deploy construct the right links? because the folder with the sub-site gets created the only issues is it i...
I have created a maven2 Mojo that inspects certain file types for instances of certain strings. It is designed to be used in the test phase to report whether these files are vaild or not.
When it finds these undesired strings it outputs build failure alerts and fails the maven build using MojoFailureException.
I would like to do some i...
I would not want to filter some files in overlays, when building a war file.
For example how I can exclude from filtering all jsp files from overlay module2?
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1-beta-2-SNAPSHOT</version>
<config...
I am working on a legacy Java Enterprise server project, trying to set up nightly builds. We are using Java 5, Maven 2, JBoss 4.2 and Atlassian Bamboo 2.1.5. The idea is that we have a Bamboo agent on one of our dev servers, and the Maven build is configured to hard deploy the resulting .ear file, then restart the server. (We can't use s...
I can easily see if there are conflicts between (transitive) dependency versions using:
mvn dependency:tree -Dverbose=true
... this will show the full resolution tree, including which elements were omitted (for duplicate or conflict or whatever). What I would like to do is to add the full tree to the 'mvn site' report.
Currently, t...
Is it possible to include several smaller pom files to create the parent pom file. (e.g. I would like to split the reporting, build sections into their own poms and include them in the parent pom) for managing them effectively
...
Hello everyone, I'm building a project in maven from eclipse, I ran clean install , and now I'm in my test phase .. and now I have this usual message that tests are running :
-------------------------------------------------------
T E S T S
-------------------------------------------------------
and nothing is happening for half an h...
Hi everybody,
i am trying to use a container managed datasource (via context.xml) in tomcat. The corresponding jar file needs to go in $catalina_home/lib, otherwise tomcat can't find it. (not in webapp/WEB-INF/lib, because it is managed by the webserver, not by the application itself)
the problem is: I am using maven with the maven-to...
Has someone successfully deployed EAR remotely to JBoss 5.1.0.GA? My pom.xml configuration is as follows:
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.0.1-SNAPSHOT</version>
<configuration>
<container>
<containerId>jboss51x</containerId>
...