maven-2

Where is Maven' settings.xml located on mac os?

Where is Maven' settings.xml located on mac os? ...

Maven adds class files of snapshot dependencies

Hi, on my Windows machine I do have several proeject that I build with maven. At the moment they are all in SNAPSHOT-State. When I build a project that relies on one of the other projects maven always adds the class files of the other projects to the jar. If I build the project on my CI-Server this problem does not occur. Does anyone hav...

maven tomcat plugin or cargo plugin ?

The spring source code examples use maven tomcat plugin and i am able to run these projects using the command mvn tomcat:run but what i dont see the application is not deployed in local tomcat server("C:\apache tomcat\webapps\").. And how it is different from cargo plugin? (In this case when i ran the command mvn cargo:redeploy, i see t...

A code generator for java available for maven?

Hello, I am developing a java project with maven which generates code files. I am looking for a good code generator that is available for maven. So far I tried <plugin> <groupId>com.tikal.maven</groupId> <artifactId>tikal-maven-jet-plugin</artifactId> <version>0.3.0</version> The advantage of this plugin is that it genera...

HowTo use https / ssl with Maven/Mortbay Jetty Plugin?

I would like to use ssl / https as described in http://docs.codehaus.org/display/JETTY/How+to+configure+SSL using jetty-maven-plugin, but I don't know how to configure the plugin. Any hint, example, tutorial, walkthrough ? Also, I wonder how to carry out Step 3b of the above mentioned tutorial, where manipulation the jetty server is n...

How to compile java project against JDK 5?

Possible Duplicate: compiling project with jdk1.5 using maven2 I am trying to build java project that is using java 5 features, so maven is understandably returning an error message: ... variable-arity methods are not supported in -source 1.3 (use -source 5 or higher to enable variable-arity methods) ... Could somebody hel...

maven build error

Hi , I am very much new to maven. I downloaded the maven 2.0.11 version and installed it on my 32bit redhat linux along with JDK 1.4 After installation I have configured the proxy settings. When I try to run command mvn install downlaod of some repository(org) is successful but then it fails with build error as below : [INFO] --------...

How to build renamed POM xml

Hello, I am relatively new to Maven, I actually wanted to know how to build the renamed pom.xml i.e. there is a xml with name parent-pom.xml shall I directly name it to pom.xml and try building it or is there some other way to do it? Thanks! ...

is it possible to use class.forname to load a class that exists within a module wired up with Spring?

I have two maven modules and a need for class A in module 1 to load class B in module 2 using class.forname. this works very well and I can call the right methods on class B no problem at all. module 1 is wired up using spring and I'd like to wire module 2 up in the same way for consistency. I tried this and compiled it up no issue. b...

Ant standard tasks

Maven has a fairly standardized project structure and standard plugins for compilation and testing. Is there something widespread for Ant? I found the following projects so far: Antiplate Ant Script Library But I'm not sure whether these are widespread and are likely to be maintained in the future. Does someone have experience with ...

maven jetty plug in mvn:jetty ServletContext.getRealPath("") and ServletRequest.getRealPath("") to point to target _instead_ of source folders?

SUMMARY: The goal is to find the path to the WEB-INF folder in the target folder for maven-jetty-plugin that is compatible with other servers as well. The ServletContext.getRealPath("") works beautifully for, e.g., Tomcat, or mvn jetty:run-war. Thank you Misha Dear All: This is related to http://tickets.openmrs.org/browse/TRUNK-1760...

Where to find EMF artifact in Maven repository

Hello all, We are developing with EMF outside Eclipse therefore using Maven for build. My question is where can I find EMF artifacts, and if yes which version. BTW Is there any tool to automatically cross-publish Eclipse artifacts with sources to Maven repository? Renat ...

What are good deployment and release strategies for a shared runtime environment?

Bonjour. Status Quo For our customer we are developing some libraries and applications that run as "modules" within a larger application that is delivered as a internal Java Web Start application. The customer maintains the infrastructure that this application is run on. The "server side" is made up of a few web services based on Axis2...

this.getClass().getClassLoader().getResource("...") and NullPointerException

I have created a minimal maven project with a single child module in eclipse helios. In the src/test/resources folder I have put a single file "install.xml". In the folder src/test/java I have created a single package with a single class that does: @Test public void doit() throws Exception { URL url = this.getClass().getClassLo...

How to get rid of generics warnings in code generated from xmlbeans-maven-plugin?

I have some code generated from xsd files by xmlbeans-maven-plugin. Unfortunately generated code uses raw collection types, like: java.util.List targetList = new java.util.ArrayList(); get_store().find_all_element_users(CURRENCY$0, targetList); Currency[] result = new Currency[targetList.size()]; targetList.toArray(result); which caus...

Webservices with Maven, Spring and Hibernate

I am developing an application using Hibernate, Spring and JaxWS. I was using JaxWS 2.1 and everything was running smoothly .. I need to upgrade to JaxWS 2.2 so I could use the @XmlElement annotation to require a parameter @XmlElement(required=true) .. So I updated my pom file <!-- <dependency> <groupId>com.sun.xml.ws</g...

Weaving production classes with AspectJ aspects in Maven for tests execution only

I have a project with Maven build and need to add some basic performance tracing to methods. I decided to use AspectJ for this. Main requirement is to weave tracing aspect into production classes but only for unit tests execution phase. I was able to configure weaving in Maven however after execution of tests same production classes wi...

How does the updatePolicy in maven really work?

When I define an updatePolicy in my maven settings it tells maven how often snapshot artifacts shall be downloaded. If I set it to always it of course downloads every time all snapshots. I was wondering what happens if I set it to the default value daily or another longer peroid. Does maven still check whether a new version of the sna...

why my schema.ddl is empty after hibernate3-maven-plugin?

This is the directory structure of the project (maven2 is used): pom.xml /src /main /java Abc.java /resources hibernate.cfg.xml database.properties /META-INF persistence.xml /test /java AbcTest.java /resources database.properties This is the content of hibernate.cfg.xml: ...

what is the purpose of two config files for Hibernate?

This is my current project structure: pom.xml /src /main /resources hibernate.cfg.xml /META-INF persistence.xml I have very similar configuration params in both files (hibernate.cfg.xml and persistence.xml), which looks strange, but this is what I saw in many online examples and tutorials. I can't understand ...