PradeepPillai Pradeep

Ranch Hand
+ Follow
since Nov 15, 2005
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by PradeepPillai Pradeep

I have a very simple / basic Web app.
When I run

>mvn deploy -e
I am seeing the following error in the console.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project TestWebApp: Deployment failed: repository element was not specified in the POM inside
distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter
-> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project TestWebApp: Deployment failed: reposi
tory element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(
at org.apache.maven.DefaultMaven.doExecute(
at org.apache.maven.DefaultMaven.doExecute(
at org.apache.maven.DefaultMaven.execute(
at org.apache.maven.cli.MavenCli.execute(
at org.apache.maven.cli.MavenCli.doMain(
at org.apache.maven.cli.MavenCli.main(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(
at org.codehaus.plexus.classworlds.launcher.Launcher.main(
Caused by: org.apache.maven.plugin.MojoExecutionException: Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::
layout::url parameter
at org.apache.maven.plugin.deploy.DeployMojo.getDeploymentRepository(
at org.apache.maven.plugin.deploy.DeployMojo.execute(
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
... 20 more

Below is the relavent portion from my settings.xml file. Can someone help me find out what is the issue?
8 years ago
thank you for your replay. I would like to know where I can find it in the eclipse settings / preference.
8 years ago
I have M2Eclipse ( installed for Eclipse Mars. Which maven does it use when you do a maven build or create a maven project? How can I find the default maven it uses? I am assuming I can find the maven it uses somewhere in the settings. Does it use the maven at the system environment variables or does it use the maven of its own?
8 years ago
Thanks for the reply. So if I have 3 application – App1, App2, and App3 - on that java 7 jvm, I can have:
App1 compiled using java 7,
App2 compiled using java 6, and
App 3 compiled using java 5, correct?
8 years ago
I have a jvm in production with multiple applications on it. I have upgraded that jvm with java 7. I am thinking of upgrading one application at a time to java 7, meaning recompiling each application using java 7 and deploying to production at DIFFERENT times. I believe applications with different java versions can co-exist in jvm version 7. Please correct me if I am wrong.
8 years ago
I am an experienced Java/J2EE developer. However I have never used spring framework (I have experience using many other framework such as Struts and ATG). Can somebody suggest a book I can read and learn – in 1 or 2 weeks - how to install and set up spring and hibernate? I am looking for a book that explains how to get started and explain with some examples. I am starting a job where they use spring and hibernate. I believe I can pick up the rest at work as I go.
Thanks and I really appreciate your help.
10 years ago
This solution works generally. One problem I see is that, I have all the “*.sql” files in the release folder, say release\2.1\sql\. So when there are no files in that folder, my build script throws an error and stops since my onerror continue is for each sql queries. Is there any simple way to find if there is any file exists in the release\2.1\sql\ folder before I proceed to execute these scripts at all?
Thank in advance.
11 years ago
Thank you. Even though my intention was to override some methods to find out if the table already exists before executing a create table command for example; this should suffice for now.
11 years ago
I want to use ant to run sql scripts for a build. I grab all these sql scripts files from a specific folder, so I know how to grab them and run them using the sql ant task. But I want to perform this task little different.
1. I want to grab the user id, password and url from a file (data source file).
2. If the script is throwing some error, I want to log that error/display the error in the console and move on.
3. I want to perform the above steps only if I am on my local machine/or in a predefined environment.
4. Finally, I want to jar-up the new class and add to the class path.
I haven’t done much in terms of overriding the ant task or extending it to perform additional tasks. So please give me some ideas of how to do this. I really appreciate any help on this.
11 years ago
We have a javascript file called "sitestat.js". We have it included in many jsp files that are reusable and we construct other main jsp files using these reusable jsps. The problem is that as a result of including these reusable jsps in other jsps, we ended up including "sitestat.js" multiple times in a jsp. Is there any way to load a jsp file conditionally only if it is not loaded already?
12 years ago
Does this book discuss spring 3.x? Can some one suggest a good book to learn spring 3.x, or the latest spring?
13 years ago
I think that is a good idea.
13 years ago
I think the keystore folder should have been in the classes directory. Looks like it's working if it's in the classes directory.
Thank you for helping.
13 years ago
I have a java class that uses the file "keystore\test.keystore" in a web application. This keystore file is used to encrypt and decrypt the credit card on my web site. But when the method to encrypt the credit is
getting called I am getting the following error.

[STDOUT] keystore\test.keystore (The system cannot find the path specified)

I guess the file has to be on the server and its not finding it where it supposed to be.
Where should I copy this file on to the server? I am currently testing this in my localhost and I use a jboss server.
13 years ago