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>
...
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...
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>...
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...
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...
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...
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...
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.
...
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?
...
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...
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-...
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 ...
(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 ...
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] -----------...
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...
Hi.
Do you know how I can find out which of my JDKs Maven uses to compile my projects?
...
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
...
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>
<...
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...
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...