maven-2

enabling UTF-8 encoding for clojure source files.

Hi all, I'm working on a project which involves maven, java and clojure. The problem I'm facing is this, I have some UTF-8 chars in my clojure source files because of which my source code is not interpreted correctly by the java compiler, I kinda got it working by setting the environment variable JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF...

maven deploy exclude

I want to exclude one dependency when I'm doing deploy, I need it when I use the jar locally, but it should not be in deployed jar. is there any way to do it? ...

Maven Default Separator

Hi All, In a pom.xml, if we are trying to compile and create a JAR, the name will be taken as <artifactId>-<version>.jar Is there a property or setting which can change the default separator '-' to something else? I know that we can rename it after a jar has been created (or by using finalName). I was just wondering whether anyone ...

How does Maven determine the order goals run in within a given phase?

As per this link... http://en.wikipedia.org/wiki/Apache_Maven#Build_Lifecycles I understand that Maven as a number of phases that run in the order they are defined for a given lifecycle. I also understand that you can attach goals to a phase. The problem is what happens when you attach a number of goals to a phase, how does Maven de...

Activate Maven profile if no other profile activated

I have a project that has several profiles. How do you make one of the profiles activate only if no other profiles are active? ...

Configure Maven plugins to stick together.

I have parent pom which configures certain plugins <pluginManagement> </plugins> <plugin> <artifactId>gmaven-plugin</artifactId> ... </plugin> <plugin> <artifactId>maven-resources-plugin</artifactId> ... </plugin> <plugin> <artifactId>cargo-maven2-plugin</arti...

Module:referencing another module from the desciptor

Hi My assembly descriptor for module (APP1) is: <?xml version="1.0" encoding="UTF-8"?><assembly> <id>report</id> <formats> <format>jar</format> </formats> <includeBaseDirectory>false</includeBaseDirectory> <moduleSets> <moduleSet> <includes> <include>*-APP2</include>[trying to refer to another mo...

How to populate web application with initial data

I am writing web application and am wondering what the recommended way is to populate initial data. This is JPA/Hibernate and Spring application and is built by maven. Up to now I've used script wich populate database with initial data, started by hand. Unit tests work with theirs own data, created in code before each test. My test clas...

Maven + system Date

Hi all! I'm working in a project that already have a build process running with maven. Today the build generates a zip file in a given directory, but I need to add the DATE pattern in the file, something like 200917_projectName.zip Someone have any clue? Thanks in advance ...

How can I download Maven artifacts within a plugin?

I have a Maven plugin that takes a groupId, artifactId, and version in its confiugration. I want to be able to download that artifact from the remote repositories and copy the file into the project. I can't figure out how to download the artifact though. I understand that I can resolve dependencies using the dependency plugin, but I ne...

How can I resolve an artifact from the Maven repository within a plugin?

In a previous question I got an answer for downloading an artifact from the Maven repository. This works well for me, but I need to read the MavenProject for the downloaded artifact. What is the best way for me to read the MavenProject for the downloaded artifact in my plugin? ...

Creating/Accessing Maven repository in SVN through NetBeans 6.7 *Revised*

EDIT: Ok... so I've gathered that SVN shouldn't really be used for this... which makes sense, I suppose (why version individual files when the version should be a separate jar?). So we should use an internal server to host a repository management tool like Nexus (etc), and access that over http to pull down and put out dependencies. We ...

Maven - Profiling web applications

Hi all, I was wondering if anyone has found any plugins that attach a profiler to a JVM to automatically monitor performance during a unit or integration test. I would like to correlate performance to a particular page view and then drill down into all the methods invoked, memory used, run time, etc. Does Yourkit or JBoss Profiler sup...

Package not found in maven jetty plugin

When i try to run jetty maven plugin(mvn jetty:run) I have received this error: [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Compilation failure D:\projects\Projekt\src\main\java\Runner.java:[18,22] package org.apache.uima does not exist This package use class Runner, an...

Using output of maven assembler plugin as input to plugin

I have a number of maven projects which build various components of a plugin framework for a 3rd party application. I have a master project which, using aggregation ( element), includes all the sub projects. This master project also calls the maven assembler plugin. I can now build all the sub-projects and have the assembler copy their o...

How do you translate from checkstyle.xml to eclipse code style format/profile and back again?

I have eclipse code formatter and profile xml docs and I'd like to build a checkstyle.xml which I can use in my maven builds to run reports and generate the eclipse files. maven-eclipse-plugin appears to be able to generate the eclipse files from the checkstyle.xml (I think), but I'm not sure how to go the other way and I'm not looking...

How can I download sources for particular Maven artifact in IDEA?

In Eclipse there is an opportunity to select a Maven artifact you have a dependency on and download sources or documentation only for it. Now I am struggling to find that functionality in IDEA. But seems to be it provides only opportunity to download sources for ALL dependencies. Or I am wrong? ...

Why is Maven failing with a SurefireExecutionException: > Cannot set option parallel with value

Hi I am working through the tutorial here using windows XP and latest builds http://binil.wordpress.com/2006/12/08/automated-smoke-tests-with-selenium-cargo-testng-and-maven/ Could someone please tell me what the tags are. <parallel>true</parallel> <threadCount>10</threadCount> When I build with these tags included I get a failure:...

Apache Forrest as a Code Documentation Solution

Lately, I have been looking into Apache Forrest as a code documentation solution. From Apache's website, "Apache Forrestâ„¢ software is a publishing framework that transforms input from various sources into a unified presentation in one or more output formats. The modular and extensible plug-in architecture of Apache For...

Large Java System Dependency Management

We have a large (>500,000 LOC) Java system that depends on 40-50 OSS packages. The system is built with Ant, and dependency management is handled manually at present. I'm investigating Ivy and/or Maven to automate dependencies. We looked at Maven as a build automation system last year and rejected it because it would require totally r...