[
https://issues.apache.org/jira/browse/MNG-5725?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Elliotte Rusty Harold updated MNG-5725:
---------------------------------------
Issue Type: Improvement (was: Bug)
> Problem with Required-Parameters and Default-Values in Nested Objects for
> Plugin-Parameters
> -------------------------------------------------------------------------------------------
>
> Key: MNG-5725
> URL: https://issues.apache.org/jira/browse/MNG-5725
> Project: Maven
> Issue Type: Improvement
> Affects Versions: 2.2.1, 3.0.5, 3.1.1, 3.2.3
> Environment: Ubuntu 14.10 LTS
> Linux lenovo-t430u 3.16.0-22-generic #29-Ubuntu SMP Thu Oct 9 16:26:18 UTC
> 2014 x86_64 x86_64 x86_64 GNU/Linux
> Reporter: snoozer
> Priority: Major
> Attachments: SampleProject.zip
>
>
> Hi,
> I recently started to develop my own Maven-Plugin and came across the Mapping
> of "Mapping Complex Objects" (see:
> https://maven.apache.org/guides/mini/guide-configuring-plugins.html#Mapping_Complex_Objects).
> I thought it would be nice to develop my own Plugin with a "Complex Object"
> which also contains a required or a default parameter inside (e.g. Person is
> my Complex Object and the firstName is a required Parameter and lastName's
> default is Doe).
> Unfortunately this doesn't work at all and both Parameters end up being
> "null" :(
> I thought the problem is based on the "maven-plugin-annotations" I use for
> the Plugin, but chaging the Version does not change the Outcome (both
> Parameters are still null).
> For convenience reason I attached a Sample-Project where the Problem occurs
> as well.
> I tested a couple of different Versions of the "maven-plugin-annotations" and
> a lot of different Apache Maven Versions, something like:
> <!-- Broken with: 3.1, 3.2, 3.3 with Apache Maven 2.2.1 -->
> <!-- Broken with: 3.1, 3.2, 3.3 with Apache Maven 3.0.5 -->
> <!-- Broken with: 3.1, 3.2, 3.3 with Apache Maven 3.1.1 -->
> <!-- Broken with: 3.1, 3.2, 3.3 with Apache Maven 3.2.3 -->
> <!-- Broken with: 3.1, 3.2, 3.3 with Apache Maven 3.1.1 -->
> <!-- Broken with: 3.1, 3.2, 3.3 with Apache Maven 3.2.3 -->
> I also tested with the following two Java-Versions
> JAVA 1.6:
> java version "1.6.0_45"
> Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
> Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)
> JAVA 1.7:
> java version "1.7.0_51"
> Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
> Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
> Any Suggestions?
> PS: If this is the "wrong" place to report this Problem please let me know
> where I can report it :)
> PSS: You can use "mvn clean install && mvn clean package -Pdemo" to check the
> result of the Nested-Object Parameters. The Build will fail everytime, but
> that's not the point...
--
This message was sent by Atlassian Jira
(v8.3.4#803005)