maven-2

Maven repository for EJB 3.1 API

What Maven repository can I use for EJB 3.1 API dependency? ...

code formatting at build time

can anyone suggest me a plugin/tool that can perform a code formatting at build time. ...

Maven2 applying filtering to the file under pom type packaging.

Hi all, I am new to maven. I want to use filtering in a multimodule project. The packaging type of the parent pom is set to pom. The structure of the project is as follows: pom.xml | |______MODULE1 | | | pom.xml | File1_needed_to_be_filtered | File2_needed_to_be_filtered Please note...

The case against Maven?

Time and time again I've read and heard people frustrated over Maven and how complicated it is. And that it's much easier to use Ant to build code. However, in order to: Compile code Run tests Package a deployable unit This is all you need from Maven: <project> <modelVersion>4.0.0</modelVersion> <groupId>type something here</g...

Difference of maven jaxb plugins

I have determined that two jaxb plugin for maven2 exist, with some different configurations. The one is from Sun: http://jaxb.dev.java.net/jaxb-maven2-plugin/ the other from Mojo: http://mojo.codehaus.org/jaxb2-maven-plugin/ Has anybody experience with these two plugins, and give a recommendation? Thanks Matt. On my little research pr...

Why does exec:java work and exec:exec fail?

Hey there, just set up a simple project to test the functionality of the maven exec plugin. I have one class containing one "Hello World" main method. I've tested two configurations of the exec plugin. <goals> <goal>exec</goal> </goals> <configuration> <executable>java</executable> ...

developing maven plugin, how to exclude bitkeeper files

I'm writing a maven 2 plugin and I'd like to exclude all the java files related to the source repository I'm using, which is BitKeeper. These files live in directories called SCCS. So far, I've been unsuccessful. When I add the maven-compile-plugin with excludes data, it works (the BitKeeper files are excluded) if I execute mvn comp...

How to download complete maven remote repository to Local repository

Hello , Is there any to get the entire remote repository , say from http://repo1.maven.org/maven2/ , to my local repository (to %USERPROFILE%)? Thanks in advance for the help. Srinivas N ...

Connecting Subversion Repo with Maven

I created a maven project in eclipse. I uploaded it to my subversion server. Now on my testing server I installed maven and I want to connect it with my svn repository to run test builds on. Not sure how to do this since I have only worked with Maven via the eclipse plug-in. ...

Using eclipse and maven 2, how to get dependancy for sqljdbc4?

I am using eclipse with the maven 2 plugin. I want to add the dependency for sqljdbc4, how can I do that? Can't seem to find it via the 'add dependency' option in eclipse? ...

Created a maven project in Eclipse, moved directory location, how to open it now?

I created a maven2 project in eclipse, and then I moved the folder to another location. How can I open that project now in eclipse, I can't seem to find a 'open an exisiting maven' project or the like? Opening the file pom.xml just opens the file, kinda stuck sorry. ...

How to add a jar build by a project to the project in eclipse?

I have a project which as part of the build process creates an XMLBeans jar file (stbSchemas.jar) which I want to include and reference in this project. Is this the best way to go about this (Single project) or should I have a child project which is built from the parent project? I am building this using Maven2 inside Eclipse. Is ther...

Maven and native libraries.

I mavenize my java-project and don't understand, how add in it native libraries. In my not-maven project i did it via CLASSPATH. I use NetBeans and maven in it. ...

Convert Existing Eclipse Project to Maven Project

For a project at work, we're considering using the Maven plugin for Eclipse to automate our builds. Right now the procedure is far more complicated than it ought to be, and we're hoping that Maven will simplify things to a one-click build. My question is, is there a wizard or automatic importer for converting an existing Eclipse Java p...

maven-jar-plugin includes vs excludes

I've got an existing pom file that includes a maven-jar-plugin section. It runs for the test-jar goal and is currently excluding a few directories: <excludes> <exclude>...</exclude> <exclude>...</exclude> <exclude>somedir/**</exclude> </excludes> I need to include a file in the somedir directory but leave out the rest ...

How to perform ordered tasks in Maven2 build

Hi, I am trying to migrate a Java application built by Ant to Maven2. among other the build perform the following operations: 1) Running a javadoc doclet to find annotated Java files to be externalize later as web services 2) compile a small part of the code for step 3 3) run Axis java2wsdl on the compiled code from step 2 4) produce j...

Unsatisfied link error under Maven exec / debug plugins on Linux

Hi. I'm getting a runt-time "Unsatisfied link error" for libraries installed in Linux system library, which are definitely visible. This project works normally when I let Eclipse to manage it. Does someone know if there any caveats regarding JNI and Maven, and can advice about this case? Thanks in advance. ...

maven: (use -source 5 or higher to enable static import declarations)

How can I use source 5? I tried mvn -source 5 test but it didn't work :-) When I compile the file by javac, everything works. ...

Eclipse (Springsource Tool Suite 2.3.1) can't resolve dependencies for classes in the same package

This started happening when I upgraded my Springsource Toolsuite from 2.3 to 2.3.1. Essentially whenever I do anything, such as open a file, change a file, etc, I have to do a clean. Everything works fine when I do mvn commands on the command line, which leads me to believe that Eclipse is looking in the wrong place for compiled code o...

private internal maven repository

I wonder whether I can setting up a private maven repository based on my svn. The svn can be accessed via http. If yes, then what should I do? Just uploading the architypes is enough? ...