Hi,
I'm having (a strange) problem when executing a maven generated executable jar:
user@host$ java -server -jar MyJar.jar
Error
(and nothing more than this!!!)
Do you have any idea what this king of error comes from ?
In my pom.xml, I copy all the dependencies to a lib folder with:
<plugin>
<artifactId>maven-dep...
I'd like to have Maven2 generate a .jnlp (webstart profile) for my application.
There is a maven-jnlp-plugin, but it's deprecated as of somewhere around Maven 1.1-beta2.
Is there a more preferred way to do this, or do I need to build out this capability myself?
...
I'm generating clover coverage reports (using Clover's maven plugin), and I'd like to exclude a certain package from the coverage reports (specifically, because it's UI code that intentionally isn't covered by my unit tests, but the reason doesn't really matter.)
I can see how to exclude that package from being instrumented (using in t...
I want to assemble a web module which looks like the following:
src/main/java (has some common utilities, actions etc.)
src/main/resources (has some spring beans files, configuratios etc.)
src/main/webapp (has some jsp, css, images etc.)
and then I want to use this assembled module as a dependency in another web application which als...
The process of mavenizing Eclipse and NetBeans projects usually takes a lot of manual work, if all files are under revision control.
So I am thinking of writing an Ant script which uses svn commands to rearrange the files in the working copy according the standard Maven directory layout. This would keep all file revision histories inta...
My Maven project has a dependency on a non-Maven library, which is coded as a system dependency:
<dependency>
<groupId>com.example</groupId>
<artifactId>foo</artifactId>
<version>${foo.version}</version>
<scope>system</scope>
<systemPath>${foo.jar}</systemPath>
</dependency>
where the location of the library can be controlle...
Hi,
Im using maven 2.2 with nexus 1.4.0
Let's say I have a pom-structure like this (with corresponding versions)
parentproj, v1.0.1
- childproj1, v1.0.2
- childproj2, v1.0.7
childproj1 and childproj2 represent different parts of the application (e g gui and backend) and I want to be able to keep their versions separate so that I ca...
Hi All,
I run into some problems when trying to solve a problem I had with SNAPSHOT maven dependencies (see here).
When running grails dependency-report, cached dependencies get listed, more or less like this:
acme-adapter-api by com.acme
108 kB (0 kB downloaded, 108 kB in cache)
As this answer suggests, you can run into trouble ...
Hi All,
I have a maven module that uses the plugin jaxws-maven-plugin. I have the webservice up and running and when browsing to the .../myWebservice?wsdl, I get the WSDL. No problem.
This also works when running the wsimport maven goal through:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxws-maven-plugin</artifa...
I have a project with spring and maven. I found that using profiles, maven could change the properties of the data source. But what if in production the datasource is with a lookup like this, how to do the profiles for this: one with a basic datasource and the other a jee lookup.
<jee:jndi-lookup id="dataSourcejndi" jndi-name="jdbc/BGG...
Hi All,
So I finally got my dependencies working with Grails. Now, how can my IDE, eg IntelliJ or Eclipse, take advantage of it? Or do I really have to manually manage what classes my IDE knows about at "development time"?
If the BuildConfig.groovy script is setup right (see here), you will be able to code away with vi or your favorite...
Situation is pretty straightforward. I have a Java webapp that I'm converting to be built with Maven. At present, the app is built with Ant into a single WAR file, which is then bundled into an EAR with a very simple application.xml.
maven-war-plugin and maven-ear-plugin both look pretty straightforward to me, and it appears they're set...
I'd like to use Google's GXP library in my maven project. I'm new to Maven and having quite a bit of trouble since the .jar is not available in a Maven repository already. From what I've read I should be able to install the jar in my local repository and then make use of it. However, I'm having quite a bit of trouble. Anyone know whe...
I have inherited a webapp built using NetBean's internal ant.
All jsps reside in:
WEB-INF/jsp
And the web.xml has hardcoded links to /WEB-INF/jsp/somefile.jsp
How can I use the maven war plugin to place the JSP there, maintaining consistency with the current structure ?
My pom currently reads:
<warSourceDirectory>${basedir}/web/WE...
I know you can run all the tests in a certain class using:
mvn test -Dtest=classname
But I want to run an individual method and -Dtest=classname.methodname doesn't seem to work.
Thanks
-Bill
...
I'm setting up a new workstation for Java development in Eclipse. On my previous machine, I don't recall having to do anything special to see the standard collection of archetypes under 'New > Other > Maven project > select archetype' with Nexus Indexer selected. On this machine, the list of archetypes is empty. I can create archetype-ba...
I'm running a project that has a dependency on groovy 1.7-beta-1. The gmaven plugin uses groovy version 1.6 as a dependency. In my pom, I specify in the dependency management section the grooyv-all version as :
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</arti...
As the title says, I'm trying to get an automated release job working on Hudson. It's a Maven project, and all the code is in Git. Manually, I do the release on my personal machine like so:
git checkout master
mvn -B release:prepare release:perform
This works perfectly. The Maven release plugin properly pushes the release tag to th...
I'm trying to create an archtype for a simple project, this project contains some ssl certs that i'd like to includes as resources in the archtype so when the project gets created those certs will be part of the project. My problem is that maven is trying to do a property replacement on those certs when creating a project with the archet...
I want to build a "toJavaCode()" on my model that would generated the required Java source code to generate that model (never mind the reasons or if it should or shouldn't be done, nor the compatibility issues that may occur).
I'm at a loss at how to test this. I'm using maven, but generate-sources won't really work for me since my serv...