{"action":"closed","issue":{"url":"https://api.github.com/repos/takari/polyglot-maven/issues/57","labels_url":"https://api.github.com/repos/takari/polyglot-maven/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/takari/polyglot-maven/issues/57/comments","events_url":"https://api.github.com/repos/takari/polyglot-maven/issues/57/events","html_url":"https://github.com/takari/polyglot-maven/issues/57","id":113497455,"number":57,"title":"[polyglot-groovy] translation of activation > activeByDefault > false generates invalid groovy","user":{"login":"fbricon","id":148698,"avatar_url":"https://avatars.githubusercontent.com/u/148698?v=3","gravatar_id":"","url":"https://api.github.com/users/fbricon","html_url":"https://github.com/fbricon","followers_url":"https://api.github.com/users/fbricon/followers","following_url":"https://api.github.com/users/fbricon/following{/other_user}","gists_url":"https://api.github.com/users/fbricon/gists{/gist_id}","starred_url":"https://api.github.com/users/fbricon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbricon/subscriptions","organizations_url":"https://api.github.com/users/fbricon/orgs","repos_url":"https://api.github.com/users/fbricon/repos","events_url":"https://api.github.com/users/fbricon/events{/privacy}","received_events_url":"https://api.github.com/users/fbricon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-27T03:10:03Z","updated_at":"2015-10-29T02:05:19Z","closed_at":"2015-10-29T02:05:19Z","body":"```xml\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<project xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd\" xmlns=\"http://maven.apache.org/POM/4.0.0\"\r\n    xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n  <modelVersion>4.0.0</modelVersion>\r\n  <groupId>foo.bar</groupId>\r\n  <artifactId>java</artifactId>\r\n  <version>0.0.1-SNAPSHOT</version>\r\n  <profiles>\r\n    <profile>\r\n      <id>badly-translated</id>\r\n      <activation>\r\n        <activeByDefault>false</activeByDefault>\r\n      </activation>\r\n    </profile>\r\n  </profiles>\r\n</project>\r\n``` \r\nconverted to pom.groovy yields\r\n\r\n```groovy\r\nproject {\r\n  modelVersion '4.0.0'\r\n  groupId 'foo.bar'\r\n  artifactId 'java'\r\n  version '0.0.1-SNAPSHOT'\r\n  profiles {\r\n    profile {\r\n      id 'badly-translated'\r\n      activation\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nwhich is bad groovy: `No such property: activation for class:  org.sonatype.maven.polyglot.groovy.builder.ModelBuilder$1` \r\n\r\nbecause activeByDefault=false is the default value, it's not rendered, leading to an empty but illegal activation node.\r\n\r\nThis comes from a real world example https://github.com/jboss-developer/jboss-eap-quickstarts/blob/7.0.x-develop/kitchensink-html5-mobile/pom.xml#L282 (or org.wildfly.archetype:wildfly-html5-mobile-archetype:8.2.0.Final)"}}