CURL for RESTful Web Services

October 7, 2009 Leave a comment

As easy as:

% curl -X GET -H “My-Header-Here: value” http://localhost/item/id?param=value

Man pages and tutorial at:

http://curl.haxx.se/

Cygwin port is available as well.

Categories: util Tags: ,

Deploy maven artifacts to public repository

September 29, 2009 Leave a comment

Use following command to deploy third-party artifact to public repository:

mvn deploy:deploy-file -Dfile=application-0.0.1.jar -DgroupId=com.company -DartifactId=application -Dversion=0.0.1 -Dpackaging=jar -Durl=http://company.com/repository/url/thirdparty -DrepositoryId=repo-id

Source:  http://maven.apache.org/plugins/maven-deploy-plugin/usage.html

Categories: util Tags:

Install Maven artifacts to local repository

September 29, 2009 Leave a comment

To install maven artifact to local repository without affecting public repository you will do the following thing:

mvn install:install-file -DgroupId=com.company -DartifactId=application -Dversion=0.0.1 -Dfile=application-0.0.1.jar -Dpackaging=jar -DgeneratePom=true

Source: http://maven.apache.org/plugins/maven-install-plugin/usage.html

Categories: util Tags:

Hello world!

September 29, 2009 1 comment

Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!

Thanks WordPress for your charity. Now let me start my notes. No deep thoughts or investigations, just quick tips and tricks to remember instead of writing them down to text file.

Categories: Uncategorized
Follow

Get every new post delivered to your Inbox.