maven-2

can we include maven pmd plugin execution within build goal ?

Guys, I wanted generate the pmd report while building the project so I have added plugin to build section of my pom.xml but still it don't execute until I explicitly call mvn clean install pmd:pmd. I want to execute it with mvn clean install itself. is it possible ? my pom entries are as under: <build> <plugins> <plugin> ...

How to compile hibernate project with maven?

I am novice to maven (as well as to hibernate) but want to learn both. I have downloaded a sample project from hibernate.org and now trying to compile it with maven but getting following error: [INFO] Scanning for projects... Downloading: http://repo1.maven.org/maven2/org/hibernate/hibernate-parent/3.5.2- Final/hibernate-pare...

Import system properties to maven plugin's Spring context

Hi All, I have in-house developed maven plugin(lets call it A) which uses spring IOC container and a maven project(call it B) that uses this plugin. I want to specify particular plugin configuration in B's pom.xml, so this property will be accessed in plugin's spring context I expect something like this, pom.xml (project B) <plugin>...

How do you install a Maven2 plugin?

I found this plugin for Google App Engine development that seems to be what I need. But I have no idea how to install it. I downloaded the JAR file from this page but I don't know where to put it: http://code.google.com/p/maven-gae-plugin/ Could anyone point me in the right direction? I've tried search for installation instructions b...

Where in maven project's path should I put configuration files that are not considered resources

I have a simple java maven project. One of my classes when executing needs to load an xml configuration file from the classpath. I dont want to package such xml file when producing the jar but I want to include a default xml file in a zip assemply under a conf subfolder and I also want this default xml to be available in the unit tests t...

Class 'org.springframework.http.converter.ResourceHttpMessageConverter' not found - how to correct?

Eclipse STS is reporting I have problem with my spring project. It's a fresh project generated from the Spring Web MVC Project Template (File->New->Spring Template Project->Spring Web MVC ). When I create the project it has no problems - it's only once I modify the pom (by adding the hibernate dependencies) that STS then picks up the...

How to setup Eclipselink with JPA?

The Eclipselink documentation says that I need the following entries in my pom.xml to get it with Maven: <dependencies> <dependency> <groupId>org.eclipse.persistence</groupId> <artifactId>eclipselink</artifactId> <version>2.0.0</version> <scope>compile</scope> ... </dependency> <dependencies> ... <reposi...

How to generate enum from properties file in Maven?

The original title was "How to generate enum from properties file using ant?" I want to iterate over all properties and generate enum class that have every property. Im thinking about writing custom task, but I think i would need to put it in extra jar :| im using maven and i want to do it in generate-sources phase. ...

How to set name of author in a maven project?

packaged maven project contains META-INF/manifest.mf file and in field "Built-by" is login name of current user. Where or what to set name of author, so maven will use this instead of login name? ...

Dependency isn't included in my assembly, although scope is "compile"

Edit 4: For the answer to this question see the final comments of the correct answer. Hi! I have the following dependency specified in my project's pom: <dependency> <groupId>org.jboss.client</groupId> <artifactId>jbossall-client</artifactId> <scope>compile</scope> </dependency> My project itself has to be the child of ano...

How to create Adobe LiveCycle component as maven project?

I need to create component for Adobe LiveCycle ES. Standard result of packaging should be jar file with this structure: componentX.jar: \META-INF\manifest.mf (auto generated) \com\test\TestComponent.class (compiled src) \component.xml (resources) \dependency-lib-1.jar (some of dependencies as specified in pom.xml) \dependency-lib-...

How can I view javadocs that have been added to a maven repository?

I know I can use maven to pull the javadocs for an artifact (if they've been added), which should come through as a JAR (right?), which I can then unpack and browse. My problem is, I'm trying to figure out which of a series of artifacts have the particular package I'm hunting for. I could download a half-dozen javadoc packages, unpack ...

Maven 2 <resources> inheritance (parent -> child project)

(also posted on maven-users) Wondering if anyone can shed some light on inheritance of the elements in pom.xml as relates to resource processing and the WAR plugin. The documentation for the pom [1] has resources listed under "Elements in the POM that are merged". Some experimentation on my local poms against maven 2.2.1 don't appear ...

Does this Maven plugin really have an invalid descriptor?

COMMAND: mvn org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate -DarchetypeGroupId=org.beardedgeeks -DarchetypeArtifactId =gae-eclipse-maven-archetype -DarchetypeVersion=1.1.2 -DarchetypeRepository=http://beardedgeeks.googlecode.com/svn/repository/release s OUTPUT: [INFO] Scanning for projects... [INFO] -----------...

PropertyPlaceholderConfigurer works from Maven command line, but not from Eclipse?

I have Eclipse configured to use an external maven instance. Nonetheless I have an integration test that runs fine from the command line, but fails from within Eclipse. The error is a class Spring application context bean error: Cannot convert value of type [java.lang.String] to required type The culprit it a bean that sets property...

Finding out which compiler Maven uses

Hi. Do you know how I can find out which of my JDKs Maven uses to compile my projects? ...

Maven default compiler compliance level

Hi. Do you know how I can find out the default compiler compliance level that my Maven installation uses when nothing is defined in the maven-compiler-plugin? Yours Bernhard ...

Excluding packages from jars in maven assembly descriptor

Hi I have the following syntax problem. I have a jar file that is created from other unpacked jar files. I am trying to exclude some package from being in the the new jar file. Here is my assembly descriptor <assembly> <id>gs-jar</id> <formats> <format>jar</format> </formats> <includeBaseDirectory>false</includeBaseDirectory> <...

emma not generating reports but cobertura does ?

Hi all, basic reason to put the comparison question between these 2 is I am able to generate the reports in site directory(for cobertura) after putting the following plug in information in build section of my pom. But same would not happening with emma. I checked documentation in codehause mojo its almost same for both. My configuration...

Is there a Maven plugin to generate AS3 classes from Java for BlazeDS ?

Hi, I'm looking for a maven plugin that would generate ActionScript3 classes from Java classes in order to access them by object remoting. I've seen FlexMojo but it uses the GraniteDS generator wich create some problems when it comes to map Enum objects (wich can be fix through a workaround that is describe here : http://dev.c-ware.de/c...