PradeepPillai Pradeep

Ranch Hand
+ Follow
since Nov 15, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
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(MojoExecutor.java:216)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
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(DeployMojo.java:235)
at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:118)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 20 more

Below is the relavent portion from my settings.xml file. Can someone help me find out what is the issue?
6 years ago
thank you for your replay. I would like to know where I can find it in the eclipse settings / preference.
6 years ago
I have M2Eclipse (https://www.eclipse.org/m2e/) 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?
6 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?
6 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.
6 years ago
Hi,
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.
-Pradeep
8 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.
9 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.
9 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.
9 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?
10 years ago
JSP
Does this book discuss spring 3.x? Can some one suggest a good book to learn spring 3.x, or the latest spring?
11 years ago
I think that is a good idea.
Thanks.
11 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.
11 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] java.io.FileNotFoundException: 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.
11 years ago