How do I display the effective settings of a project?
Author: Deron Eriksson
Description: This tutorial describes how to display the effective settings for a project.
Tutorial created using:
Windows Vista || JDK 1.6.0_04 || Eclipse Web Tools Platform 2.0.1 (Eclipse 3.3.1)
The "effective settings" of a project represent the actual settings that are present for a project. These are the settings that represent the resolution of combining the global settings.xml file and the user settings.xml file. I created an EclipseSW external tool configuration to make it easy to see the effective settings for a project by calling the help:effective-settings goal.
The external tools configuration window is shown here: ![]() To execute the external tool configuration, first I'll select the project that I'm interested in, "mytest". ![]() Then, I'll select the "mvn help~effective-settings" external tool, which executes the "help:effective-settings" goal on the selected project. ![]() The console output displaying the effective settings is shown here: Console output from 'mvn help:effective-settings'[INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'help'. [INFO] ------------------------------------------------------------------------ [INFO] Building mytest [INFO] task-segment: [help:effective-settings] (aggregator-style) [INFO] ------------------------------------------------------------------------ [INFO] [help:effective-settings] [INFO] Effective settings: <?xml version="1.0"?><settings> <localRepository>/dev/m2repo</localRepository> <servers> <server> <username>test</username> <password>test</password> <id>mytomcat</id> </server> <server> <username>admin</username> <password>admin1</password> <id>archiva.internal</id> </server> <server> <username>admin</username> <password>admin1</password> <id>archiva.snapshots</id> </server> <server> <username>repouser</username> <password>repopwd</password> <id>fromGlobalSettings</id> </server> </servers> <mirrors> <mirror> <mirrorOf>central</mirrorOf> <url>http://192.168.1.7:8081/archiva/repository/internal</url> <id>archiva.central</id> </mirror> </mirrors> </settings> [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Sat Feb 09 21:35:37 PST 2008 [INFO] Final Memory: 2M/5M [INFO] ------------------------------------------------------------------------ (Continued on page 2) Related Tutorials: |