maven-2

How can I get the list of artifacts from my maven repository?

Hello, Is there a Maven goal to list the artifacts stored in my maven local repository? ...

Maven: Combine web projects

Hi, I have following Maven projects set up: PM-Core PM-Web (with a dependency to PM-Core) Now, this project is used for several clients but for each client there are some small differences: mostly differences in configuration files but some clients also require additional java files (which may not be installed for the other clients)....

maven on windows, will gitbash be enough?

From what I am reading, to run maven on a windows computer I need to download cygwin. Can I get away with gitbash? ...

Maven 2 assembly with dependencies: jar under scope "system" not included.

Hello, I am using maven-assembly plugin to create a jar of my application, including its dependencies as follows: <assembly> <id>macosx</id> <formats> <format>tar.gz</format> <format>dir</format> </formats> <dependencySets> <dependencySet> <includes> <include>*:jar</incl...

Maven usage for a SmartClient project

What's the best way to setup Maven for a project that has a SmartClient architecture? Consider the following packages: myproject.core myproject.server myproject.client Of course there are several sub-packages in each. Client and Server both use core. I see two main options: Make an uber-POM in myproject to cover all three and ha...

maven-assembly-descriptor include this very module

In a single-module project, I don't see how to get a 'classified' artifact from the project itself into the descriptor and thus the assembly. Do I list it as a dependency? ...

How do you setup a maven java project that can also make use of groovy?

I'm working on a large existing java project using maven to manage our builds / releases. I'm interested in using groovy to replace some of our Java classes where we can benefit from it's dynamic nature. How do I go about doing this using maven? ...

Conditional Maven build section with a profile?

I'm building a Flex application with Maven and the Flex Mojos plugin. I now want to compile an alternative version of the application with some extra libraries to enable automated functional testing. For this I need to change 2 things in the pom: extra dependencies extra configuration of the Flex Mojos plugin in the build section I c...

Disabling logging for jetty run from maven

I downloaded a big framework which I need to built from source. The project uses a maven build structure, and includes a demo application which can be viewed with an embedded jetty. Maven plugins handle all this stuff. However when I run the demo application (with mvn jetty:run), I can't really use it because for some reason logging on ...

Changing Eclipse project to use Maven?

My boss asked me to convert one of our projects to use Maven to build. So I created a pom.xml file and now Maven builds the project fine and runs all the tests and everything. "Fine", my boss said, "We don't need these any more" and he deleted the /libs directory from the project, and he deleted the JRE from the classpath. That's fine...

Handling resource file paths in JAR's and development

I have a keystore file that I want available to several classes in my application. I made a .config file that points the name of the keystore file, it's password, and other information. It's a Maven-based project, so the keystore is in /src/main/resources. I build a jar and move the file to /resources in the jar. I'd like the .config...

Is it possible to configure Maven 2 Pom Editor to open pom.xml in source mode?

I use Maven 2 Pom Editor mainly for editing directly the XML file. Is there a way to make the editor always open "Source" tab? ...

Run tests from inner classes via Maven.

I have following tests structure: public class WorkerServiceTest { public class RaiseErrorTest extends AbstractDbUnitTest{ @Test public void testSomething(){ } ... } ... } It's done because I don't want to create a separate class file for every test case extending AbstractDbUnitTest. Th...

why does maven release plugin allow for SNAPSHOT version in dependency managment?

We have 1 company parent pom. This uses dependencyManagement to manage the versions for all the dependencies of all the artifacts used. What is alarming, is that SNAPSHOT versions can be defined in dependencyManagement. Though when maven release is performed, the pom is allowed to be released with SNAPSHOT version in depende...

Is it possible to generate Annotated Java classes using Mojo's Hibernate plug-in?

I know that hbm2hbmxml generates the necessary mapping files (*.hbm.xml) from a given datasource. You can then use hbm2java which will use those hbm.xml files as an input and will output Java classes. Is there a way of generating Java Annotated classes from the datasource without having to rely on the hbm.xml files? Thanks. ...

Java EE eclipse project directory structure?

I am attempting to setup a sample dynamic web project in Eclipse using Java EE, Spring and Maven (using Nexus repository manager). I was wondering if anybody knows the "best practice" directory structure that I should setup for an enterprise web app in Eclipse? Should I just stick with the default structure that is setup for me? I ask...

How to get maven gwt 2.0 build working

EDIT: Added some of the output of the mvn -X -e commands at the end My company is developing a GWT application. We've been using maven 2 and GWT 1.7 successfully for quite a while. We recently decided to upgrade to GWT 2.0. We've already updated the eclipse project and we are able to successfully run the application in dev-mode. We ar...

making maven work with eclipse

Hello I'm trying to install maven plugin with eclipse and I have a following problem, more in picture below : So my question is, is this supposed to take this long or I did something wrong? I'm using eclipse galileo , I went to the window-> install new software -> typed in http://m2eclipse.sonatype.org/update/ website and name ma...

Maven for javaee-api

I use the latest m2eclipse to generate a standard ejb project, but then I got an error: Missing artifact javaee:javaee-api:jar:5:provided The pom.xml is as follow: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://m...

downloaded the petcare application, help with running it

I downloaded spring's petcare application from their svn repository. How do I go about loading in an editor and running it? It has a pom.xml file, and I see references to eclipse. I downloaded eclipse, but I guess I need some sort of plugin to open it? Is there a readme file that I missed that details on how to run this sample appl...