I am using the maven-eclipse-plugin to configure my eclipse workspace with the configure-workspace goal of the plugin.
I need to perform some additional setup within the workspace that standard eclipse plugins do not appear to accomplish. Setup MAVEN_HOME and setup an external build tool for example. I have some corporately built plug...
I have created a customer maven archetype and have it setup with some custom requiredProperties:
<requiredProperties>
<requiredProperty key="classPrefix" />
</requiredProperties>
I can use that property to name a file, like so:
__classPrefix__Config.java
My question is can I use that property inside the file. I've tried the fol...
I have written a new maven reporting plugin and it executes when the site is generated and produces and output html file.
How do i get the Project Reports section of the site to contain a link to it?
...
Hello,
Right now I have a JBOSS application server and I want to setup an internal maven2 repository. I want the repository to be located on the application server. How would I go about doing this? Basically I want to host files on a JBOSS application server similar to: http://repo1.maven.org/maven2/
Thanks!
Shawn
...
I have Maven2 war project built, I'm using the cargo start plugin, and it works great for deploying the web app. To run the maven command, I use a .bat file in my workspace, and I have en external run config to run the the bat file. I can't seem to stop the server from the Eclipse console, or re-deploy.
Does anyone have any advice on ...
hi,
I have one main and one test config file which is shared by several maven projects. While testing, I am specifying the classpath to the directory where the test config file is.
This works fine if the whole project is tested/build but it doesn't work while running single tests. The config file is not found in the classpath.
here is...
I'm trying to run javadoc on a multi-module Maven project and I keep getting OutOfMemory Error no matter how high I set the heap. I've even tried upping the pergen space. Is there a way to find the root cause? I suspect some sort of recursive reference in a Javadoc comment but the project is so huge it'll take days/weeks/months to sift t...
We have a bunch of maven2 projects in Hudson, all set to Poll SCM at the same time.
The problem is that there doesn't seem to be an order in the way it polls and builds the projects.
Ideally it would check the upstream projects first. I could set the poll SCM schedule to account for this, but this seems error-prone as new projects are a...
When preparing the release of a Maven 2 project which includes a GWT module, mvn -B release:prepare release:perform builds the GWT module twice, which takes up most of the time of the build.
Running a full GWT build is not necessary when executing release:prepare, a validate-only build is enough. This would be achieved by specifying the...
I have a library A, which depends on the libraries B and C. I unpack the libraries classes of B and C into the jar for library A using the maven-dependency-plugin (see below).
Now, when a library D uses library A, library D can access all the classes of A, B and C. However, I want D only to depend on A but not on the transitive dependen...
Hi,
I have a scenario wherein my project needs to be compiled in different JDKs and the resulting artifact name should be different based on the JDK used. For example if the project name is MyProject and I call mvn install then it needs to be compiled in JDK 1.4 as well as JDK 1.5, and finally I get two jars of the same project (MyProje...
Hi,
i'm struggeling to set up an example which runs a gwt test case with maven when i execute mvn install. I followed the instructions on this page gwt-maven-plugin.
I always end up with [ERROR] java.lang.NoClassDefFoundError: org/codehaus/mojo/gwt/test/MavenTestRunner
[ERROR] Caused by: java.lang.ClassNotFoundException: org.codehaus.m...
We have a maven project that creates a common service used on jboss. This service also has a service descriptor (xml file).
When I deploy, only the jar is created and deployed. The xml needs to be copied to its destination.
How can I deploy the jar and its xml?
How do I bring them to jboss and split them up again (jar to lib folder, xm...
Today, I've been looking at Maven Multi-Module and EAR projects and they seem quite similar in that both seem to define an assembly of a collection of other projects - it almost seems like an EAR project should just be an alternate packaging for a multi-module project.
Have I misunderstood something? Or do these types of project work to...
I try to compile my project with maven but i get error
C:\Projekti\KIS\Model\src\irc\kis\model\hab\entity\TipiDokumentovImpl.java:[3,48] package irc.irc2000.classCustomization.model
C:\Projekti\KIS\Model\src\irc\kis\model\hab\entity\TipiDokumentovImpl.java:[5,28] package irc.irc2000.security does not exist
becouse i import two packa...
I have a project 'ABC' with the main code and junit tests. I do have the requirement that i can execute the set unit tests against a older version of the product artefacts.
To solve this requirement i would create a maven project which only contains the junit tests.
Another maven product builds my product code and places the artifact ...
Using junit 4.8 and the new @Category annotations, is there a way to choose a subset of categories to run with maven's surefire plugin?
For example I have:
@Test
public void a() {
}
@Category(SlowTests.class)
@Test
public void b() {
}
And I'd like to run all non-slow tests as in: (note that the -Dtest.categories was made up by me......
Possible Duplicate:
How to deal with java.lang.OutOfMemoryError: PermGen space error
I'm getting this error while building maven project, I increased MAVEN_OPTS but all the same, I found some similar posts but they are refering to something else. How do I fix this?
The system is out of resources.
Consult the following stack ...
I have a dependency on Hibernate 3.5.3 which is only available to me from the new JBoss Maven repository is hosted on Sonatype's Nexus and all the URLs are secured with HTTPS.
I can access this repository from behind my corporate firewall via the web browser. But Maven is unable to resolve the artifacts.
I see the following warning at...
Hi!
Goal: I want to use jsf`s i18n
Scenario:
creating resource bundle (utf-8)
file info:
file -I ./messages.properties
./messages.properties: text/plain; charset=utf-8
using it by
faces-config:
<application>
<locale-config>
<default-locale>uk_UA</default-locale>
<supported-locale>en_US</supported...