I don't understand why I'm getting such different behavior when I run mvn 
site-deploy from a dos box and then from eclipse, on the same machine.

From a dos box I get:

C:\users\rusty\workspaces\peoplelocator\people_locator>mvn -Ptest1-mysql 
--settings C:\users\rusty\maven2repository\settings.xml clean site-deploy
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building People Locator
[INFO]    task-segment: [clean, site-deploy]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory 
C:\users\rusty\workspaces\peoplelocator\people_locator\target
[INFO] Deleting file-set: agitar (included: [], excluded: [])
[INFO] [site:site]
[INFO] [site:deploy]
Using private key: C:\users\rusty\ssh_keys\id_dsa_2048_a_growl_openssh
scp://wss-test1.berkeley.edu/home/tomcat/webapps/people_locator/ - Session: 
Opened
Executing command: mkdir -p /home/tomcat/webapps/people_locator/.
Executing command: mkdir -p /home/tomcat/webapps/people_locator/.
Executing command: scp -t 
/home/tomcat/webapps/people_locator/./wagon7811306030457666038.zip
Uploading: ./wagon7811306030457666038.zip to 
scp://wss-test1.berkeley.edu/home/tomcat/webapps/people_locator/

##################
Transfer finished. 71485 bytes copied in 0.031 seconds
Executing command: cd /home/tomcat/webapps/people_locator/.; unzip -q -o 
wagon7811306030457666038.zip; rm -f wagon7811306030457666038.zip
Executing command: chmod -Rf g+w,a+rX /home/tomcat/webapps/people_locator/
scp://wss-test1.berkeley.edu/home/tomcat/webapps/people_locator/ - Session: 
Disconnecting
scp://wss-test1.berkeley.edu/home/tomcat/webapps/people_locator/ - Session: 
Disconnected
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10 seconds
[INFO] Finished at: Mon Mar 16 12:10:27 PDT 2009
[INFO] Final Memory: 29M/508M
[INFO] ------------------------------------------------------------------------
C:\users\rusty\workspaces\peoplelocator\people_locator>

With eclipse it's trying to do the reports, even though the pom.xml (the same 
one used for the above) has generateReports set to false;

           <plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-site-plugin</artifactId>
               <version>2.0</version>

               <configuration>
                   <generateReports>false</generateReports>
               </configuration>
           </plugin>
       </plugins>
   </build>

When I turn on debug output I get this as part of the output:

Our build plan is:

1. org.apache.maven.plugins:maven-clean-plugin:2.2:clean [executionId: default, 
phase: clean]
2. [fork start]
3.   
org.apache.maven.plugins:maven-project-info-reports-plugin:2.1:plugin-management
 [executionId: null, phase: None specified]
4.   
org.apache.maven.plugins:maven-project-info-reports-plugin:2.1:mailing-list 
[executionId: null, phase: None specified]
5.   org.apache.maven.plugins:maven-project-info-reports-plugin:2.1:cim 
[executionId: null, phase: None specified]
6.   
org.apache.maven.plugins:maven-project-info-reports-plugin:2.1:dependency-management
 [executionId: null, phase: None specified]
7.   org.apache.maven.plugins:maven-project-info-reports-plugin:2.1:license 
[executionId: null, phase: None specified]
8.   
org.apache.maven.plugins:maven-project-info-reports-plugin:2.1:project-team 
[executionId: null, phase: None specified]
9.   org.apache.maven.plugins:maven-project-info-reports-plugin:2.1:scm 
[executionId: null, phase: None specified]
10.   org.apache.maven.plugins:maven-project-info-reports-plugin:2.1:index 
[executionId: null, phase: None specified]
11.   
org.apache.maven.plugins:maven-project-info-reports-plugin:2.1:issue-tracking 
[executionId: null, phase: None specified]
12.   org.apache.maven.plugins:maven-project-info-reports-plugin:2.1:summary 
[executionId: null, phase: None specified]
13.   org.apache.maven.plugins:maven-project-info-reports-plugin:2.1:plugins 
[executionId: null, phase: None specified]
14.   
org.apache.maven.plugins:maven-project-info-reports-plugin:2.1:dependency-convergence
 [executionId: null, phase: None specified]
15.   
org.apache.maven.plugins:maven-project-info-reports-plugin:2.1:dependencies 
[executionId: null, phase: None specified]
16. [fork end]
17.   org.apache.maven.plugins:maven-site-plugin:2.0:site [executionId: 
default, phase: site]
18. [fork cleanup]
19. org.apache.maven.plugins:maven-site-plugin:2.0:deploy [executionId: 
default, phase: site-deploy]

With debug output turned off, here's the output in the eclipse console window:

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building People Locator
[INFO] [INFO] Id: people_locator:people_locator:war:0.1.2
[INFO] task-segment: [clean, site-deploy]
[INFO] ------------------------------------------------------------------------
[INFO] Attempting to resolve a version for plugin: 
org.apache.maven.plugins:maven-project-info-reports-plugin using meta-version: 
LATEST
[INFO] Using version: 2.1 of plugin: 
org.apache.maven.plugins:maven-project-info-reports-plugin
[INFO] [clean:clean]
[INFO] Deleting directory 
C:\users\rusty\workspaces\peoplelocator\people_locator\target
[INFO] Deleting file-set: agitar (included: [], excluded: [])
[INFO] [statemgmt:start-fork]
[INFO] Starting forked execution [fork id: 282377882]
[INFO] [project-info-reports:plugin-management]
[INFO] [project-info-reports:mailing-list]
[INFO] [project-info-reports:cim]
[INFO] [project-info-reports:dependency-management]
[INFO] [project-info-reports:license]
[INFO] [project-info-reports:project-team]
[INFO] [project-info-reports:scm]
[INFO] [project-info-reports:index]
[INFO] [project-info-reports:issue-tracking]
[INFO] [project-info-reports:summary]
[INFO] [project-info-reports:plugins]
[WARNING]
DEPRECATED: Binding aggregator mojos to lifecycle phases in the POM is 
considered dangerous.
This feature has been deprecated. Please adjust your POM files accordingly.

Offending mojo:

org.apache.maven.plugins:maven-project-info-reports-plugin:2.1:dependency-convergence

Project: people_locator:people_locator:war:0.1.2
POM File: C:\users\rusty\workspaces\peoplelocator\people_locator\pom.xml

[INFO] [project-info-reports:dependency-convergence]
[INFO] [project-info-reports:dependencies]
(hangs here trying to do net download or something)

You can see in the output from within eclipse before the clean:clean there are 
2 extra lines about the maven-project-info-reports-plugin and then after 
deleting agitar it does the reports stuff.

Any ideas what's going on?


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

   http://xircles.codehaus.org/manage_email


Reply via email to