maven-2

Google App Engine using maven

Hi all, I've been trying to create a single project which can run both on sql and gae (where the 'datanucleus.properties' file needs to be changed) under a single maven folder structure. I first tried to get the Greeting example on the GAE website using mysql (this now works). Then, inspiring myself from beardedgeeks tutorial, I have tr...

Why do I get derived folders after maven check out in Eclipse.

Every time I check out my project from svn in eclipse and then enable maven dependency management I get some derived folders which happen to be some of the source folders. This kind of folder prevents me from making any modification on the files inside the folders. The derived folders seem to be those that have individual pom.xml file in...

Unpack zip in zip with Maven

I can unpack zip file via the maven-dependency plugin, but currently i have the problem that inside that zip file other zip files are include and i need to unpack them as well. How can i do this? ...

Why does this compile fine under Maven, but give me errors in Eclipse?

I'm stepping into an open source project, currently built using Maven2. I imported the project into Eclipse and this bit of code is giving me problems: public static enum HierarchyType implements Function<MonetarySummary, SumOfMoney>, Predicate<Txaction> { EARNINGS { @Override public SumOfMoney apply(MonetarySummary ...

Can I substitute Eclipse and Maven variables into a log4j.properties file?

You can use system properties in log4j configuration files using a ${variablename} syntax. Can you include Eclipse variables (like the project name) and Maven variables (like the artifact ID) in there too, and have them substituted during the respective build? ...

NoSuchMethod error using maven-jaxws-tools-plugin for wsprovide

I am trying to use the maven-jaxws-tools-plugin (v1.0.0 GA) with the goal being wsprovide, and am having little success. I had a number missing dependencies which I had to scour the internet for, and eventually, having followed several tutorials and blogs etc I think I've got them all in correctly. But now I am left with an error which ...

How can I change the war name generated by maven assembly plugin

How can I change the name from 1.0.snapshot-jar-with-dependencies to something else, below are contents of my pom : <build> <plugins> <plugin> <artifactId>maven-assembly-plugin</artifactId> <version>2.2-beta-5</version> <configuration> <archive> ...

Maven - how/where to publish artifacts

I have open-sourced some of my projects. I'd like to publish the artifacts in a common place. If I don't have to host my own repository, that would be ideal, otherwise I will have to setup my own instance of Nexus (or other repository that you recommend). Can I publish artifacts to Maven Central? What process do I need to follow to g...

What maven artifacts do I need for spring hibernate and mysql support?

I have a IDEA project using maven2. I want to use hibernate + mysql, what dependancies do I need? ...

Inject Groovy into existing Maven Java Project

I have been maintaining a maven java project for year. Recently, I learned Ruby and asked why haven't these nice features (of Ruby) existed in Java, and I am so happy to find Groovy the answer. It's already out there for more than 6 years and what a shame I didn't know about it sooner. Now come to the story: I have a lot of java code wri...

Hibernate symbols @id @column are not recognized

In my User class, I'm trying to add the symbols @id and @column. I'm getting a compile error: cannot find symbol class id/column. I'm using IDEA. In the docs, I don't see any reference for @Id and @Column: http://docs.jboss.org/hibernate/stable/annotations/api/ I have this in my pom.xml: <dependencies> <dependency> ...

what maven repos should idea be pointing to?

what are popular repo indices i should configure Idea to use? i have: http://repo1.maven.org/maven2 ...

Hibernate website shows version 3.5, maven only showing 3.1rc2

Which maven repository has the latest hibernate core 3.5? I have repository.jboss.com/maven2 and it only shows version 3.1rc2. The latest is suppose to have hibernate annotations in the core .jar I believe, mine doesn't. ...

Start a Maven J2Me project in Eclipse and run it

I have a problem setting up my maven j2me project that I created in Eclipse. I have the WTK 2.5.2 & SDK 3.0 installed and associated with Eclipse. I created a project using j2me-simple archetype. Copied the files from my previous J2Me project which was working! but as I see, all the files that I know are missing. the Application descri...

Maven Project - github

Is it possible to publish your site reports to github? For instance, I run Checkstyle, Findbugs, Cross Reference, and other plugins and would like to have that publicly available. Since my project is already there, I'd like to just keep it there. ...

Managing Ruby dependencies for a project

Hi all, I'm switching to Ruby for a project due to its excellent meta-programming support. As a Scala guy, I'd use buildr or Maven to manage my project. I could have it generate a skeleton directory structure, add my dependencies, then when I build, the dependencies are downloaded automagically. How would I use this workflow in Ruby? T...

JUnit + Maven + Eclipse: Why @BeforeClass does not work?

I am using JUnit 4, Maven 2 and latest Eclipse. Problem is simple: I would like to perform some setup (connecting to a database) before my tests are executed. I tried @BeforeClass in many different locations but Eclipse and Maven are ignoring this. Any help on accomplishing this initial setup? Thanks! public abstract class BaseTestCas...

Java Maven enforcer rule error

Hi all I'm new to apache maven. I imported a project into netbeans everything seems well but i get this error when trying to build it: [WARNING] Rule 2: org.apache.maven.plugins.enforcer.RequireProperty failed with message: Property "loadVersion" is required for this build. I think this means that the version of one of the dependencie...

Getting started with Maven plugin testing

I'm writing a very simple Maven plugin, and I am kind of lost with the testing part. Based on the plugin developers site, there are several different tools to achieve the same things, which documentation seem outdated... I found resources like this too, and took a look at the "core" plugins, but this is still very unclear to me. As ther...

Deploying Java Files

What are the best practices (and enabling tools) to deploy Java standalone applications along with any required jar dependencies, config files, and launch scripts? Are there any Maven plugins that easies publishing binary releases, so that users don't need to use maven for example? ...