Issue Details (XML | Word | Printable)

Key: MPSITE-22
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Arnaud Heritier
Reporter: Arnaud Heritier
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Maven 1.x Site Plugin

site:ftpdeploy does nothing

Created: 01/Feb/05 08:13 AM   Updated: 11/Jun/05 12:58 AM   Resolved: 11/Jun/05 12:58 AM
Return to search
Component/s: plugin
Affects Version/s: 1.5.2, 1.6
Fix Version/s: 1.6.1

Time Tracking:
Not Specified

File Attachments: 1. Text File MPSITE-22-full-log.txt (16 kB)
2. Text File MPSITE-22.diff (2 kB)

Environment: Maven 1.0.2 + site plugin 1.6 + Windows XP (for maven) + JDK 1.4.2_06 + AIX 5.2 (web server)


 Description  « Hide

If I try to publish the site with ftp nothing happens.
Here is the trace :
xdoc:init:

site:init:

site:local-deploy-init:
[echo]
site clean = false
siteDirectory = /XXXXX/intranet

site:remote-deploy-init:
[echo]
siteAddress = XXXXX
siteUsername = XXXXX

attaining goal build:end

The same problem was reported on the users list.



Arnaud Heritier added a comment - 01/Feb/05 08:20 AM

maven -X log


Jason Taft added a comment - 07/Feb/05 10:14 AM

Maven 1.0.2 is using ANT 1.5.3-1, which depends on (among others) the NetComponents.jar (http://www.savarese.org/oro/index.html).

Looking at your ${maven.home}/bin/forehead.conf file, you will see that the [root] classloader loads the ANT libraries, while the [root.maven] classloader is loading all other JARs in the lib and lib/endorsed directories.

Since classloaders can only see up the class loading hierarchy, the ANT classes can't see those classes loaded as a result of the <dependencies> tags within your projects.

SOLUTION (may be others?):
Get a copy of NetComponents.jar and load it in the [root] classloader

Note: Mave doesn't use the environmental CLASSPATH variable, so adding NetComponents.jar there won't work.


Jason Taft added a comment - 08/Feb/05 09:10 AM

I couldn't get the NetComponents.jar dependency to load into the root classloader using the following in my <dependency> tag in the POM:

<properties>
<classloader>root</classloader>
</properties>

Does anyone know if this dependecy property is valid and implemented?


Jason Taft added a comment - 08/Feb/05 09:10 AM

I couldn't get the NetComponents.jar dependency to load into the root classloader using the following in my <dependency> tag in the POM:

<properties>
<classloader>root</classloader>
</properties>

Does anyone know if this dependecy property is valid and implemented?


Arnaud Heritier added a comment - 08/Feb/05 04:40 PM

Yes it is supposed to work.
It's often used in plugins.


Geoffrey De Smet added a comment - 13/Apr/05 11:12 AM

site:ftpdeploy does nothing with me either.
No exception, no output, no ftping.

Using the ftp tag in maven.xml doesn't work either.

Local ftp from the command line works.


Arnaud Heritier added a comment - 01/Jun/05 09:30 AM

Fix for maven 1.1 (using ant 1.6.4)


Arnaud Heritier added a comment - 01/Jun/05 06:14 PM

Fixed for maven 1.1.


Arnaud Heritier added a comment - 10/Jun/05 06:05 AM

It must be documented that ftpdeploy will work only with maven 1.1. It is impossible to make it work with maven 1.0 because of the need of netComponents.