DPascalBernard / maven-alfresco-archetypes

Automatically exported from code.google.com/p/maven-alfresco-archetypes
0 stars 0 forks source link

Alfresco artifacts classifier should be specified as a property #43

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. mvn archetype:generate your repo extension project
2. try to work against Alfresco 3.0c-labs

What is the expected output? What do you see instead?
The target Alfresco version will result as a 3.0c-labs-community, I want to be 
able to completely override the classifier.

Original issue reported on code.google.com by carlo.sciolla on 26 Jan 2010 at 1:51

GoogleCodeExporter commented 9 years ago
Still applicable?

Original comment by colum...@gmail.com on 4 Aug 2011 at 12:24

GoogleCodeExporter commented 9 years ago
That would be a nice feature, and easy using this 
http://maven.apache.org/archetype/maven-archetype-plugin/specification/archetype
-metadata.html .

@ Carlo: can you implement and test for the 4x releases?

Original comment by colum...@gmail.com on 15 Nov 2011 at 5:27

GoogleCodeExporter commented 9 years ago
Something like:

<requiredProperties>
  <requiredProperty key="alfresco.bundle">
    <defaultValue>community</defaultValue>
  </requiredProperty>
</requiredProperties>

What do you think about the name alfresco.bundle ?

Original comment by mauri...@session.it on 4 Apr 2012 at 8:10

GoogleCodeExporter commented 9 years ago
using ${alfresco.edition} as already mentioned somewhere in the code

Original comment by mauri...@session.it on 4 Apr 2012 at 8:16

GoogleCodeExporter commented 9 years ago
Added alfresco.edition property on every root pom; default value of this 
property is to set as Archetype required property called 
"alfresco-default-edition", which - by default - is set to "community". To 
override, set -Dalfresco-default-edition=myedition when invoking 
archetype:generate - 
http://code.google.com/p/maven-alfresco-archetypes/source/detail?r=375

Adding documentation to Wiki before marking the issue as Fixed

Original comment by mauri...@session.it on 4 Apr 2012 at 8:44

GoogleCodeExporter commented 9 years ago
Added instructions here - 
https://wiki.alfresco.com/wiki/Managing_Alfresco_Lifecyle_with_Maven#Project_cre
ation

Original comment by mauri...@session.it on 4 Apr 2012 at 8:50

GoogleCodeExporter commented 9 years ago
Reopening issue - 
http://code.google.com/p/maven-alfresco-archetypes/source/detail?r=378
RequiredProperties in archetype-metadata.xml is not working as expected, it 
does not respect default value.

Nevertheless, all dependencies to classifier community vs enterprise have been 
centralized into a pom.xml property called <alfresco.edition> therefore it is 
very easy to set it after the archetype creation.

I think it is a very minor issue, however, for those who'd like to investigate 
and try to fix it, I'd advise to check maven-archetype-plugin 2.2 and try to 
upgrade (currently using 2.0) the logic the breaks.

Original comment by mauri...@session.it on 4 Apr 2012 at 5:01

GoogleCodeExporter commented 9 years ago
Marked as enhancement

Original comment by mauri...@session.it on 4 Apr 2012 at 5:13

GoogleCodeExporter commented 9 years ago
This is resolved with the 1.0 SDK where alfresco.edition can be specific at 
archetype creation time? (to fill the alfresco.edition property in the POMs)

Confirmed?

Original comment by colum...@gmail.com on 24 Jan 2013 at 8:02