Thanks, Dan. Switching to maven 2.1. fixes this issue.

Jane


Dan Tran wrote:
please use maven 2.1, its built in wagon-file has this fix

-D

On Mon, Jun 15, 2009 at 6:12 AM, Martin Gainty<mgai...@hotmail.com> wrote:
http://mojo.codehaus.org/wagon-maven-plugin/usage.html

the provided example specifies java.io.tmpdir (folder)
 mvn org.codehaus.mojo:wagon-maven-plugin:1.0-beta-1:merge-maven-repos \
    -Dwagon.source=http://people.apache.org/~olamy/staging-repo \
    -Dwagon.target=scp://localhost/$LOGNAME/maven-repo \
    -Djava.io.tmpdir=target
Martin
______________________________________________
Verzicht und Vertraulichkeitanmerkung
 Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.






Date: Mon, 15 Jun 2009 03:48:59 -0700
From: jane.yo...@sun.com
Subject: merge-maven-repos from local file system
To: users@maven.apache.org

Hi,

I am trying to stage the deployment to a repository on the local file
system and then merge to a remote repository.
Steps:

mvn deploy 
-DaltDeploymentRepository=stage::default::file:///export/stage-repository
mvn org.codehaus.mojo:wagon-maven-plugin:1.0-beta-1:merge-maven-repos 
-Dwagon.source="file:///export/stage-repository 
-Dwagon.target="scpexe://hostname/export/remote-repository" 
-Dwagon.targetId=ssh-repository -s /export/setting.xml


No problem with the deployment but when executing  merge-maven-repos
goal, I got the following error:

Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Path is
not a directory:
org/glassfish/build/build/3.0-SNAPSHOT/build-3.0-SNAPSHOT.pom
        at
org.apache.maven.wagon.providers.file.FileWagon.getFileList(FileWagon.java:235)
        at
org.codehaus.mojo.wagon.shared.WagonDirectoryScanner.scandir(WagonDirectoryScanner.java:283)
        at
org.codehaus.mojo.wagon.shared.WagonDirectoryScanner.scandir(WagonDirectoryScanner.java:322)
        at
org.codehaus.mojo.wagon.shared.WagonDirectoryScanner.scandir(WagonDirectoryScanner.java:322)
        at
org.codehaus.mojo.wagon.shared.WagonDirectoryScanner.scandir(WagonDirectoryScanner.java:322)
        at
org.codehaus.mojo.wagon.shared.WagonDirectoryScanner.scandir(WagonDirectoryScanner.java:322)
        at
org.codehaus.mojo.wagon.shared.WagonDirectoryScanner.scandir(WagonDirectoryScanner.java:322)
        at
org.codehaus.mojo.wagon.shared.WagonDirectoryScanner.scandir(WagonDirectoryScanner.java:322)
        at
org.codehaus.mojo.wagon.shared.WagonDirectoryScanner.scan(WagonDirectoryScanner.java:245)
        at
org.codehaus.mojo.wagon.shared.DefaultWagonDownload.getFileList(DefaultWagonDownload.java:51)
        at
org.codehaus.mojo.wagon.shared.DefaultWagonDownload.download(DefaultWagonDownload.java:59)
        at
org.codehaus.mojo.wagon.shared.DefaultMavenRepoMerger.merge(DefaultMavenRepoMerger.java:80)
        at
org.codehaus.mojo.wagon.MergeMavenRepoMojo.copy(MergeMavenRepoMojo.java:42)
        at
org.codehaus.mojo.wagon.AbstractCopyMojo.execute(AbstractCopyMojo.java:49)
        ... 18 more

Any idea why wagon-maven-plugin is trying to  get a file list from a file?
I'm using Maven version 2.0.10 and JDK 1.6.

Thanks,
Jane


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

_________________________________________________________________
Hotmail® has ever-growing storage! Don’t worry about storage limits.
http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage_062009

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


Reply via email to