My maven reports are working great, all except Checkstyle and test xref. My test source is still being cross referenced at xref and not the test xref. So, when I click on the xref from within a Checkstyle report, I naturally get an error, the file isn't found. If I click on a source file, it works perfectly.
I tried testXrefLocation ...
I was hoping someone could help me with maven deployments (typically run through the release plugin).
I want to deploy files other than just the packaged jar to the repo upon release, such as specific instruction documents and generated SQL files.
It would be good if i did not have to use deploy:deploy-file for each one. it would be be...
Hello Experts !
Last week i read about liquibase quick start and all the related tutorials but i feel like i don't get the whole drift about using it for consecutive change in the database and i have some questions still opened.
i'm developing an application in netbeans using maven with 3 modules: dbunit module, service module a...
Hello.
I'm working on a Java Web Application with Wicket, Spring and Hibernate. The web application is not particularily large (I have one DAO and one service), but I'd like to offer the users that deploy the application a startup wizard much like the ones found in Wordpress.
When the webpage is accessed for the first time (no database...
Hi,
I am trying to build my application using maven and eclipse.
I have dependencies on 3rd party jars which are on my local machine.
here is my pom.xml
<dependency>
<groupId>sourceforge.net</groupId>
<artifactId>zipdiff</artifactId>
<version>0.4</version>
<scope>system</scope>
<systemPath>C:/gelcap/lib/zipdiff-0.4.jar...
I've been seeing odd behaviour from my Maven 2.2.1 installation whilst doing war installs.
Occasionally, I will update a class but the updated version is not packaged up in the artifact produced by mvn install.
So far, I have determined that an updated .class file is produced in the target directory, and that the class of the same name...
I am trying to figure out how to use the supposed reporting capabilities of JUnit (3 and 4) in conjunction with Maven, but Google searches aren't turning up much in the way of how to actually run JUnit (via Maven), get a report for each test (or all tests) and what format it will be in.
So, my multi-part questions is:
1.) What sort of ...
Hi,
I have the m2Eclipse plugin from Sonatype installed in my IDE. It allows me to run various maven commands (package, install, etc.) by right-clicking on a pom.xml file and navigating to the "Run As" menu.
However, I haven't figuered out how to the equivalent of mvn eclipse:eclipse from within the IDE, is this possible?
Thanks,
Don
...
Hello,
I'm learning how to use maven for my standalone java apps but I don't understand how to do a recursive copy of all directories from /src/main/resources to /taget directory.
I tried using antrun and resources plugin, but resources are copied to /target/classes and not to /target.
What is wrong here?
<build>
<pluginManagement>...
Hi,
I'm trying to refer to a properties file in my NetBeans project using Maven.
While developing, I used the following code:
MyClass.loadProperties("src/main/resources/neo4j.properties");
This worked fine.
Now that I've just built my project to a JAR, when I execute it, it complains that it can't find this file.
I don't want the ...
I have a multi module maven web application, which uses hibernate.
I use the tomcat:run goal in order to run it on the embedded tomcat server of maven. Everything works fine so far.
But now I need to switch from an explicite jdbc configuration in the hibernate.properties to a datasource. I did the following:
changed hibernate.propert...
Hi
i am using to profiles: development and production
development should be active on default, production should be used when i am releasing.
In my pom.xml i have:
[...]
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>2.0-beta-9</version>
<configuration>
<useReleaseProfile>false</useReleaseProfile>
<goals>deploy</...
I have two projects, "appA" and "appB", that each depend on a third project, "common". I'm in the process of moving them from ant to maven, but I'm having some difficulty figuring out the best way to do it in maven. My folder structure looks like this:
root
+ common
+ appA
+ appB
I've been able to add a parent pom.xml to the root and...
Hi,
I'm trying to figure out how to organize many (around 50+) maven2 projects, so that they can deploy into a central nexus repository. When using the mvn deploy goal, one does need to specify the target in the distributionManagement tag like this:
<distributionManagement>
<repository>
<id>nexus-site</id>
<url>http://...
Hi all,
I have parent web module called "PARENT". And I have another web module called "CHILD".
PARENT module's packaging is war. How can I add a dependency in CHILD module.
I have tried the following. But it doesn't works.
Root pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-insta...
Hi all,
I have a web application Maven project, and I want to customize the web.xml file depending on the Profile that is running. I am using the Maven-War-plugin, which allows me to define a "resources" directory, where the files may be filtered. However, filtering alone is not sufficient for me.
In more detail, I want to include (or ...
I have a module that is used by creating a custom class loader. The class loader should therefore be created with the path to the module and also all dependencies.
I'm looking for a way to make it productive to work with this mechanism in both dev and production environments.
I thought the build can generate two files listing all de...
I try to upload an ear created by maven to an application server using scp.
When I tried to run
mvn wagon:upload-single
But I get the following error:
[ERROR] Failed to execute goal org.codehaus.mojo:wagon-maven-plugin:1.0-beta-3:upload-single (default-cli) on project de.volkswagen.dps.ear: Unable to create a Wagon instance for nu...
I am trying to reproduce an existing maven environment on another computer and when I try to use the release plugin it gives me an "password is required for the perforce scm plugin"
The odd thing is I didn't make any changes to the pom.xml.
I found this bug report:
http://jira.codehaus.org/browse/SCM-415
Interestingly I am using maven...
Well, Maven is too good, when talking about speed.
But I want something that is more acceptable.
Imagine I wrote a test org.fun.AbcTestCase
In such TestCase, I include some JUnit / TestNG tests
Now I want to run only this test case, said org.fun.AbcTestCase from command line.
How can I do that?
I know it's easy to do it within Eclipse o...