First some background information:
We have three environments for our EJB3 application: test, development and production. All require database settings of their own. We use maven2.
Data source settings are placed in ear project, directory /src/main/application/META-INF/data-sources.xml. File contains attributes for three different conn...
Hi,
I have a maven2 project in hudson and when the cobertura reporting plugin runs, it causes the unit tests to show that they have run twice. I don't mind them running multiple times, but the trend graph shows twice as many tests as we actually are running. Is there a way to make sure the graph only shows them once?
thanks,
Jeff
...
is there a way to show the icon for maven site documentation if using a freestlye project (I switched to a freestyle project rather than maven2 project because of certain bugs - i.e. cobertura graph not showing up on front page, double unit test coverage counting when running cobertura)
...
I have a super pom defined in which I specify a "resources" directory for resources. In one of my projects, my pom extends that super pom, and I would like to add an additional resource. I tried:
<resources>
<resource>
<targetPath>/</targetPath>
<directory>additionalDir</directory>
</resource>
</resources>
But that res...
I saw this question and it motivated me to look again (without success) at Maven configurations for an alternative way of declaring configuration so it is appended to the parent POM's config instead of overriding it.
In a Maven POM, if configuration declares the same elements as in the parent it overrides the parents configuration. As th...
I've read that it's supposedly a good idea to split an aggregator project (the one with all the module declarations) from the parent/dependency project (the one with all the shared or common dependencies). So that the parent project is not the one you use to do a full build.
Why is that?
...
Imagine following scenario:
We have a lot of parallel development going on in several svn branches. Some projects are unbranched and some are branched. There is a lot of interdependency. We also have a local repository (so none of the developer downloads packages directly, we use our own maven repository).
The problem is with maven we...
Hi, I have a case where I want to run the cobertura plugin in both the verify phase and the reporting phase. I have two profiles and they should both be running the cobertura plugin, but in profile A, I only want to create the xml/html output, but in profile B, I will be generating full site documentation that includes these results.
I ...
How would one configure PostgreSQL instead of MySQL to run artifactory?
...
The project is a library that contains the core library code, tests, and example code. At the end of the build process, the following archives should be created:
xy-1.1.0-core.jar
xy-1.1.0-tests.jar
xy-1.1.0-examples.jar
What is the best way to set this up with maven?
Currently the setup is:
src
src/main/java
src/examples/java
src/t...
Up until now we used Ant in my company. Whenever we wanted to send the application to the client we run a special Ant script that packaged all our source code with all jar libraries and Ant itself along with a simple batch file.
Then the client could put the files on a computer with no network access at all (and not even Ant) and run th...
Hello,
We noticed that when testNG test cases extend TestCase (JUnit) those tests start executing as Junit tests. Also, I should probably mention, the tests are run through Maven.
Is this a bug or a feature? Is it possible to override this behavior and still run those types of tests as TestNG tests? Do you know a link where TestNG talk...
I have Fedora 11 (x86 64) installed with Eclipse. I need a Maven plugin, preferrably m2eclipse, but I cannot find out how to install it. I've tried going through yum, but to no avail (I can't even find any maven plugins).
On my other laptop, I've tried installing the plugin using yum on a 32 bit install of Fedora 11, and while the pac...
I have a multi-module Maven project with a parent project P and three sub-modules A, B, and C. Both B and C are war projects and both depend on A. I can type "mvn compile" in P and have all of the sub-modules properly compiled. The problem comes when I want to do operations for specific modules.
I'd like to be able to package a war f...
I have defined the following profile in pom.xml:
<profiles>
<profile>
<id>dev</id>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>dev</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<delete file="src/main...
Is there a way to remotely deploy an EAR after building it to Oracle AS? Remote deployment functionality exists for Eclipse, and I'm looking for something similar for maven2:
http://download.oracle.com/docs/cd/E14545_01/help/oracle.eclipse.tools.weblogic.doc/html/conFeatureOverview.html#remoteDep
...
Hi,
I'm using maven cxf-codegen-plugin to generate java web service files from wsdl.
The plugin works fine if I'm trying to generate the files in the default output directory
(target\generated-sources\cxf),
but if I'm trying to generate them in other directory by using:
<sourceRoot>src/main/myOtherDir</sourceRoot>
in my pom.xml,
the...
How would you execute ant tasks at different phases in a maven build cycle?
...
I'm trying to setup a new gwt project in Eclipse (3.4 Ganymede) using maven with the codehause gwt-mave-plugin (v. 1.1).
I have installed the Google Eclipse Plugin including the Google App Engine Java SDK 1.2.2, the Google Plugin for Eclipse 3.4 and the Google Web Toolkit SDK 1.7.0.
I'm using the gwt-maven-plugin archetype to generate ...
I'm trying to work through the Tapestry tutorial.
I think I got everything set up right and so far so good but I get to the part where the tut rather glibly states:
Change into the newly created
directory, and execute the command:
mvn jetty:run
Again, the first time, there's a
dizzying number of downloads, but
before...