maven-2

Application run well from eclipse, but fails to start, when it is deployed manually

I have web application using SpringFramework3.0.3.RELEASE, developed in Eclipse with m2eclipse plugin and deployed into Tomcat6.0.26. I can run it from Eclipse, but when copy target WAR int same tomcat instance ( removing WTP webapp first ) and restart I see following exception: Sep 14, 2010 5:54:42 PM org.apache.catalina.core.Applicati...

Failed to instantiate class<My_Class_Name> using org.apache.maven.surefire.booter.IsolatedClassLoader@135ae7e

I am trying to test that my two coherence clusters are communicating with each other successfully. Everything seems to be running fine besides the Proxys which throw the exception. Failed to instantiate class<My_Class_Name> using org.apache.maven.surefire.booter.IsolatedClassLoader@135ae7e I am trying to run the following command fro...

Running Findbugs with Maven fails

Hi, I am trying to analyse a Maven project with Findbugs, as follows: mvn org.codehaus.mojo:findbugs-maven-plugin:2.3.1:findbugs The build is successfull, but there is no trace of the analysis reports and I also get the following output: [INFO] [findbugs:findbugs {execution: default-cli}] [INFO] Locale is en [java] BCEL class compa...

Compile Jasper reports from Maven with ant task?

How can I compile jrxml jasper files using Maven and JRAntCompileTask ant task? I tried using a maven plugin for compiling jasper reports files but it's still in beta, and it caused me many problems. I'd like to see the configuration in pom.xml. ...

ignore maven dependency during specific execution phase

I have a (custom) embedded jetty launcher which I had been using to develop/test my web application (before moving to maven). I am able to trick m2eclipse into putting the maven managed dependencies to libraries for the war file onto the launcher classpath (when run from eclipse). I did this by creating two dependencies for the same ...

Using Maven to create a zip file containing an executable jar with dependencies.

I'm trying to create a distributable zip of my project that contains several configuration files and directories, as well as the executable jar of my project. In the Maven assembly plug-in, I've found how to make the executable jar with full dependencies. However, I haven't been able to figure out how to create the zip file around the ja...

How to execute a Maven command and commit to Subversion as part of a release build?

I would like to generate and commit the Subversion changeLog every time I do a release through Maven. I've looked at "mvn changelog:changelog" but its output is in XML and I need it in a human readable format. I've found "mvn scm:changelog" to generate the output I need. What's a recommended way of doing this? I've briefly looked int...

Is there a way to generate the MANIFEST.MF for an Eclipse plug-in project with m2eclipse?

I have a mavenized Eclipse plug-in project and I would like to be able to generate an OSGi-ready manifest for it. Is this supported by m2eclipse? ...

Triggering SOAP requests in a Maven Mojo

I have a WSDL which I need to trigger some commands from. I need to do this as part of a Maven Plugin (Mojo) I'm a relative newbie to SOAP so what I want to know is this: 1) Is this possible? Can the SOAP calls be run from a Maven Plugin or does it require a container or something else? 2) If so, what tools should I use to do this? I...

Integrating BIRT WebViewerExample in Maven build process

I am trying to integrate the default BIRT WebViewerExample into maven build process. I created a project in eclipse, defined the pom file and can successfully build and deploy the war. However, it looks like the deployed directory structure is different from the directory structure provided in the BIRT runtime - specifically, in the run...

Best way to debug Java web application packaged as a WAR using Eclipse and Maven?

I've not built a Java web application before, but I have it complete enough to test and Maven is building my WAR file just fine. It is a multi-module Maven project and the dependent modules all have their JAR files in the WEB-INF/lib directory of the WAR. So everything seems fine, but how to debug? I know how to (from the command li...

How to build/test Scala without IDE dependence?

I'm well into learning Scala now and enjoying it very much; I hope to start future projects in it, rather than Java. What I'm enjoying less is the (relatively) poor IDE support. I've found both IDEA and Eclipse with the Scala Plugin (including nightly builds) to be a bit unreliable or difficult to use - I want something I can always de...

Maven artifact and groupId naming

I'm currently in the process of moving some project from Ant to Maven. Conformist as I am, I want to use well-established conventions for finding groupId and artifactId, but I can't find any detailed conventions (there are some, but they don't cover the points I'm wondering about). Take this project for instance, first the Java package:...

Coping swf resources with flex-mojos to the custom folder

How I can configure copy-flex-resources goal and swf dependencies to copy swf files to the custom folder in my web-app? By default it copies to the web-app root. More about copy-flex-resources goal here: https://docs.sonatype.org/display/FLEXMOJOS/Copy+Flex+Resources ...

Where did the EclipseLink/Maven repository go to?

The link quoted on the EclipseLink/Maven wiki ends on an Error 403 page on switch.ch. If you are redirected to a better mirror then that would already be the answer. If not: where did the repository go to? Searching the net only reveals that EclipseLink/Maven hat a history of typos on there Wiki-Page. However all the corrected links I f...

How to make Sonatype's Nexus Repository to work with SpringSource’s EBR

I'm looking to add the SpringSource EBR (Enterprise Bundle Repository: http://www.springsource.com/repository/) to Nexus as a proxy. My main reason to doing so is that SpringSource OSGi-fied various well known OSS projects (ex: Velocity, AspectJ...), making them easy to be included in OSGi runtimes. Anyway, it seams that are some troubl...

Avoid javadoc and sources downloading, when using Maven ant Tasks

I'm developing with Maven Ant Tasks support. When asking the repository to download desired libraries, it also downloads javadoc and source for each library. Is there a way to only download library jars? Actual build.xml: <artifact:dependencies settingsFile="${maven.settingsFile}" pomRefId="projectPom" filesetId=...

How do I run the test cases in a non-web-project I have imported into my Spring web project?

This package has a class - HowToUseGeocell.java - with test cases defined. I have imported this entire project into a larger Java web project (Spring 3) in Eclipse controlled by a Maven task (gae:run). But I don't know how to run these test cases from inside the larger project. Could someone point me in the right direction please? Tha...

Is it possible to generate webservices client code to a special package using apache cxf in maven?

I am trying to generate the webservices client once i build my project on the fly .. It currently does so but put it in package named based on the namespace of the WS.. so lets assume the name space is google.com , the generated files would be in com.google .. <plugin> <groupId>org.apache.cxf</groupId> <artifactI...

Develop a Scala/Lift Web App using Eclipse and Tomcat

So I have spent the past 11 hours now trying to get even the simplest Scala/Lift app to run on Tomcat through Eclipse. Apparently no one is trying to do this or it is the easiest thing in the world so no one has documented how they did it. Creating the code using a maven archetype and running it with mvn tomcat:run is no problem. Making ...