Hi Salleem,

one thing was that some files were corruppted, i had to delete them by hand.
The other thing is a bug in the wagon implementation causing an endless loop, my solution was to remove the <mirror> section from the ~/.m2/settings.xml config file. I added this mirrors directly in the artifactory configuration with some exclude/include filters.
In the settings.xml file i added a profile section, activated by default, with a repository and pluginRepository section, see below.

After this 'mvn dependency:sources' would do it

hope this helps
Roland.

====================================================================
<settings>
    <localRepository>C:\MavenRepo</localRepository>
    <usePluginRegistry>true</usePluginRegistry>
    <servers>
        <server>
            <id>dav</id>
            <username>user</username>
            <password>pass</password>
        </server>
    </servers>
    <!--mirrors>
    </mirrors-->
    <profiles>
        <profile>
            <id>defaultProfile</id>
            <activation>
                <activeByDefault />
            </activation>
            <repositories>
                <repository>
                    <id>central</id>
                    <name>Repository for builds using maven-proxy urutu</name>
                    <url>http://your.artifactory-repo.net:8081/artifactory/local-repo</url>
                    <layout>default</layout>
                    <releases>
                        <enabled>true</enabled>
                        <updatePolicy>always</updatePolicy>
                        <checksumPolicy>warn</checksumPolicy>
                    </releases>
                    <snapshots>
                        <enabled>true</enabled>
                        <updatePolicy>always</updatePolicy>
                        <checksumPolicy>warn</checksumPolicy>
                    </snapshots>
                </repository>
            </repositories>
            <pluginRepositories>
                <pluginRepository>
                    <id>central</id>
                    <name>MTG Intern Repository</name>
                    <url>http://your.artifactory-repo.net:8081/artifactory/local-repo</url>
                    <layout>default</layout>
                    <releases>
                        <enabled>true</enabled>
                        <updatePolicy>always</updatePolicy>
                        <checksumPolicy>warn</checksumPolicy>
                    </releases>
                    <snapshots>
                        <enabled>true</enabled>
                        <updatePolicy>always</updatePolicy>
                        <checksumPolicy>warn</checksumPolicy>
                    </snapshots>
                </pluginRepository>
            </pluginRepositories>
        </profile>
    </profiles>
    <activeProfiles>
        <activeProfile>defaultProfile</activeProfile>
    </activeProfiles>
</settings>
====================================================================


zalym schrieb:
Hey Roland,

I am experiencing the same problem.  I am using Artifactory.  How did the
dependency tool help you?  Please let me know.

Regards,
Saleem


Roland Klein wrote:
  
Hi all,

i am using m2eclipse v.0.0.11-rev.231 on a W2K system with maven 2.0.5.

If i enable download sources in the preferences dialog, and do a clean
rebuild of a project, then 
the plugin tries to download the source artifacts from our remote
repository (maven-proxy).
But during the rebuild the plugin get get caught in an infinite loop
trying to download the artifact.
So i tried to get the artifact by hand and made a wget for i.e.
commons-lang-2.3 against our 
maven-proxy, and it worked the proxy got the artifact from ibiblio and
returned it to my workstation.

My question now is, how can i force maven to download the source/javadoc
artifacts from the commandline?
I tried dependency:sources but this didn't work, because it didn't
download the artifacts.

Am i right, that the maven cli using the maven embedder?
Then this should be possible

Roland

-- 
Roland Klein
Tel: +49 40 65803 209
Fax: +49 40 65803 392
[EMAIL PROTECTED]

MTG Marinetechnik GmbH - Wandsbeker Koenigstr. 62 - D 22041 Hamburg

GF Dipl.-Ing. Ullrich Keil
Handelsregister: Abt. B Nr. 11 500 - Amtsgericht Hamburg Abt. 66
USt.-IdNr.: DE 1186 70571


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email



    

  


-- 
Roland Klein
Tel: +49 40 65803 209
Fax: +49 40 65803 392
[EMAIL PROTECTED]

MTG Marinetechnik GmbH - Wandsbeker Koenigstr. 62 - D 22041 Hamburg

GF Dipl.-Ing. Ullrich Keil
Handelsregister: Abt. B Nr. 11 500 - Amtsgericht Hamburg Abt. 66
USt.-IdNr.: DE 1186 70571

--------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email

Reply via email to