maven-2

Add jar (dependency with scope system) in an Ear build.

I work with Maven and I want to do a build with packaging ear, i want to add a dependency with scope system and also with specifing the systemPath of the jar like follow: <dependency> <groupId>group1</groupId> <artifactId>group1</artifactId> <version>1</version> <scope>system</scope> <systemPath>D:\Buildear\Jars\file.jar...

i want to create a logger to redirect the details of maven

I use log4j to redirect the details of the maven build with eclipse the goal is to redirect the output displayed on the Eclipse console to a file and receive them later . the problem is that I can not find the proper class in the maven api to do this, so if you can help meto find the enter point! thanks :) ...

How to inject SVN revision number into JAR?

I want my JAR/WAR application to know what is the SVN revision number of its source code. I want this revision number to be later rendered for web end-users at the bottom of a web page, etc. Is there any existing Maven plugin to automate the process? I think that the plugin has to collect the information from svn and save to some file,...

Execute my groovy script with ant or maven

I have the following 1 java class 1 bat file (starts the groovy script) 1 groovy file All is in the same folder Now I want to use Maven or Ant to run the groovy file but I cant get it to work. Is there someone who can show me how to write this pom.xml or build.xml? I dont want to use the bat file anymore. ...

Is it possible to avoid duplication of maven archiver configuration?

This is my parent pom.xml: [...] <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.0</version> <configuration> <archive> <manifestEntries> <SCM-Revision>${buildNumber}</SCM-Revision> </manifestEntries> </archive> </configuration> </plugin> <plu...

Hide the version of a jar in a build having packaging type "ear".

I work with Maven2. I want to know is there a way to hide the version of the jar after the build with packaging type "ear". For example if: I use junit with version 5 i want to get it in my ear with the name junit.jar and not junit-5.jar. I use an external jar named "file.jar" and i do build with type of packaging "ear" and i want tha...

Handling multiple artifacts from single maven project

Hi guys, I have a maven project that produces many artifacts. Of course it is kind of against maven best practice (one pom one artifact), but it is Adobe Flex project that produces many *swf modules and it is really makes no sence to create a separate project for each module. For me it would be very convinient to handle all swf modules...

How to setup a Java maven project for multiple developers to use easily

What do people think is the best way of setting up a Java, maven-2 web project so a new developer can come on board easily? Do you checkin you project settings, .classpath, .project .settings folder etc into source control and use variables? Or Is it better to just checkin code and use the maven eclipse plugin to generate project sett...

Maven dependency

Hi guys, i have a little misunderstanding with one problem. I use Maven 2.0.9 Currently my project consists of several internal modules: module1 (jar) module2 (war) module3 (ear) So i need to copy to war file in specific folder module1 jar. So what i do now : i included it via maven-dependency-plugin in package stage (copy goal). But...

Build automation and deployment for Javascript

Hi everyone, i work at the digital department of a public broadcaster, together with two other frontend developers. We're currently looking into improving our Javascript workflow and build processes. Stuff like packaging, minifying, versioning, etcetera. In an ideal scenario, we would have a global repository for all Javascript-related...

Will the was6 plugin for maven work with WAS 7

From what I can find there is no specific maven plugin for WAS 7, so I am wondering if the was6-maven-plugin will work with the newer version of the server. ...

Confused about jetty-env.xml

I have a webapp that uses JNDI to locate a datasource and a transaction manager. I see from the Jetty documentation how to do this via the jetty-env.xml file. However it mentions that this file should be put into the WEB-INF directory. Why would they suggest that JNDI resources be configured in a configuration file that is located i...

Maven build for different profiles

Hi There, We're trying to migrate from current Ant build to Maven. In the current project, we've different properites files for each of the env say qa.properties, prod.properties & dev.properties. The property values present in these files, are used to replace wherever these properties are being referred through config files (present i...

error while using struts2-archetype-starter build project in myeclipse

ERROR MESSAGE: An internal error occurred during: "Creating struts2-archetype-starter". Attempted to beginRule: MultiRule[P/examsys,P/.org.eclipse.jdt.core.external.folders], does not match outer scope rule: org.maven.ide.eclipse.internal.project.SchedulingRule@971a7e environment: MyEclipse 8.5M2 plugin m2eclipse struts...

Is it safe to run continuous builds with "mvn verify" instead of "mvn clean verify"

We are running our continuous builds on Hudson currently with "mvn clean verify". That is what we always did and so we never questioned it. The question is: Is it save to run a continuous build with "mvn verify" only? So that would mean the maven-compiler-plugin would only compile classes that got changed since the last build and save ...

skip maven tests console output, but not all tests entirely

Hi, does anybody know how could I skip the console output generated by maven (surefire) tests? I want to execute the tests and see how many of them passed and failed but skip the console output of the execution of these tests. thank you! ...

Using Ivy, Maven and the Issue with POMs

I have been looking at and playing around with IVY of late for a new project. I know that there are two camps on this topic and a lot of reasons people choose one or the other. This question is not focused on that. What I am interested in is when I use IVY to say get the Spring Frame using the Maven 2 repository I get a Ton of Jar file...

Maven Chronos plugin

I have a problem with Maven Chronos plugin. Is it possible to tell plugin a mask for name of jmx files to execute? Thx ...

How do I use a template code generator (eg freemarker) in Maven?

How would you structure Freemarker (or an alternative) as a templating code generator into a Maven project? I'm pretty new to Maven and would appreciate some help. I want to generate some code from templates in my project. [a] Rather than write my own, googling found freemarker which appears to be used by Spring which is a good enough...

Java Spring MVC Folder / Naming Conventions

I'm trying to determine the best way to organize our Maven / Spring web applications and have been looking around to see examples. Unfortunately, they seem to conflict at certain points. How should the folders be organized in a Spring MVC webapp and what should they be called? The big differences I see are: The folder for JSPs. /sr...