maven-2

how do I set eclipse.ini -vm option ?

I installed maven plugin for eclipse, then I get an error like below: please make sure the -vm option in eclipse.ini is pointing to a JDK how to use -vm option to point to my jdk in eclipse.ini? ...

What does **/* mean in maven syntax?

Hi there I'm new to maven, I keep running in to the following syntax: <include>**/*</include> Im not sure how to interpret **/*, is this some Java or maven convention? ...

compiling project with jdk1.5 using maven2

i managed to create my project structure using maven2. but when am compiling my project using mvn install getting error generics are not supported in -source 1.3 googled to build my project using jdk1.5 and added build tag <project> <modelVersion>4.0.0</modelVersion> <groupId>com.myProject</groupId> <artifactId>project</artifactI...

Development Environment Java 6, Maven 2.x, Eclipse 3.4.x, JBoss 5 and JBoss Seam

I have to organize a development environment where I can run Maven projects with JBoss Seam, IDE eclipse 3.4.x and deploying to JBoss 5. The projects that will run on this environment are based in Java 6, EJB3 and JSF1.2. The environment has to support hot-deploy. I used to work in a development environment with Sysdeo Plugin to make To...

maven, ant plugin

Is it possible to attach an ant execution to a specific plugin/goal ? ( I know I'm losing the declarative aspect of maven if I do that..) ...

Maven copy local file to remote server using SSH

Can Maven copy local file to a remote server server using SSH? I want to specify location in maven configuration file and to copy that file(or files) to server each time deploy phase is executed. ...

maven, ant plugin, antrun:run

When executing 'mvn antrun:run' my tasks are not run.. I have an echo task, but no output is shown.. When running the phases that the tasks are bound to, they do get executed.. How do I specifically execute the tasks from the commandline? ...

adding manifest to jar file while compiling with maven2

Hi, I have made following changes to the POM.xml file for adding a manifest file that i have kept in \resources\META-INF But am unable to create an executable jar file. <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.0.2</version> <con...

maven build execute svn get

I have a project build that needs to include files from another svn location during the build. I want to execute an svn get and then copy these files to the appropriate folder for the build. Researching this issue it seems I could use ant tasks but I wanted to find out what might be the best approach to take for this build. ...

creating new archetypes

In the pom for the archetype I'm creating (archetype-resources/pom.xml), I'm referencing ${project.build.directory}, which is causing an error when creating/generating a project from the archetype. org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/pom.xml [line 15,column 18] : ${project...

How to run a Maven Project In Tomcat From Eclipse

Hi I am running a multi level maven project. It has webapps packaged as WAR, which depend on components packaged as JAR files Most of the code changes that i do belong to those JAR files. To test the changes, i need to repackage the JAR and the WAR and deploy externally in tomcat. I tried using sysdeo-tomcat-maven-eclipse plugin, bu...

Maven dependency best practices

We're using maven 2.1.0 and I am looking for some best practices with regard to dependency management. I have multiple modules that are completely separate, but still have many common dependencies. Like log4J, but some modules don't need it. I am wondering if it is a good idea to declare all common dependencies in one parent file in t...

How do I add an Implementation-Version value to a jar manifest using Maven?

I'd like to add an Implementation-Version line to a manifest in my jar file that reflects the POM version number. I can't for the life of me work out how to do this using the jar plugin. Is this possible? ...

Multi Module Maven2 Project with WTP

I'm having a hard time to make my Maven2 multi module project, with a deep project structure, appear as a single ear (with its dependencies - which includes 1 war, 2 ejbs and 1 jar) to be deployed in my JBOSS 5 server inside my Eclipse Ganymede (tab Servers). I've been trying to use Maven Eclipse Plugin to turn my projects into a WTP pr...

How do I use a Maven 2 repository protected using SSL and a wildcard/self-signed certificate?

I am trying to use a Maven 2 repository via SSL secured with a self-signed certificate. I followed the instructions at HTTPS and Self-Signed Certificates in Java but I doesn't to work. I think its because the certificate is a wild-card certificate. So I wonder if I should be doing something different to import the wild-card certificate?...

How do I add an Implementation-Version value to a jar manifest using Maven's assembly plugin?

I'd like to add an Implementation-Version line to a manifest in my jar file that reflects the POM version number, using the maven assembly plugin. Note that this is similar but different to another of my recent questions about the jar plugin. ...

Ant equivalent of Maven profiles?

Is there an Ant equivalent to the 'profile' concept in Maven? I'd like to be able to specify a different set of targets to build (out of one Ant file) depending on an argument. So in Maven I can specify a profile and then activate it like so: mvn groupId:artifactId:goal -Denvironment=test So say my build.xml contains: <target name="...

What is the format of the Maven Surefire plug-in <include> statement?

I'm trying to run Maven Surefire with an include statement of: <include>**/[A-R]*SeleniumTest.java</include> <include>**/[A-R]**SeleniumTest.java</include> <include>**/[A-R].*SeleniumTest.java</include> But it does not seem to support any of these notations. What is the syntax of this expression? (Documentation link would be much app...

Can I make one maven profile activate another ?

I have 2 maven2 profiles, selenium and jspc. Now for "selenium" id'd like to have an implicit activation of "jspc", so that I don't have to write mvn -Pselenium,jspc from the command line. Is this possible ? ...

mvn archetype:generate Error building POM (may not be this project's POM)

Hi all! I am trying to create a jsf+spring+hibernate from a spring project. Below are the steps i have taken. I have been successful in creating projects in the past using the same method. I have no idea where i am making the mistake. Looking for all the hints, where i am going wrong. NB: I have made the inputs and error messages as b...