maven-2

Archetype for Maven Project

Hi guys, I'd like to start a little project with maven. I want to use JSF2 and Hibernate. Can you recommend some archetype? or some other procedures to start this project. Cheers... ...

How use cargo-maven2-plugin deploy to jboss as5?

I trying cargo-maven2-plugin, but I don't deploy in jboss5x I pom.xml is <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.0.2</version> <configuration> <container> <containerId>jboss51x</containerId> ...

Maven Multi Module Project breaking compile-time class resolution

Hi, I've been previously managing a 3-module project as 3 seperate maven projects. As this project has been moving forward, I decided I ought to take advantage of the dependency management of maven2 to streamline integration between these 3 evolving modules. I defined a super-project that deploys as POM. Some shared dependencies are de...

Application settings in a EJB3 app / maven multi module

Hi, What's the norm / best practices for saving/retrieving application settings in a EJB3 app? I'm using maven as a build tool, and I have a multi module project. I was thinking of putting some properties file on some common module that would be available application-wise as a jar but I'm not sure if an EJB is more suited for this. E...

Upload/Download entire directory to Nexus through Maven

Is it possible to upload/download an entire directory and all of the sub-directories within it to/from a Nexus repository server? ...

How can I test a library on Android?

Hi there, I'm developing a library, not an application, for Android and I would like to know how should I test it? I know that if you are developing an application you can instrument the test+application and make it work, but this is not my case. I'm using Maven. Is it possible integrate the test results to the Maven lifecycle? The wor...

Using IDEA with maven2, how to add a non-maven .jar?

I have a .jar that I want included in my IDEA web application project that is using maven2 (pom.xml). How can I add a .jar to my project that isn't using maven? ...

Maven - Error Releasing Code to GitHub (Hangs After Push)

I'm attempting to run the mvn release:prepare goal and it's hanging after the push. Any idea what I could be doing wrong? [INFO] [INFO] ------------------------------------------------------------------------ [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] ------------------------------------------------------------------------ [INFO] [IN...

Trouble with Eclipse

Hi guys, I installed Eclipse Helios and m2eclipse. Next I created a maven project. Now Eclipse goes crazy. It leaks all the time, goes in endless loops (continously 50% CPU), throws PermGen Space Errors and crashes. I can't work. I tried to substitute the JDK with an older version, the same with maven and the same with eclipse. I also ...

How do I make a branch from a SVN tag with Maven?

Suppose I have tagged the release version of our project under $SVNROOT/project/tags/1.0. Suppose now that I need to create a branch from that tag, mark it as being a SNAPSHOT, and update the scm configuration. I tried with the release:prepare goal thus: $ svn co $SVNROOT/project/tags/1.0 project-1.0 $ cd project-1.0 $ mvn release:bran...

Integrate War-Plugin for m2eclipse into Eclipse Project

I set up a small web project with JSF and Maven. Now I want to deploy on a Tomcat server. Is there a possibility to automate that like a button in Eclipse that automatically deploys the project to Tomcat? I read about a the Maven War Plugin but I couldn't find a tutorial how to integrate that into my process (eclipse/m2eclipse). Can yo...

Getting groovy, maven, and eclipse to play nice together?

So we have some unit tests written in groovy. We have the Groovy Eclipse plugin going, we have gmaven going, but the problem is that the maven eclipse plugin doesn't automatically add the src/test/groovy directory as a source directory. So, I enlisted the build-helper plugin to add a source directory, but then the problem becomes the sou...

Stop Maven's hibernate3-maven-plugin from logging to console?

I can control hibernate logging from within my application just fine, but during a system build, the hibernate3-maven-plugin runs hbm2ddl and this is spewing tons of useless INFO log messages to the console: 21:51:57,383 INFO org.hibernate.cfg.annotations.Version - Hibernate Annotations 3.4.0.GA 21:51:57,394 INFO org.hibernate.cfg.Env...

Maven2 IDEA project, how to manually add to web-inf/lib folder?

With intelliJ IDEA, how do I manually add a .jar to my web-inf/lib folder? It is a maven project and I have been adding .jar's via pom.xml thus far. I manually dropped the .jar, but it didn't seem to pick up the .jar since it doesn't pick up the namespace when I add a import statement etc. ...

Maven adds '-windows' to the artifact name when downloading a snapshot artifact

I have added a bunch of artifacts to my local Nexus Maven repository. When I build my project I get the following error: [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building pronto-web Java EE 6 Webapp [INFO] task-segment: [verify] [INFO] ----------...

How to create a Maven Artifact, from lonely *.jar files?

Hey, I'm using Eclipse to manage my SVN repository, and I have a few projects that depend on the same Jar files, I would like to create a maven artifact of these Jars (if possible using Eclipse) and commit that artifact into my SVN repository for further use. How can I achieve that? Thanks, Adam. ...

Eclipse & NetBeans and using SVN & Maven

Hey, I have an issue, I've created a Maved project with Eclipse, and committed into a SVN repository. from here I tried two approaches: Import the project into NetBeans from the folder of Eclipse workspace. Check the project out of the repository into NetBeans. in both cases, once I clean and build the project, NetBeans deletes the ...

How to use dependency instead of loadExterns in flexmojos Maven plugin?

Hi, The documentation for flexmojos plugin states that loadExterns parameter is deprecated, and suggests: " Use dependency with type "xml" and classifier "link-report" (http://sites.sonatype.org/flexmojos/flexmojos-maven-plugin/compile-swf-mojo.html#loadExterns) . Can somebody please explain or show an example of how to do it? Thanks!...

Best practice on how to configure two local maven directories for continous integration with Hudson

I use Hudson as our build server. WE have a very large project that is devided into several maven based projects. There are several dependencies between the artifacts of these projects. Currently we don't version the code good enough so that we need two maven repositories to manage the dependencies correctly. My question is how to setu...

maven2 - how to list all resources repository url from pom file

I'm looking for something like this: List<URL> urls = ListURLFromPOM.("c:\pom.xml"); .. http://repo1.maven.org/maven2/org/apache/ibatis/ibatis-core/3.0/ibatis-core-3.0.jar http://repo1.maven.org/maven2/org/apache/camel/camel-activemq/1.1.0/camel-activemq-1.1.0.jar ... ...