Maven plugin project missing groupId in generated pom.xml


I am attempting to generate a pom.xml but it is missing a tag. The maven plugin I’ve written has a dependency on the maven-plugin-plugin.

This is my reproducer project.

$ cat build.gradle
 apply plugin: 'maven'
  defaultTasks 'assemble'
  task writeNewPom << {
    pom {
        project {
            packaging 'acme-plugin'
            version '1.0'
            name 'Acme Plugin to build a trap to catch a Road Runner.'
            build {
                plugins {
                    plugin {
                        groupId 'org.apache.maven.plugins'
                       artifactId 'maven-plugin-plugin'
                       version '3.1'
                       configuration {
                          skipErrorNoDescriptorsFound 'true'
            properties {
               '' 'UTF-8'
assemble.dependsOn writeNewPom
$ gradle clean assemble
  Total time: 1.002 secs
$ cat build/src/main/resources/pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="" xmlns=""
  <name>Acme Plugin to build a trap to catch a Road Runner.</name>

As you can see, the generated pom.xml is missing this line


Did I make a mistake when configuring the MavenPom ?

Regards, Jeremy

I am using Gradle 1.9, OpenJDK 1.7.0_45, Fedora19.

hmm, this behaviour seems to be by design in the MODELLO project.

Till the feature request in the MODELLO project is complete this isn’t going to work. I’ll add a JIRA to track this and have the version bumped up.