maven-2

Building a jar to be used in an eclipse PDE?

I have written an application that use a third party library. I have then packaged this as an executable jar using the maven-assembly-plugin (producing a jar with all dependencies including some of the third-party jars). Next I need to add this jar to a PDE project so it can be launched from eclipse. But to make this work I need to add ...

Problem with Eclipse and a Maven multi-module project

I have created a Maven project with the following structure: + root-project pom.xml (pom) + sub-projectA (jar) + sub-projectB (jar) I have done the following steps: mvn archetype:create –DgroupId=my.group.id –DartifactId=root-project mvn archetype:create –DgroupId=my.group.id –DartifactId=sub-projectA mvn archetype:create –Dg...

How to configure encoding in maven

When I run maven install on my multi module maven project I always get the following output: [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent! So, I googled around a bit, but all I can find is that I have to add <properties> <project.build.sourceEncoding>UTF-8</project.buil...

Path to XML DTD for DBUnit in multi-module Java/Maven project?

I have a multi-module maven project. Within the persist module I have a number of XML files data files that reference a DTD: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE myapp-data SYSTEM "myapp-data.dtd" > <dataset> .....omitted for brevity.... </dataset> The DTD is stored in the same directory with the XML files and even...

Maven String Replace of Text Web Resources

I have a Maven web application with text files in src/main/webapp/textfilesdir As I understand it, during the package phase this textfilesdir directory will be copied into the target/project-1.0-SNAPSHOT directory, which is then zipped up into a target/project-1.0-SNAPSHOT.war Problem Now, I need to do a string repl...

Adding Hibernate 3.5.x to a maven pom.xml build

I added the JBoss Maven repo to my pom.xml file like this... <repositories> <repository> <id>jboss</id> <url>http://repository.jboss.org/maven2/&lt;/url&gt; </repository> </repositories> And I added Hibernate itself like this... <dependency> <groupId>org.hibernate</grou...

Maven filter garbling special characters

I have a resource file with the following string in it, note the special characters: Questa funzionalità non è sostenuta: {0} {1} After Maven does its process-resources (which I need for something else) I get: Questa funzionalit� non � sostenuta: {0} {1} Please tell me there is an easy fix to this? ...

maven sonar problem

I want to use sonar for analysis but i can't get any data in localhost:9000 <?xml version="1.0" encoding="UTF-8"?> <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://maven.apache.org/maven-v4_0_0.xsd"&gt; <modelVersion>4....

maven repository location for hsqldb 2.0

http://hsqldb.org/ - where is the maven repository for the latest version 2.0.0 bits ...

Recommended ways of Importing a maven project to IDE ?

Many IDEs supports to import maven projects directly, but maven has a maven-eclipse-plugin, when you run : mvn eclipse:eclipse It will generate eclipse project settings ,then you can import as generic eclipse project. Which one is better? I prefer importing directly using m2eclipse, as my IDE is Spring Source Suite (eclipse 3.5 s...

How to generate one jar with different executable classes in maven2?

I have a big project that uses maven and I'm creating the project's jar. The problems is that the project has several classes that can be executed. How can I accomplish this? Every time that I try to execute a class I get this message java -jar library.jar ExecutableClass1 Failed to load Main-Class manifest attribute from library.jar ...

maven-compiler-plugin exclude

Hi, I have a following Problem. I would like to exclude some .java files (*/jsfunit/.java) during test-compile phace and on the other side i would like to include them during compile phace (id i start tomact with tomcat:run goal) My pom.xml <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-...

maven junit pom.xml

Hi, i have a following problem. I'd like ti test my JSF Application with JSFUnit.But JSFUnit supports inly junit3 (all our unit tests run with JUnit4). Is it possible to include in pom.xml two junit dependencies (junit4 and junit3) with e.g. different scopes? Please help and thanx in advance ...

Why does Maven is looking in the wrong repo?

Hi there, I'm trying to get the newest hibernate version for my project, for this purpose I've added the jboss repo into my settings.xml <repository> <id>jboss-releases</id> <url>http://repository.jboss.org/maven2&lt;/url&gt; </repository> but when I do the depency search from my m2eclipse plugin I see only results from the ...

m2eclipse sets JDK compliance to 1.4

Using eclipse 3.5, when I create a new maven project, m2eclipse automatically adds J2SE1.4 to libraries and Compiler Compliance Level to 1.4 (Project properties > Java Compiler). My JRE system library is 1.6 and my default compiler compliance level is 1.6. I don't even have 1.4 installed. Can I make m2eclipse use my default settings and ...

Hibernate, Spring and SLF4J Binding

Hi, I'm trying to setup a webapp with maven2 managed dependcies. Here my pom.xml <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://maven.apache.org/maven-v4_0_0.xsd"&gt; <modelVersion>4.0.0</modelVersion> <groupId...

m2eclipse - after pom and dependencies definition - no libraries on classpath / Maven Dependencies

Hi, I've been doing just simple archetype projects until now, and always after dependencies definition and saving pom.xml, immediately after that the Maven Dependencies library was full of libraries. But now I declared: parent(pom packaging, scm, repository management) parent(pom packaging, shared dependencies) actual project (jar pa...

How to get notified of updates to public maven repositories for new plugins?

Are there any tools which will notifiy you automatically of any new plugin additions from public maven repositories (e.g. Apache | Codehaus | JBoss | Sourceforge maven repository ...) ...

How do you find out release, mailing list statistics information on open source projects

We are interested in finding out some statistics of various frameworks Mailing list activity on say richfaces. Much similar to what is available on http://code.google.com (Low, Medium, High) + average number of emails per day | per month. Number of releases made in a year including patch, minor, major releases. We did look at the mave...

Broken console in Maven project using Netbeans

Hi, I have strange problem with my Neatens+Maven installation. This is the shortest code to reproduce the problem: public class App { public static void main( String[] args ) { // Create a scanner to read from keyboard Scanner scanner = new Scanner (System.in); Scanner s= new Scanner(System.in); String pa...