flex spring jpa hibernate maven svn - apache-flex

i look for a tutorial or an ebook that gather the use of the following technologies flex spring jpa hibernate maven svn, for the database, it doesn't matter if it's amysql, postgresql or a oracle one.

I would start Here[adobe.com] for a tutorial on Flex, Spring, and Hibernate with Maven as a build tool. It's a great walkthrough from Abobe. SVN is a just version control and you can find plenty of tutorials online.

Related

How to deploy a BPMN created in Eclipse as an Activiti project in Alfresco Community v5.1.0

I have Alfresco Community v5.1 installed on my machine locally and have created a BPMN model in Eclipse using the Activiti project plugin, I have the BPMN and other xml files, but I do not know how to deploy the same in Alfresco Community V5.1.0.
Files that I have created:
The BPMN file
activiti-model.xml
content-model.xml
model-context.xml
share-config-custom.xml
Where do I paste or update these files in the Alfresco Community installed locally and what are the clear steps to deploy the newly created workflow into the Alfresco Community.
I have followed this tutorial by Jeff Pots:
http://ecmarchitect.com/images/articles/alfresco-workflow/advanced-workflow-article-2ed.pdf
but, was not able to deploy, please help me find this.
Alfresco Version:
Alfresco Share v5.1.f (r125711-b6, Aikau 1.0.63, Spring Surf 5.1.f, Spring WebScripts 6.5, Freemarker 2.3.20-alfresco-patched, Rhino 1.7R4-alfresco-patched, Yui 2.9.0-alfresco-20141223)
Alfresco Community v5.1.0 (r127059-b7) schema 10001
Thank you all!
Deploy in Alfresco goes throu AMPs or JARs packages. Try to run first tutorial from jpotts https://ecmarchitect.com/alfresco-developer-series-tutorials/maven-sdk/tutorial/tutorial.html.
You need run Alfresco SDK, create changes, build packages and then deploy them on server (locally or remote). Its not so simple as replacing some files... If you working with old Alfresco 5.1, use old SDK 3.0 and old version of tutorial. If you started with sixth tutorial in Alfresco, it is normal to get lost.

How to use Spring 5.0 in NetBeans 8.2?

When I create a Java Web project in NetBeans and select a Framework, in this case Spring Web MVC, only two options appear:
Version 4.0.1
Version 3.2.7
You can do this in Netbeans:
Download the Spring Framework you need from here
Extract the contents of the archive and copy the contents of the lib directory to your netbeans location e.g /home/stanley/netbeans-8.2/java/modules/ext/spring-(version) e.g 5.1.4
On your netbeans go to Tools > Libraries > New Library
Name your Library as Spring Framework (version) e.g 5.1.4 and add all the jars from the location in 2 above.
Restart your netbeans application.
You should have the new Framework as shown in the diagram below:
TL;DR
The easiest way to create a new spring project is using Spring Initializr. All you need to do is fill in the form, download the project, unzip it and open in NetBeans.
Explanation
Regardless of a language and IDE, it is usually good idea to create a new project based on a standard build-tool for the language's ecosystem and avoid creating an IDE-specific project. That makes it easier to share the project with people who use a different IDE and switch your IDE in the middle of the project.
There are several build-tools for Java ecosystem but I'd suggest to pay attention to two of them: Maven and Gradle. Those are most widespread and supported by IDEs.
NetBeans supports Maven out of box. It supports Gradle too but in 8.2 you are supposed to install a support plugin for Gradle (from Tools -> Plugins menu).
You can generate a new Maven or Gradle project using NetBeans. Select corresponding menu item when selecting the type of the project.
Then you will have to add the dependencies of the project to its descriptor (pom.xml for Maven or build.gradle for Gradle). See the documentation for the build-tool of your choice to understand how exactly to do that.
Spring provides Spring Initializr service to generate a new project based on spring's libraries. It is the easiest way for a quick start.
Since you are using Netbeans and it supports Maven out of the box, you can get an existing Maven archetype to setup a basic Spring application for you to start from.
Although there isn't any official archetype, there are a lot of really nice 3rd party ones like https://github.com/kolorobot/spring-mvc-quickstart-archetype
The steps to start a new project are quite fast and straight forward (Netbeans 11)
File -> New Project -> Java with Maven -> Project from archetype
In the search filter enter spring-mvc-quickstart-archetype, enter your project details and click Finish

What is the right way to customize Alfresco 4.2.2 Enterprise?

Some times ago, I used Alfresco 5.2 CE. When I needed to develop some kind of customization, I used the Alfresco Maven SDK with three different Maven archetypes, it was:
Alfresco Repository AMP;
Alfresco Share AMP;
Alfresco all-in-one (AIO).
By using this SDK I developed AMP files that overlaid on either the alfresco.war or share.war by using the module management tool (MMT):
...
java -jar bin/alfresco-mmt.jar install amps/some-customization-share.amp tomcat/webapps/share.war -force
java -jar bin/alfresco-mmt.jar install amps/some-customization-repo.amp tomcat/webapps/alfresco.war -force
...
Now I am using Alfresco 4.2.2 Enterprise and looking for the right way to do the same things that I did with Alfresco 5.2 CE.
Let's say, I want to develop a two tier Spring Surf customization that can remotely connect to different repositories. Or, for example, I need to develop a new Spring Surf page for a site, or just make some little changes in some FTL-template.
What is the right way? Is there a similar SDK for Alfresco 4.2.2 Enterprise?
I would be very grateful for the information. Thanks to all.
The Maven-based Alfresco 3.0 SDK is compatible with Alfresco 4.2, both Enterprise and Community Edition.

Spring 4 MVC Project without Maven

Does anyone have working project template with the following:
Spring 4.x MVC
Spring Security 4.x
Spring Data JPA 1.8.x
Hibernate 4.3.x
Unfortunately, I cannot use Maven currently and it is a pain to track down all of the dependencies.
I was eventually able to get maven finally working. I had to delete the entire repository several times before it finally started working

Build a flex project on, ant or Maven?

I am going to write a build commands for flex 4.5 project, which is only based on actionscript not with java. I am very new to both maven and ant.So can you people suggest which is more compatible and robust with Flex 4.5
Maven definitely has better integration with Flex than Ant. There are several reasons:
Mature plugins. Maven has especially great plugins for integration with Flex. The one that seems most matured and is in active development is Flexmojos
Dependency management. Maven can download libraries required by Flex on the fly. Maven embedded dependency management functionality is invaluable, especially for Flex projects.
Generating project structure. You can generate typical project to start from scratch using Maven. Personally I find it to be very useful and helpful.
Even though there are popular and supported bundle of readily available Ant tasks (called Flex Ant Tasks) available both with the open source Flex SDK and with Flash Builder (also I should point out that Ant might more also good choice if you're perplexed by Maven complexity or you need build automation for simple small-to-midsize project), Maven turns out to be more mature and more appropriate choice.
PS. You can find short manual on how to start with Maven for building Flex projects here.

Resources