Maven

CRUD operations example using Spring, MVC, Hybernate and Maven

I need an example to better understand of how to operate with these technologies. The interface will be HTML-based. The application will support all CRUD operations: create, read, update, delete. MySQL was used for the database.

Using Maven to Compile those Projects

The solution to that problem is quite simple, you just have to install maven (if you haven't done it already) and then compile the projects with e.g. "mvn eclipse:eclipse".

In the beginning, it takes maven approx. 30 minutes to download all dependencies and required files but then is able to compile it without any problems..

Taggings:

Fixing the Import Problem in Mule ESB

If you are programming with the MuleESB suite you are may be forced with the problem, that it is not able to find imports or throws "ClassNotFoundExceptions" after trying to compile your source code. Even after checking the class/build path and adding every jar to them, the problem still exists.

Adding a new maven mirror and overwrite the default behavior

At the user's home directory (e.g. C:\Users\\ on a Windows machine, or /Users/ on a Mac) there is a hidden directory, called .m2. Within this directory there is a settings.xml file. It may be that this file is not existing, than just create a new text file and save it as settings.xml

Withing the XML file, the following notation allows to manually specify a mirror: see attached image.

The reference of the xml elements is:
mirrorOf: The server ID of the repository being mirrored (e.g "central")
name: A name of the mirror (optional, just for documentation purpose)
url: The url of the mirror
id: A freely selectable id of the mirror entry

Please check the attached file for an example.

Taggings:

Adding different mirrors for maven / Mirror management in Apache maven

In some cases it may takes a lot of time during a maven build as it is necessary to download required dependecies from the maven central repo. Maven uses a mirror, located in California, United States for downlowding required maven dependencies during a maven bulid. Even there has been implemented a balance loader for the default maven mirror (http://repo1.maven.org) recently it might make sense to overwrite the default behavior and set the mirror manually cause of: -) A mirror is geographically closer and faster -) Use an internal mirror (e.g. repo - proxy) Maven allows different settings to improve speed and make the downloading process more efficient and fast. Depending on the workflow two different soultions can be an adequate approach for the problem, described above.

Twitter your project status with Maven.

Create a simple hello world Java Maven Project (this is already available as an maven-archetype) and configure it in a way so that every time you make a installation (via the cli command: mvn clean install) a new status update with the message "New Project Built Available" shows up on your twitter account.
Subscribe to Maven