Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Maven Alfresco SDK to Mavenized Alfresco build (Community) #187

Closed
mindthegab opened this issue Jul 20, 2014 · 6 comments
Closed

Comments

@mindthegab
Copy link
Contributor

From gabriele...@alfresco.com on June 10, 2014 08:30:36

The next major/minor version of Alfresco will build with Maven.

This means that:

  • there won't be anymore 'config' artifacts
  • artifact naming needs to be double checked
  • need to evaluate if platform distribution POM is still required and how to add it to the automated Alfresco build

Original issue: http://code.google.com/p/maven-alfresco-archetypes/issues/detail?id=187

@mindthegab
Copy link
Contributor Author

From colum...@gmail.com on June 10, 2014 05:35:52

Labels: Milestone-Release-sdk-2.0.0

@mindthegab
Copy link
Contributor Author

From ole.hejl...@gmail.com on June 10, 2014 06:06:44

I got 4.3.0-SNAPSHOT (fresh clone from github) running. I updated the platform distribution so it doesn't include the "config" artifacts.

I also had to remove alfresco-repository and alfresco-data-model (with the config classifier) from alfresco-sdk-parent pom.

Platform distribution pom: https://gist.github.com/ohej/82549b0d279ab5022db8 Alfresco-sdk-parent pom: https://gist.github.com/ohej/7bea1e24749e8f092fb6 This seems to work, tested it with a couple of addons and did some tests, seems fine.

When running it against the share.war I had to add slf4j-log4j12 as a dependency to get it up and running.

I'm not sure why the platform distribution is needed at all?

@mindthegab
Copy link
Contributor Author

From o...@magenta-aps.dk on June 16, 2014 08:30:56

All in one seems to work, except for Solr.

Solr had it's packaging changed, so the archetype needs to be modified. The final pom for Solr in all-in-one should look like this: https://gist.github.com/ohej/816b770b08ce633c13ea I'm waiting for https://artifacts.alfresco.com/nexus/service/local/repositories/thirdparty/content/org/apache/solr/apache-solr/1.4.1-alfresco-patched/apache-solr-1.4.1-alfresco-patched.war to be updated with the correct contents before I can test it properly.

@mindthegab
Copy link
Contributor Author

From o...@magenta-aps.dk on June 16, 2014 15:06:29

I've committed my changes, see r737 Most changes were version updates and removing config artifacts.
All-in-one had some issues with Solr, which was also fixed.
Share had issues running, so slf4j-log4j12 had to be added. I added it in the parent pom to keep the AMP poms as tight as possible.

Now there are some missing pieces: alfresco-platform-distribution. This is in the core SVN, and it's not included in the default build.
I've forked it on GitHub and propse this commit as a change: https://github.com/ohej/community-edition/commit/ef2b652ab145603c6cc4f21d5f432a43a5be254e This change will re-work the platform-distribution to be included (and deployed) when doing "mvn install / mvn deploy". I also updated it to exclude the config artifacts.

Last thing is that alfresco-mmt module is not included in the default build cycle in HEAD. There are problems building it (it works, but fails on the "installer" module), and the SDK depends on the same MMT version as the Alfresco version.

If we get the last two issues fixed, it is possible to checkout the SDK code, clone Alfresco-community from GitHub. Do "mvn install" on Alfresco-community and ditto with the SDK. Voila, working SDK for 4.3.0-SNAPSHOT.

Let me know what you guys think.

@mindthegab
Copy link
Contributor Author

From colum...@gmail.com on July 17, 2014 17:08:59

I have just tested this with 5.0-SNAPSHOT and it all works fine. Happy to close this one! I almost can't believe :)

Status: Verified

@mindthegab
Copy link
Contributor Author

From colum...@gmail.com on July 17, 2014 17:09:43

Will reopen a separate issue to track testing with Enterprise.

Summary: Update Maven Alfresco SDK to Mavenized Alfresco build (Community) (was: Update Maven Alfresco SDK to Mavenized Alfresco build (Community + Enterprise) )

@mindthegab mindthegab added this to the Release-sdk-2.0.0 milestone Jul 20, 2014
@mindthegab mindthegab modified the milestones: 2.0.0-beta-1, 2.0.0-beta-3 Sep 9, 2014
@mindthegab mindthegab modified the milestones: 2.0.0-beta-4, 2.0.0 Dec 23, 2014
gehriga pushed a commit to hannecke-its/alfresco-sdk that referenced this issue May 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant