Open GoogleCodeExporter opened 9 years ago
Looks like there's already a 'enable-alfresco-testing' profile. Is the
proposal to rename that?
Could you activate that profile based on both the existence of
module.properties and a check of alfresco.version?
Original comment by ray.ga...@alfresco.com
on 24 Jan 2013 at 6:48
Ray, you are so right. I was looking in a outdated profile in a branch.
So you are right, it sounds I already implemented this as described above
(where enable-amp-testing == enable-alfresco-testing).
Still if someone happens to have a src/test/java (e.g. generates the project
from the amp-archetype), and then tries to use older alfresco versions, it'll
fail.
Maybe we should reformulate this issue as:
" release a alfresco-amp-archetype-legacy, which does not provide testing (nor
add sample testing files) support but works against older alfresco versions".
WDYT?
Said that, as per your proposal, hear this well (as I don't often say that):
unluckily this is one of the areas where I DO FRIGGIN hate Maven...because:
- Multiple conditions profile activation do NOT work
(http://jira.codehaus.org/browse/MNG-3328)
- The only activation which really works in a multi-module / inherited POM, is
the file based one...
- for an overview http://www.dashbay.com/2011/03/maven-profile-inheritance/
Original comment by colum...@gmail.com
on 24 Jan 2013 at 8:00
Original comment by colum...@gmail.com
on 24 Jan 2013 at 8:03
I'm not sure it would be worth the effort and potential confusion to produce
another archetype.
It's easy enough to use the alfresco-maven-plugin directly.
Original comment by ray.ga...@alfresco.com
on 24 Jan 2013 at 10:23
Makes sense but should be documented. Or maybe in the archetype itself we can
try to do some smart thing...will have a look at it soon.
Original comment by colum...@gmail.com
on 24 Jan 2013 at 10:28
Original comment by colum...@gmail.com
on 14 Feb 2013 at 10:15
Original comment by colum...@gmail.com
on 2 Jul 2013 at 9:52
At the moment, the enable-alfresco-testing profile is enabled only if the
relative directory src/test/java exists.
I think that this issue can be closed, please confirm.
Original comment by maurizio...@alfresco.com
on 3 Jul 2014 at 10:11
We might look into doing this in a mnt release of 1.1 but not moving forward.
Original comment by colum...@gmail.com
on 17 Jul 2014 at 1:27
Original issue reported on code.google.com by
colum...@gmail.com
on 24 Jan 2013 at 5:54