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

 

Reply via email to