maven-2

Java EE 6 Maven Project Setup in Netbeans - some configuration issues?

I've been trying to set up a Java EE 6 Maven project via New Project -> Maven -> Maven Enterprise Application. However, when I try to run the application I've been running into a couple problems: I had to change the the http port that Glassfish listens on because the port it chose (8080) was already used. I went into the domain.xml fi...

Artifacts with classifiers not copying to local repository

I am using Maven version 2.0.7 and I am using the javadoc and source plugins to create additional artifacts for deploy. All of the generated artifacts are deploying correctly but it seems that when someone else builds they are only getting the specific artifact they specify. I don't want to have to add the source and javadoc artifacts as...

Create a branch from a tag with maven

Hi, I develop in trunk and periodically tag "stable releases" with the maven release plugin. For example: /trunk is MyProject 1.1-SNAPSHOT creates the stable release /tags/MyProject-1.1 Works fine, no problems, just perfect. Sometimes I have to deploy a hotfix but the trunk isn't ready, yet. So I need a branch from the last stable ...

Maven dependency management

Our project has a dependency like <dependency> <groupId>apollo.components.cots</groupId> <artifactId>cots-wfs</artifactId> </dependency> And as far as I understand, maven2 will get the latest artifact for cots-wfs, say <version>2.3-20101111.000000-13</version> The problem is, when we branch the project, the dependency sta...

Sort maven dependencies in Eclipse

Hello, Just wanted to know if it is possible in Eclipse to sort Maven dependencies by alphabetical order? It's bothering me to have a list of 200 jars not ordered... :( ...

what dependencies my project should have if I'm using JPA in Hibernate?

I use JPA, and Hibernate as its implementation. What maven2 dependencies I need to have in my project? ...

Problem with annotation spring context with differ modules.

Greeteng. I made application based on spring annotation configuration. This application is moduled, i'm build it with maven. I scan application to find Configurations in one module. public class ClientUserDAOImplTest { private static UserDAOLocal userDAOLocal; @BeforeClass public static void start() { beginDate = new Date(); ...

Why is a junit test that is skipped because of an assumption failure is not reported as skipped?

I use junit assumptions to decide whether to run a test or not. Tests where the assumption fails are ignored/skipped by the junit framework. I wonder why skipped tests are not reported as 'skipped'? Please have a look at the example: import static org.junit.Assert.fail; import org.junit.Assume; import org.junit.Test; public class Ass...

Maven: Having trouble excluding files from WAR

I have an images folder at src/main/webap/images which I'd like to exclude from my war. Here is my war plugin configuration: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <configuration> <version>2.0</version> <warName>UNAB</warName> <webXml>src/main/webapp...

Filter inclusion of classes maven-war-plugin

Hello! I wonder if it is possible to filter out files from WEB-INF/classes with maven-war-plugin? I have the following java package structure: src/main/java/ package1.client.* package2.client.* package2.server.* When building the project I do not want any .client.* classes in my WEB-INF/classes folder. (It's a GWT project). Is thi...

Sonatype nexus snapshot deploy into hosted repository - snapshot request doesn't translate into timestamp

Hey, I created hosted snapshot repo, deployed snapshot artifact, added to the public repo...and now maven http request cant get the artifact-1.5.-SNAPSHOT.jar. It's there, but the request is not translated into the timestamp instead of SNAPSHOT. Metadata contains correct values. public/org/exist/exist-core/1.5-SNAPSHOT/exist-core-1.5-20...

setting MAVEN_OPTS in maven

Hi, I want to run jetty:run in debug mode with MAVEN_OPTS setted in environment variable. But it seams like hardcode MAVEN_OPTS. Is is possible to set MAVEN_OPTS in command line like mvn MAVEN_OPTS=... Thank you. ...

How does one automate configuration of Eclipse?

A team working on a project will tend to need a common configuration of Eclipse. This includes general configuration and project specific configuration. For example, generally, everyone might wish to share indentation, installation of certain plugins (say m2eclipse, testng, egit, Spring support). Further, for a project, you might want ...

yui compressor maven: A required class is missing: org.mozilla.javascript.ErrorReporter

I am not able to use yui-compressor maven plugin in my web app. When I run maven I get following error [INFO] Internal error in the plugin manager executing goal 'net.sf.alchim:yuicompressor-maven-plugin:0.7.1:compress': Unable to load the mojo 'net.sf.alchim: yuicompressor-maven-plugin:0.7.1:compress' in the plugin 'net.sf.alchim:yui...

Hudson / default Maven

Hi, i cannot figure out how to set a default maven. Within a job configuration if you add a Maven Build you have to specify a Version and the goal. The first item in the select box for version is "default". If you have specified other versions under "configure hudson" they will appear there too. However i want all my jobs to use the def...

In a Maven multi-modules project, is it possible to apply the assembly plug-in in a recursive manner?

I have a multi-module Maven project, and I would like to assemble together artifacts created by running the assembly plugin on individual modules. Is this possible? ...

Maven optionally compile dependency from svn repository.

Is there way to optionally compile dependency from source (svn) instead of using the remote jar? Background: I have a very very large j2ee project and we do not want the developer to have to download the entire project on to there system. Specially under a IDE where 20+ project can cause performance problem when compiling... debugging.....

Maven + Mercurial + Site Deploy issues

I'm trying to deploy my Maven generated site to a googlecode project using mercurial. When I do a mvn site:deploy I get Transfer error: org.apache.maven.scm.NoSuchCommandScmException: No such command 'list'. Its like its trying to do a "svn list" even though I am using mercurial. In my pom I have maven wagon and mercurial setup (I ...

Preparing Ear file in maven..

Hi All, We have replaced ejbs with Spring transaction and security(service facade) in our project. Earlier we were using maven ejb plugin to include dependent libs in the classpath. <plugin> <artifactId>maven-ejb-plugin</artifactId> <configuration> <archive> <manifest>...

Maven: How to remove dependencies if they are already transitive?

For example, if there are dependencies: a -> b a -> c b -> c I want to remove the dependency a -> c, because there is a -> b -> c. I know there may be some strong dependencies which should not be reduced, but it's not relevant to this question. Example: In a.pom: <dependencies> <dependency>b</dependency> <dependency>c<...