Thanks to Henry, Tamás I have figured out the problem , the reason was I need to block the internet acces by disabling any proxy setting (in settings.xml), and mirror the 'central' to http://somednsname:8080/px-webapp/repository/inhouse. Also I need to be very much clear on the maven-metadata.xml in the repository for all the plugins and dependencies.
It worked!! Regards, Nishant Sonar -----Original Message----- From: Tamás Cservenák [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 11, 2007 12:52 PM To: Maven Users List Subject: Re: FW: Using Proximity Corporate Repository doesnt download plugins/dependencies Hello all, yes, i just wanted to correct Sonar, just as Heinrich did. So, you have to fix your settings.xml and it should work as you expected! Thanks, ~t~ On 9/11/07, Heinrich Nirschl <[EMAIL PROTECTED]> wrote: > If you use the standard configuration, the url for the central mirror should > be > <url>http://somednsname:8080/px-webapp/repository/public</url> > instead of > <url>http://somednsname:8080/px-webapp/repository/inhouse</url> > > Hope that helps, > > - Henry > > On 9/11/07, Wayne Fay <[EMAIL PROTECTED]> wrote: > > Perhaps Tamas will reply. I know he had a hardware failure and so the > > normal Proximity support channels are not available. > > > > Wayne > > > > On 9/10/07, Sonar, Nishant <[EMAIL PROTECTED]> wrote: > > > Hello > > > > > > > > > > > > I am trying to setup a corporate repository through proximity. Her's > > > what I did > > > > > > > > > > > > Installed proximity on apache by deploying the px-webap. Now I can > > > browse to the proximity site through apache > > > http://localhost:8080/px-webap. I will be using this site to host my > > > repository in a way like > > > > > > http://somednsname:8080/px-webapp/repository/inhouse and will use it as > > > to access repository from poms and will be making this entry in the > > > setting.xml > > > > > > here's what in my setting.xml > > > > > > > > > > > > <!-Settings .xml--> > > > > > > <settings> > > > > > > <localRepository>c:\Java\maven-2.0.6\repository</localRepository> > > > > > > > > > > > > <!-- proxies > > > > > > | This is a list of proxies which can be used on this > > > machine to connect to the network. > > > > > > | Unless otherwise specified (by system property or > > > command-line switch), the first proxy > > > > > > | specification in this list marked as active will be used. > > > > > > |--> > > > > > > <proxies> > > > > > > <!-I Intentionally commented proxy to not hit outside world --> > > > > > > > > > > > > <!--<proxy> > > > > > > <active>true</active> > > > > > > <protocol>http</protocol> > > > > > > <host>single-proxy.wachovia.net</host> > > > > > > <port>8080</port> > > > > > > </proxy> > > > > > > --> > > > > > > </proxies> > > > > > > //mirrored central to corporate repo > > > > > > <mirrors> > > > > > > <mirror> > > > > > > <id>CentralMirror</id> > > > > > > <name>Proxied Central REPO</name> > > > > > > > > > <url>http://somednsname:8080/px-webapp/repository/inhouse</url> > > > > > > <mirrorOf>central</mirrorOf> > > > > > > </mirror> > > > > > > </mirrors> > > > > > > <profiles> > > > > > > <profile> > > > > > > <id>Sample</id> > > > > > > <repositories> > > > > > > <repository> > > > > > > <id>Corporate</id> > > > > > > <name>Local Corporate Repo</name> > > > > > > <url> > > > > > > > > > http://somednsname:8080/px-webapp/repository/inhouse > > > > > > </url> > > > > > > <snapshots> > > > > > > <enabled>true</enabled> > > > > > > </snapshots> > > > > > > </repository> > > > > > > </repositories> > > > > > > <pluginRepositories> > > > > > > <pluginRepository> > > > > > > <id>Corporate</id> > > > > > > <name>Local Corporate Repo</name> > > > > > > <url> > > > > > > http:// > > > somednsname:8080/px-webapp/repository/inhouse > > > > > > </url> > > > > > > <releases> > > > > > > <enabled>true</enabled> > > > > > > <updatePolicy>never</updatePolicy> > > > > > > </releases> > > > > > > <snapshots> > > > > > > <enabled>true</enabled> > > > > > > </snapshots> > > > > > > </pluginRepository> > > > > > > </pluginRepositories> > > > > > > </profile> > > > > > > </profiles> > > > > > > <activeProfiles> > > > > > > <activeProfile>Sample</activeProfile> > > > > > > </activeProfiles> > > > > > > </settings> > > > > > > > > > > > > I am getting following output when running build > > > > > > > > > > > > > > > > > > + Error stacktraces are turned on. > > > > > > [INFO] Scanning for projects... > > > > > > [INFO] > > > ------------------------------------------------------------------------ > > > ---- > > > > > > [INFO] Building simpleWebService > > > > > > [INFO] task-segment: [clean, install] > > > > > > [INFO] > > > ------------------------------------------------------------------------ > > > ---- > > > > > > [INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking > > > for updates from Corporate > > > > > > [INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking > > > for updates from central > > > > > > [INFO] > > > ------------------------------------------------------------------------ > > > > > > [ERROR] BUILD ERROR > > > > > > [INFO] > > > ------------------------------------------------------------------------ > > > > > > [INFO] The plugin 'org.apache.maven.plugins:maven-clean-plugin' does not > > > exist or no valid version could be found > > > > > > [INFO] > > > ------------------------------------------------------------------------ > > > > > > [INFO] Trace > > > > > > org.apache.maven.lifecycle.LifecycleExecutionException: The plugin > > > 'org.apache.maven.plugins:maven-clean-plugin' does not exist or no valid > > > version could be found > > > > > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Default > > > LifecycleExecutor.java:1286) > > > > > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(De > > > faultLifecycleExecutor.java:1522) > > > > > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPack > > > aging(DefaultLifecycleExecutor.java:1016) > > > > > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMa > > > ppings(DefaultLifecycleExecutor.java:980) > > > > > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL > > > ifecycleExecutor.java:458) > > > > > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle > > > Failures(DefaultLifecycleExecutor.java:311) > > > > > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( > > > DefaultLifecycleExecutor.java:278) > > > > > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec > > > ycleExecutor.java:143) > > > > > > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) > > > > > > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) > > > > > > at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) > > > > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > > > > at > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav > > > a:39) > > > > > > at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor > > > Impl.java:25) > > > > > > at java.lang.reflect.Method.invoke(Method.java:585) > > > > > > at > > > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > > > > > > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > > > > > > at > > > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > > > > > > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > > > > > > Caused by: > > > org.apache.maven.plugin.version.PluginVersionNotFoundException: The > > > plugin 'org.apache.maven.plugins:maven-clean-plugin' does not exist or > > > no valid version could be found > > > > > > at > > > org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePlugi > > > nVersion(DefaultPluginVersionManager.java:228) > > > > > > at > > > org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePlugi > > > nVersion(DefaultPluginVersionManager.java:90) > > > > > > at > > > org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginM > > > anager.java:166) > > > > > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Default > > > LifecycleExecutor.java:1257) > > > > > > ... 18 more > > > > > > [INFO] > > > ------------------------------------------------------------------------ > > > > > > [INFO] Total time: < 1 second > > > > > > [INFO] Finished at: Mon Sep 10 11:38:30 EDT 2007 > > > > > > [INFO] Final Memory: 1M/2M > > > > > > [INFO] > > > ------------------------------------------------------------------------ > > > > > > > > > > > > > > > > > > > > > > > > MY PROJECT SHOULD NOT HIT OUTER WORLD REPOSITORIES/PLUGINS AT ALL AND > > > USE THE PROXIMITY FOR EVERYTHING IT NEEDS. > > > > > > > > > > > > I am also trying to host a plain web application , other than proximity, > > > just including all ependencies, plugins in a war and deploy. > > > > > > > > > > > > Please help..Thanks in Advance for any help > > > > > > > > > > > > Regards, > > > > > > Nishant Sonar > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]