maven-2

Finding the right version of the right JAR in a maven repository

I'm converting a build that has 71 .jar files in its global lib/ directory to use Maven. Of course, these have been pulled from the web by lots of developers over the past ten years of this project's history, and weren't always added to VCS with all the necessary version info, etc. Is there an easy, automated way to go from that set of...

Upgrade maven.2.0.8 to maven.2.0.9 on Ubuntu Hardy Heron (8.04)

Ubuntu packages for 8.04 only goes upto version 2.0.8 of Maven. How do I install maven 2.0.9 package using apt-get or other Ubuntu package installer ? Thanks. ...

Using native dependencies inside Maven

A POM dependency contains native libraries (DLLs inside a JAR file). How do I programmatically look up the path of the downloaded JAR file so I can pass it into "java.library.path"? ...

Exporting Maven properties from Ant code

I've embedded the following code within my POM: <plugin name="test"> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <phase>validate</phase> <configuration> <tasks> <pathconvert targetos="unix" proper...

What frameworks to use to bootstrap my first production scala project ?

I am making my first foray into scala for a production app. The app is currently packaged as a war file. My plan is to create a jar file of the scala compiled artifacts and add that into the lib folder for the war file. My enhancement is a mysql-backed app exposed via Jersey & will be integrated with a 3rd party site via HttpClient inv...

Can I assign a maven dependency to a specific repo?

So I have several large projects that use up to 8 different external repos, all specified in settings.xml rather than in poms. A lot of our internal dependencies are snapshots, so this obviously causes a lot of checking for updates across several external repos, when they are all in our internal repo. So my question is, is there a way ...

Unable to compile and create maven project for hibernate

I am trying to create a Eclipse project from Hibernate tutorials under path \hibernate-distribution-3.5.3-Final\project\tutorials\eg using command line mvn eclipse:eclipse. But i am getting this error Reason: POM 'org.jboss.maven.plugins:maven-jdocbook-style-plugin' not found in repository: Unable to download the artifact from any repos...

Maven Release Plugin with JAXB issues

Hiya, We've got a project set up to use the Maven Release Plugin which includes a phase that unpacks a JAR of XML schemas pulled from Artifactory and a phase that generates XJC classes. We're on maven release 2.2.1. Unfortunately the latter phase is executing before the former which means that it isn't generating the XJC classes for th...

How to compile multiple css files into individual swfs using pure Maven?

Right now I am using an apply task inside of an antrun execution. <plugin> <artifactId>maven-antrun-plugin</artifactId> <version>1.4</version> <executions> <execution> <id>compile-default-theme-css</id> <phase>compile</phase> <configuration> <tasks> ...

How to use Maven in my Java Project and Why?

I am trying to figure out the use of Maven and I got many articles describing its features and uses. But I am just not able to understand the actual use of Maven from productivity standpoint. I am fresh out of school and working as an intern and these guys want me to use Maven for my project. So, from what I am used to in our school pr...

[Maven] Using different Spring properties for integration tests

I am testing with Selenium a web application developed with Spring to check that the web application displays the right stuff for the user and that he's able to do everything that is in the specification. The other developers are using a fake Hibernate database in memory (HSQLDB) for unit testing. I have to use the real DB used by the p...

What is a good tool for unit testing javascript in a maven webapp / liftweb project?

I want to unit test the javascript I have embedded in the webapp portion of my liftweb project. Liftweb is a subset of the maven webapp archetype, so my question applies to that framework as well. By 'good', I mean that the tests can be integrated into the maven automated testing. I understand that different browsers support different...

How can I create Spring web project with Maven in Eclipse?

I tried to make project by selecting Archtype Web Application from Eclipse create new maven project. But when I created a new java Class to project sources folder, it didn't contain packacge name in package and source folder was included in class path. So is there something wrong with my setup or why doesn't Eclipse add automatically pac...

How m2eclipse create a new domain by maven-glassfish-plugin?

version is glassfish v3 I want to trying maven-glassfish-plugin but I don't know how to create a new domain . Plz step by step say me,thx. And I want to looking pom.xml,thx ...

Why i create a new domain isn't existed master password

I used maven-glassfish-plugin create a new domain but file isn't existed master-password? Why? Command is glassfish:start-domain. My pom.xml declares the following: <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <ver...

JDK tools.jar as maven dependency

I would like to put JDK tools.jar as compile dependency. I found some examples that indicates to use the systemPath property like the following: <dependency> <groupId>com.sun</groupId> <artifactId>tools</artifactId> <scope>system</scope> <systemPath>${java.home}/../lib/tools.jar</systemPath> </dependency> The problem is that t...

Can maven-2 help me create Java client-server app?

I am Java and Maven newbie and I want to create a simple client and server app in Java which will communicate trough sockets. I read a little about Maven, and I managed to create Hello World example using: mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -Dinteract...

Maven-glassfish-plugin can't use <adminPassword> tag?

settings.xml I define to: <profile> <id>GlassFishv3</id> <activation> <activeByDefault>false</activeByDefault> <property> <name>glassfish.version</name> <value>3</value> </property> </activation> <properties> <glassfish.home>E...

which jaxb plugin to use?

I found two jaxb maven plugins: 1. <groupId>org.jvnet.jaxb2.maven2</groupId> <artifactId>maven-jaxb2-plugin</artifactId> 2. <groupId>com.sun.tools.xjc.maven2</groupId> <artifactId>maven-jaxb-plugin</artifactId> What is difference in these two plugins? ...

Finding the root directory of a multi module maven reactor project

I want to use the maven-dependency-plugin to copy EAR-files from all sub-modules of my multi-module project to a directory that is relative to the root directory of the entire project. That is, my layout looks similar to this, names changed: to-deploy/ my-project/ ear-module-a/ ear-module-b/ more-modules-1/ ear-modu...