Message:
The following issue has been closed.
Resolver: Brett Porter
Date: Fri, 25 Jun 2004 1:47 PM
works for me now. If you still have this problem, please post your maven.repo.*
settings.
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MPARTIFACT-1
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MPARTIFACT-1
Summary: wrong paths for file:// deployment
Type: Bug
Status: Closed
Priority: Major
Resolution: FIXED
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: maven-artifact-plugin
Fix Fors:
1.1
Versions:
1.0
Assignee: Brett Porter
Reporter: Frank Wagner
Created: Fri, 29 Aug 2003 8:54 AM
Updated: Fri, 25 Jun 2004 1:47 PM
Description:
I am looking at Maven HEAD.
The org.apache.maven.deploy.deployers.FileDeployer is a little confused about the
destination file path.
It generates the offset directory twice:
Instead of copying a file to
<repository>/<group>/<type>/
it uses
<repository>/<group>/<type>s/<group>/<type>s
The current code in deploy(DeployRequest) is
...
destFile = new File(destFile, request.dirname());
if (!destFile.exists())
{
destFile.mkdirs();
}
destFile = new File(destFile, request.getDestFile());
...
That should be replaced by something like:
...
if (destFile.getParentFile()!=null &&
!destFile.getParentFile().exists())
{
destFile.getParentFile().mkdirs();
}
destFile = new File(destFile, request.getDestFile());
...
Which fixed the problem for me.
Tschau,
Frank
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]