Hi Jörg,

I think we should consider another approach.
Once users can define their own descriptors, you really want to get rid of these parameters.

For now I would go for:
@Parameter
private String descriptorId;

For now it's null by default, or "oss" as predefined value.

in the code just check
if ( "oss".equals( descriptorId ) )
{
  // add stuff
}

this way it will be easier/cleaner to move to real descriptors.

WDYT?

Robert


Op Mon, 05 May 2014 21:27:02 +0200 schreef <joerg.hohwil...@codehaus.org>:

Revision:

19715
Author:

joerg.hohwiller
Date:

2014-05-05 14:27:02 -0500 (Mon, 05 May 2014)

Log Message

MOJO-2027: added documentation

Modified Paths

trunk/mojo/flatten-maven-plugin/src/site/xdoc/usage.xml

Diff

Modified: trunk/mojo/flatten-maven-plugin/src/site/xdoc/usage.xml (19714 =>
19715)



--- trunk/mojo/flatten-maven-plugin/src/site/xdoc/usage.xml 2014-05-05 19:20:06 UTC (rev 19714) +++ trunk/mojo/flatten-maven-plugin/src/site/xdoc/usage.xml 2014-05-05 19:27:02 UTC (rev 19715)

@@ -31,6 +31,20 @@

     </plugins>

   </build>

       ]]></source>

+      <subsection name="Keep developer information">
+ If you want to keep additional development information in your POM, e.g. for + <a href="https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide";>OSSHR</a>
+        you can configure flatten-maven-plugin as following:
+      <source><![CDATA[
+        <configuration>
+            <handleName>KeepOrAdd</handleName>
+            <handleDescription>KeepIfExists</handleDescription>
+            <handleUrl>KeepOrAdd</handleUrl>
+            <handleScm>KeepOrAdd</handleScm>
+            <handleDevelopers>KeepOrAdd</handleDevelopers>
+        </configuration>
+      ]]></source>
+      </subsection>

     </section>

   </body>

 </document>

To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to