Closed GoogleCodeExporter closed 9 years ago
Hi Daniele,
I'm happy you ask about git since I'm a big fan of it!
I've added a page where I go through the steps to configure an Alfresco AMP
project with git - https://wiki.alfresco.com/wiki/Maven_For_Dummies#Using_Git
You can also have a look at my github project -
https://github.com/maoo/alfresco-amp-test
I am eager to hear some feedback from you, so that I can improve this section
and make it more complete.
Marking the issue as Enhancement
Original comment by mauri...@session.it
on 4 Apr 2012 at 8:13
Hi Maurizio,
I ended up setting it like this, in my parent pom (project with modules) I
defined:
I've set up git like this:
<!-- Source Control Management -->
<scm>
<connection>scm:git:git@my.private.gitolite.repo:my/project/id</connection>
<developerConnection>scm:git:git@my.private.gitolite.repo:my/project/id</developerConnection>
<url>https://my.webview.of.the.git.repos/projects/my-project-id/repository</url>
</scm>
And my artifactory (for artifacts deployment on release) like this:
<!-- Artifact deployments -->
<distributionManagement>
<repository>
<id>central</id>
<name>my.artifactory.server-releases</name>
<url>http://my.artifactory.server/artifactory/libs-release-local</url>
</repository>
<snapshotRepository>
<id>snapshot</id>
<name>my.artifactory.server-snapshots</name>
<url>http://my.artifactory.server/artifactory/libs-snapshot-local</url>
</snapshotRepository>
</distributionManagement>
I did not set up the release plugin to run on its own, I'm the one executing it
when I want it, actually I use Jenkins to execute it.
More or less that's what you did.
I wanted to make my amp version to increase in it's minor automatically with
git commits, but I think that's no way to do it in a non-linear development
environment like the one provided by git/mercurial.
so I changed the module.properties in my AMP project
from
module.version=${noSnapshotVersion}.${buildNumber}
to
module.version=${noSnapshotVersion}
I think this is actually better: alfresco doesn't support the downgrade of the
modules and if I install the 1.0.0.7 I can't go back to the 1.0.0.6
This is very annoying if you jump from one branch to another :)
Conclusion: the actual fix should come from Alfresco that should support
non-numeric versions and downgrading of the module (or at least an option to
allow it in development mode).
Original comment by daniele....@gmail.com
on 5 Apr 2012 at 9:01
Added issue to Alfresco JIRA, please vote ;-)
https://issues.alfresco.com/jira/browse/ENH-1232
Original comment by mauri...@session.it
on 6 Apr 2012 at 11:14
Hi Maurizio,
I can't vote the issue, when I click the link I get "Permission Violation"
Original comment by daniele....@gmail.com
on 6 Apr 2012 at 1:38
Yep, double check the security level for that issue, I bet only Alfresco hat
holders can look into that.
Original comment by carlo.sciolla
on 7 Apr 2012 at 2:09
Not sure it should be the right behaviour. FWDed issue internally, will keep
you posted!
Original comment by mauri...@session.it
on 9 Apr 2012 at 11:54
Postponed to post 1.0.0 release of the Maven Alfresco SDK. Pushed internally to
open up the ENH(ancemements) JIRA project.
Original comment by colum...@gmail.com
on 29 Oct 2012 at 10:54
Original comment by colum...@gmail.com
on 14 Feb 2013 at 10:15
Original comment by colum...@gmail.com
on 13 Jun 2013 at 3:27
Original comment by maurizio...@alfresco.com
on 3 Jul 2014 at 9:38
Original comment by maurizio...@alfresco.com
on 3 Jul 2014 at 9:41
Original issue reported on code.google.com by
daniele....@gmail.com
on 8 Feb 2012 at 3:31