Okay. After lot's of trial and error, I was able to move forward one
step. Below is what I did:
1. copied wagon-ftp-1.0-alpha-6.jar, oro-2.0.8.jar and
commons-net-1.4.1.jar to MAVEN_HOME/lib folder
2. Per the repository setup created a 
        <repository>
          <id>central</id>
          <name>Central Repository</name>
          <url>ftp://my_ip_address/</url>
          <layout>default</layout>
          <snapshots>
            <enabled>true</enabled>
          </snapshots>
        </repository>

Poining to my internal remote repository.

Now it starts by downloading from "my" central. However now it fails at
maven-site-plugin download with this message below:

[INFO] The plugin 'org.apache.maven.plugins:maven-site-plugin' does not
exist or
 no valid version could be found
[INFO]
------------------------------------------------------------------------
-
---
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
'org.apache.m
aven.plugins:maven-site-plugin' does not exist or no valid version could
be foun
d
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1247)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
(DefaultLifecycleExecutor.java:1483)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForP
ackaging(DefaultLifecycleExecutor.java:979)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycl
eMappings(DefaultLifecycleExecutor.java:943)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:450)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:303)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:270)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:139)
        at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        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 p
lugin 'org.apache.maven.plugins:maven-site-plugin' does not exist or no
valid ve
rsion could be found
        at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
uginVersion(DefaultPluginVersionManager.java:225)
        at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
uginVersion(DefaultPluginVersionManager.java:87)
        at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug
inManager.java:160)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1218)
        ... 18 more
[INFO]
------------------------------------------------------------------------
-



Any pointers on resolving this error?

Thanks,
Sandeep














-----Original Message-----
From: Dixit, Sandeep (ProSource Solutions)
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 16, 2006 11:59 AM
To: Maven Users List
Subject: RE: How to setup FTP-based internal repository ?

I have added it in my pom.xml inside <build>... The only diff is I am
using 1.0-alpha-6

Thanks,
Sandeep

-----Original Message-----
From: Brian E. Fox [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 16, 2006 11:39 AM
To: Maven Users List
Subject: RE: How to setup FTP-based internal repository ?

You need the ftp extension:
        <extensions>
                <extension>
        
<groupId>org.apache.maven.wagon</groupId>
                                <artifactId>wagon-ftp</artifactId>
                                <version>1.0-alpha-5</version>
                </extension>
        </extensions> 

-----Original Message-----
From: Dixit, Sandeep (ProSource Solutions)
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 16, 2006 10:03 AM
To: Maven Users List
Subject: How to setup FTP-based internal repository ?

How do I configure Internal Remote repository for FTP access? I am
getting:

 

[INFO] artifact org.apache.maven.plugins:maven-site-plugin: checking for
updates

 from central

[WARNING] repository metadata for: 'artifact
org.apache.maven.plugins:maven-site

-plugin' could not be retrieved from repository: central due to an
error: Unsupp

orted Protocol: 'ftp': Cannot find wagon which supports the requested
protocol:

ftp

[INFO] Repository 'central' will be blacklisted

 

 

As far as FTP access is concerned, I can do:

1)       ftp://ip_address/pub in the browser and it shows the directory.
I can traverse the repository from the browser. The FTP is enabled for
anonymous access. 

2)       From Windows command prompt, I can type ftp <ip_address> and
then enter anonymous/anonymous to log in successfully.

 

I have in my settings.xml

<settings>

    <server>

      <id>central</id>

      <username>anonymous</username>

      <password>anonymous</password>

    </server>

 

...

<profiles>

<profile>

    <id>myConfig-dev</id>

            <repositories>

        <repository>

              <id>central</id>

              <name>NCC Repository</name>

              <url>ftp://ip_address//pub</url>

              <snapshots>

            <enabled>true</enabled>

          </snapshots>

            </repository>

            </repositories>

    <activation>

      <property>

        <name>env</name>

        <value>dev</value>

      </property>

    </activation>

</profile>

<profiles>

 

  <activeProfiles>

    <activeProfile>myConfig-dev</activeProfile>

  </activeProfiles> 

 

<settings>

 

 

What am I missing here?

 

 

 

Thanks,

Sandeep

 


------------------------------------------------------------------------
-------------------
***National City made the following annotations
------------------------------------------------------------------------
-------------------
This communication is a confidential and proprietary business
communication.  It is intended solely for the use of the designated
recipient(s).  If this communication is received in error, please
contact the sender and delete this communication.
========================================================================
===================


---------------------------------------------------------------------
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]

Reply via email to