maven-2

Webdevelopment with Jetty & Maven

I find it very frustrating doing web development with Maven & Jetty using Eclipse, compare with what I did using Visual Studio. Everytime I make a change, even a minor change in my view file, (*.jsp, for example), then I have to re-package the whole web -> waiting for jetty to reload everything before I can see the change. Is there any ...

How to deploy a rar file to jboss

Refer original post here for a reference to the original issue. What plugin should I use to deploy the jackrabbit rar as a separate entity to the jboss installation. I tried the rar module within the maven-ear-plugin which was actually packaging this within the ear file and the rar plugin which seems to be used for packaging a rar. Curre...

Problems with maven output directory

I'm using almost same POM for both my projects, they are on the same workspace but they are not related at all, they are related however because in both I use spring and jboss. Here is the pom : <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.a...

maven and lift using scala 2.8 : lift-mapper missing?

Newbie question since I'm not up to speed using maven at all. I'm trying to use scala + lift using scala 2.8, environment is a win7 box if that matters. I create a basic project using: mvn archetype:generate -U -DarchetypeGroupId=net.liftweb -DarchetypeArtifactId=lift-archetype-basic -DarchetypeVersion=2.0-scala280-SNAPSHOT -Da...

How to Add a File from my source tree to Maven Site

I have a Maven 2 RESTful application using Jersey/JAXB. I generate the JAXB beans from a schema file, where the schema file is in my resources directory, e.g., src/main/resources/foo.xsd. I want to include foo.xsd file in the generated Maven site for my project, so that clients can see the XML schema when writing RESTful calls. How can...

Specify JDK for Maven to use

Hi all. I am trying to build a Hudson plugin I've modified and it requires jdk1.6. This is fine, but I don't see how I can tell maven where the different jdk is. I've found few mentions on the internet but they don't seem to apply to me. Some suggest adding some config to .m2/settings.xml but I don't have a settings.xml. Plus, I don't wa...

JIBX MAVEN Problem

I am trying to use JIBX maven plugin in my Spring Web Service project, My project has diferent layers (API-DAO-SERVICE vsvs..) these layers are individual projects and has maven dependency each other. In my WEB project's POM, I add other project as dependencies, and my mapping classes are all in API project. Even in my w...

can't set portTypeName in axistools-maven-plugin

Hi All, It seems that the portTypeName parameter of the axistools-maven-plugin (version 1.3) cannot be set. The classOfPortType parameter is a required parameter and cannot be omitted but when setting it alongside portTypeName the following error appear: Embedded error: Java2WSDL execution failed invalid parameters, can not use portT...

Jar dependend on classes in war project

Suppose I have a war and jar projects defined in maven. The Jar project is dependent on the War project I have managed to get this working in package mode by adding In the war project <attachClasses> to true in the war plugin. And making a dependency to <groupId>com</groupId> <artifactId>oneway-delegator</artifact...

WSIT, Maven, and wsimport -- Can They Work Together?

Hi all, I'm working on a small-ish multi-module project in Maven. We've separated the UI from the database layer using Web Services, and thanks to the jaxws-maven-plugin, the creation of the WSDL and WS client are more or less handled for us. (The plugin is essentially a wrapper around wsgen and wsimport.) So far so good. The problem ...

Import eclipse project as J2EE

I have created a J2EE project using maven and would like to import it as a J2EE project (ie: auto have the libs jars added to the classpath, tomcat jars to classpath, etc). How can I change an existing project to a J2EE project? ...

How can I execute several maven plugins within a single phase and set their respective execution order?

Hi all, I would like to breakup certain phases in the maven life cycle into sub phases. I would like to control the execution flow from one sub-phase to another, sort of like with ant dependencies. For example, I would like to use the NSIS plugin in order to package up my project into an installer at the package stage, AFTER my project...

maven-ear-plugin works if jboss version is 4.2, but not 5. Why ?

I am using maven to configure maven-ear-plugin. I am getting following exception when I say jboss version is 5 (See below code, under tag). It works if I replace version to 4.2 <build> <finalName>tactical</finalName> <plugins> <plugin> <artifactId>maven-ear-plugin</artifactId> <configuration>...

How can I make one Maven module depend on another?

OK, I thought I understood how to use Maven... I have a master project M which has sub-projects A, B, and C. C contains some common functionality (interfaces mainly) which is needed by A and B. I can run mvn compile jar:jar from the project root directory (the M directory) and get JAR files A.jar, B.jar, and C.jar. (The versions for ...

Ingnoring module on certain step

Hi All I have multimodule project. Can I make it somehow work that when calling compile it would ignore a module, but in all other cases include it ? Thanks ...

Creating a zip archive of the maven "target" directory

Hi all, I am wish to create a zip archive of my "target" directory (${project.build.directory). using the maven-assembly-plugin seems to me like overkill for such a simple task (and a bit complicated - why must I use another file, the assembly descriptor, for such a task) I can't locate the seemingly more simple maven-zip-plugin in the ...

Maven2 multi-module ejb 3.1 project - deployment error

The problem is taht I get the following error qhile deploying my project to Glassfish: java.lang.RuntimeException: Unable to load EJB module. DeploymentContext does not contain any EJB Check archive to ensure correct packaging But, let us start on how the project structure looks like in Maven2... I've build the following scenario: ...

Maven: How to create assembly with snapshot artifacts without timestamps file name?

I've a repository containing snapshot artifacts with timestamps. I want to create an assembly, that contains the dependencies. This works fine. But the artifact names contains the timestamp. So i wonder how to remove the timestamp from filename for the assembly only. I've used this dependencySet: <outputFileNameMapping>${artifact.arti...

Maven War Plugin - add external resources from another jar

Hi all, If I wanted to pull out a resource from another jar, say an image or XML file, is that possible? Would I use the Maven Assembly Plugin or the War Plugin to do this? I want it to end up in a WAR file. Walter ...

What is the right approach for assemblying module resources in Maven project?

I have a project structure like module-a/src/main/java module-a/src/main/styles module-distribution/src/main/assembly module-distribution depends on module-a, and they both share parent pom and are included as modules in that parent pom. The idea is to have an assembly layout like my-final-assembly/lib my-final-assembly/styles Whe...