Hi Yunhee, See the schema for settings.xml for Maven here:
http://maven.apache.org/settings.html Then you can follow that format and then add a repository definition like I gave you to it and then you can try again. Good luck! Cheers, Chris On Jul 23, 2012, at 8:55 AM, YunHee Kang wrote: > Hi Chris, > > Actually there is no file $HOME/.m2/settings.xml. So I created the > file and then ran the mvn command. > But I got the error caused by wrong root element in the XML file. > > $ mvn install > Error reading settings.xml: Expected root element 'settings' but found > 'repositories' (position: START_TAG seen <repositories>... @1:14) > Line: 1 > Column: 14 > > I just checked the version of mvn executed above. > > $ mvn -version > Apache Maven 2.2.1 (rdebian-6) > Java version: 1.6.0_31 > Java home: /usr/local/jdk1.6.0_31/jre > Default locale: en_US, platform encoding: UTF-8 > OS name: "linux" version: "3.0.0-12-generic" arch: "i386" Family: "unix" > > Please let me know what the problem is and how to fix it. > > Thanks, > Yunhee > > > 2012/7/23 Mattmann, Chris A (388J) <chris.a.mattm...@jpl.nasa.gov>: >> Hi Yunhee, >> >> Can you try adding the following repository definition to your >> $HOME/.m2/settings.xml >> file? >> >> <repositories> >> <repository> >> <id>oodt-m2-repo</id> >> <name>OODT Maven2 Repository</name> >> <url>http://oodt.jpl.nasa.gov/download/private</url> >> <releases> >> <enabled>true</enabled> >> </releases> >> <snapshots> >> <enabled>true</enabled> >> </snapshots> >> </repository> >> </repositories> >> >> Then try running mvn install again? >> >> Cheers, >> Chris >> >> On Jul 23, 2012, at 1:51 AM, YunHee Kang wrote: >> >>> Hi Chris, >>> >>> Unfortunately I didn't install the oodt-pushpull-plugins. >>> The following is the message I got when running commands "svn" and "mvn". >>> >>> yhkang@yunhee-kisti:~$ svn export >>> http://svn.codespot.com/a/apache-extras.org/oodt-pushpull-plugins/trunk/ >>> oodt-pushpull-plugins >>> A oodt-pushpull-plugins >>> A oodt-pushpull-plugins/LICENSE.txt >>> A oodt-pushpull-plugins/depfixer >>> A oodt-pushpull-plugins/depfixer/src >>> A oodt-pushpull-plugins/depfixer/src/main >>> A oodt-pushpull-plugins/depfixer/src/main/ant >>> A oodt-pushpull-plugins/depfixer/src/main/ant/jvftpdownload.xml >>> A oodt-pushpull-plugins/depfixer/pom.xml >>> A oodt-pushpull-plugins/core >>> A oodt-pushpull-plugins/core/src >>> A oodt-pushpull-plugins/core/src/main >>> A oodt-pushpull-plugins/core/src/main/java >>> A oodt-pushpull-plugins/core/src/main/java/org >>> A oodt-pushpull-plugins/core/src/main/java/org/apacheextras >>> A oodt-pushpull-plugins/core/src/main/java/org/apacheextras/oodt >>> A oodt-pushpull-plugins/core/src/main/java/org/apacheextras/oodt/cas >>> A >>> oodt-pushpull-plugins/core/src/main/java/org/apacheextras/oodt/cas/pushpull >>> A >>> oodt-pushpull-plugins/core/src/main/java/org/apacheextras/oodt/cas/pushpull/protocol >>> A >>> oodt-pushpull-plugins/core/src/main/java/org/apacheextras/oodt/cas/pushpull/protocol/ftp >>> A >>> oodt-pushpull-plugins/core/src/main/java/org/apacheextras/oodt/cas/pushpull/protocol/ftp/JvFtpClientFactory.java >>> A >>> oodt-pushpull-plugins/core/src/main/java/org/apacheextras/oodt/cas/pushpull/protocol/ftp/Ftp4CheFtpClient.java >>> A >>> oodt-pushpull-plugins/core/src/main/java/org/apacheextras/oodt/cas/pushpull/protocol/ftp/JvFtpClient.java >>> A >>> oodt-pushpull-plugins/core/src/main/java/org/apacheextras/oodt/cas/pushpull/protocol/ftp/Ftp4CheFtpClientFactory.java >>> A oodt-pushpull-plugins/core/pom.xml >>> A oodt-pushpull-plugins/pom.xml >>> Exported revision 8. >>> yhkang@yunhee-kisti:~$ cd oodt-pushpull-plugins/ >>> yhkang@yunhee-kisti:~/oodt-pushpull-plugins$ mvn install >>> [INFO] Scanning for projects... >>> [INFO] Reactor build order: >>> [INFO] Apache CAS PushPull Plugins Dependency Fixer >>> [INFO] CAS Push-Pull-Framework Plugins Core Libs >>> [INFO] Apache OODT CAS PushPull Plugins >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] Building Apache CAS PushPull Plugins Dependency Fixer >>> [INFO] task-segment: [install] >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] [antrun:run {execution: jvftpdownload}] >>> [INFO] Executing tasks >>> >>> main: >>> >>> all: >>> [mkdir] Created dir: >>> /home/yhkang/oodt-pushpull-plugins/depfixer/target/jvftp >>> [get] Getting: >>> http://downloads.sourceforge.net/project/jvftp/jvftp/0.73%20for%20java%201.5%2B/jvftp-bin-0_73.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fjvftp%2F&ts=1325111584&use_mirror=iweb >>> [get] To: >>> /home/yhkang/oodt-pushpull-plugins/depfixer/target/jvftp/jvftp-bin-0_73.zip >>> [get] >>> http://downloads.sourceforge.net/project/jvftp/jvftp/0.73%20for%20java%201.5%2B/jvftp-bin-0_73.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fjvftp%2F&ts=1325111584&use_mirror=iweb >>> moved to >>> http://iweb.dl.sourceforge.net/project/jvftp/jvftp/0.73%20for%20java%201.5%2B/jvftp-bin-0_73.zip >>> [unzip] Expanding: >>> /home/yhkang/oodt-pushpull-plugins/depfixer/target/jvftp/jvftp-bin-0_73.zip >>> into /home/yhkang/oodt-pushpull-plugins/depfixer/target/jvftp/jvftp-0_73 >>> [move] Moving 1 file to >>> /home/yhkang/oodt-pushpull-plugins/depfixer/target/jvftp/jvftp-0_73/jvftp/lib >>> [INFO] Executed tasks >>> [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] >>> [INFO] [install:install {execution: default-install}] >>> [INFO] Installing /home/yhkang/oodt-pushpull-plugins/depfixer/pom.xml >>> to >>> /home/yhkang/.m2/repository/org/apacheextras/oodt/oodt-pushpull-plugins-depfixer/0.4/oodt-pushpull-plugins-depfixer-0.4.pom >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] Building CAS Push-Pull-Framework Plugins Core Libs >>> [INFO] task-segment: [install] >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] [resources:resources {execution: default-resources}] >>> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered >>> resources, i.e. build is platform dependent! >>> [INFO] skip non existing resourceDirectory >>> /home/yhkang/oodt-pushpull-plugins/core/src/main/resources >>> Downloading: >>> http://repo1.maven.org/maven2/ftp4che/ftp4che/0.7.1/ftp4che-0.7.1.pom >>> [INFO] Unable to find resource 'ftp4che:ftp4che:pom:0.7.1' in >>> repository central (http://repo1.maven.org/maven2) >>> Downloading: >>> http://repo1.maven.org/maven2/ftp4che/ftp4che/0.7.1/ftp4che-0.7.1.jar >>> [INFO] Unable to find resource 'ftp4che:ftp4che:jar:0.7.1' in >>> repository central (http://repo1.maven.org/maven2) >>> [INFO] >>> ------------------------------------------------------------------------ >>> [ERROR] BUILD ERROR >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] Failed to resolve artifact. >>> >>> Missing: >>> ---------- >>> 1) ftp4che:ftp4che:jar:0.7.1 >>> >>> Try downloading the file manually from the project website. >>> >>> Then, install it using the command: >>> mvn install:install-file -DgroupId=ftp4che -DartifactId=ftp4che >>> -Dversion=0.7.1 -Dpackaging=jar -Dfile=/path/to/file >>> >>> Alternatively, if you host your own repository you can deploy the file >>> there: >>> mvn deploy:deploy-file -DgroupId=ftp4che -DartifactId=ftp4che >>> -Dversion=0.7.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] >>> -DrepositoryId=[id] >>> >>> Path to dependency: >>> 1) org.apacheextras.oodt:oodt-pushpull-plugins-core:jar:0.4 >>> 2) ftp4che:ftp4che:jar:0.7.1 >>> >>> ---------- >>> 1 required artifact is missing. >>> >>> for artifact: >>> org.apacheextras.oodt:oodt-pushpull-plugins-core:jar:0.4 >>> >>> from the specified remote repositories: >>> central (http://repo1.maven.org/maven2) >>> >>> >>> >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] For more information, run Maven with the -e switch >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] Total time: 8 seconds >>> [INFO] Finished at: Mon Jul 23 17:46:57 KST 2012 >>> [INFO] Final Memory: 26M/188M >>> [INFO] >>> ------------------------------------------------------------------------ >>> >>> >>> >>> Thanks, >>> Yunhee >>> >>> 2012/7/23 Mattmann, Chris A (388J) <chris.a.mattm...@jpl.nasa.gov>: >>>> Hi Yunee, >>>> >>>> See: http://pastebin.com/36krXVZZ >>>> >>>> I was able to do this from scratch and it worked fine. >>>> >>>> Can you please let me know what the specific error >>>> you are getting is? >>>> >>>> Cheers, >>>> Chris >>>> >>>> On Jul 22, 2012, at 7:42 AM, YunHee Kang wrote: >>>> >>>>> Hi Chris, >>>>> >>>>> Firstly, I checked out the revision 8 of oodt-pushpull-plugins. Then I >>>>> tried to run the command "mvn install" for building this plugins. >>>>> Unfortunately I got the same error before I had. >>>>> >>>>> Thanks, >>>>> >>>>> Yunee >>>>> >>>>> 2012/7/22 Mattmann, Chris A (388J) <chris.a.mattm...@jpl.nasa.gov>: >>>>>> Hi YunHee, >>>>>> >>>>>> On Jul 20, 2012, at 3:00 AM, YunHee Kang wrote: >>>>>> >>>>>>> Hi Chris, >>>>>>> >>>>>>> To handle a problem occurred when downloading remote files by using a >>>>>>> script 'pushpull', I tried to install "Push Pull protocol plugins" >>>>>>> based on the following steps: >>>>>>> 1) svn export >>>>>>> http://svn.codespot.com/a/apache-extras.org/oodt-pushpull-plugins/trunk/ >>>>>>> oodt-pushpull-plugins >>>>>>> 2) cd oodt-pushpull-plugins >>>>>>> 3) mvn install >>>>>>> >>>>>>> But I didn't get a Jar file called >>>>>>> oodt-pushpull-plugins-core-0.4-SNAPSHOT.jar. >>>>>>> Instead of the jar file, I got the following message. >>>>>>> >>>>>>> >>>>>>> yhkang@yunhee-kisti:~/oodt-pushpull-plugins$ mvn install >>>>>>> [INFO] Scanning for projects... >>>>>>> [INFO] Reactor build order: >>>>>>> [INFO] Apache CAS PushPull Plugins Dependency Fixer >>>>>>> [INFO] CAS Push-Pull-Framework Plugins Core Libs >>>>>>> [INFO] Apache OODT CAS PushPull Plugins >>>>>>> [INFO] >>>>>>> ----------------------------------------------------------------------- >>>>>>> - >>>>>>> [INFO] Building Apache CAS PushPull Plugins Dependency Fixer >>>>>>> [INFO] task-segment: [install] >>>>>>> [INFO] >>>>>>> ------------------------------------------------------------------------ >>>>>>> [INFO] [antrun:run {execution: jvftpdownload}] >>>>>>> [INFO] Executing tasks >>>>>>> >>>>>>> main: >>>>>>> >>>>>>> all: >>>>>>> [get] Getting: >>>>>>> http://downloads.sourceforge.net/project/jvftp/jvftp/0.73%20for%20java%201.5%2B/jvftp-bin-0_73.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fjvftp%2F&ts=1325111584&use_mirror=iweb >>>>>>> [get] To: >>>>>>> /home/yhkang/oodt-pushpull-plugins/depfixer/target/jvftp/jvftp-bin-0_73.zip >>>>>>> [get] >>>>>>> http://downloads.sourceforge.net/project/jvftp/jvftp/0.73%20for%20java%201.5%2B/jvftp-bin-0_73.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fjvftp%2F&ts=1325111584&use_mirror=iweb >>>>>>> moved to >>>>>>> http://iweb.dl.sourceforge.net/project/jvftp/jvftp/0.73%20for%20java%201.5%2B/jvftp-bin-0_73.zip >>>>>>> [unzip] Expanding: >>>>>>> /home/yhkang/oodt-pushpull-plugins/depfixer/target/jvftp/jvftp-bin-0_73.zip >>>>>>> into /home/yhkang/oodt-pushpull-plugins/depfixer/target/jvftp/jvftp-0_73 >>>>>>> [move] Moving 1 file to >>>>>>> /home/yhkang/oodt-pushpull-plugins/depfixer/target/jvftp/jvftp-0_73/jvftp/lib >>>>>>> [INFO] Executed tasks >>>>>>> [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] >>>>>>> [INFO] [install:install {execution: default-install}] >>>>>>> [INFO] Installing /home/yhkang/oodt-pushpull-plugins/depfixer/pom.xml >>>>>>> to >>>>>>> /home/yhkang/.m2/repository/org/apacheextras/oodt/oodt-pushpull-plugins-depfixer/0.4-SNAPSHOT/oodt-pushpull-plugins-depfixer-0.4-SNAPSHOT.pom >>>>>>> [INFO] >>>>>>> ------------------------------------------------------------------------ >>>>>>> [INFO] Building CAS Push-Pull-Framework Plugins Core Libs >>>>>>> [INFO] task-segment: [install] >>>>>>> [INFO] >>>>>>> ------------------------------------------------------------------------ >>>>>>> [INFO] [resources:resources {execution: default-resources}] >>>>>>> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered >>>>>>> resources, i.e. build is platform dependent! >>>>>>> [INFO] skip non existing resourceDirectory >>>>>>> /home/yhkang/oodt-pushpull-plugins/core/src/main/resources >>>>>>> Downloading: >>>>>>> http://repo1.maven.org/maven2/ftp4che/ftp4che/0.7.1/ftp4che-0.7.1.pom >>>>>>> [INFO] Unable to find resource 'ftp4che:ftp4che:pom:0.7.1' in >>>>>>> repository central (http://repo1.maven.org/maven2) >>>>>>> Downloading: >>>>>>> http://repo1.maven.org/maven2/ftp4che/ftp4che/0.7.1/ftp4che-0.7.1.jar >>>>>>> [INFO] Unable to find resource 'ftp4che:ftp4che:jar:0.7.1' in >>>>>>> repository central (http://repo1.maven.org/maven2) >>>>>>> [INFO] >>>>>>> ------------------------------------------------------------------------ >>>>>>> [ERROR] BUILD ERROR >>>>>>> [INFO] >>>>>>> ------------------------------------------------------------------------ >>>>>>> [INFO] Failed to resolve artifact. >>>>>>> >>>>>>> Missing: >>>>>>> ---------- >>>>>>> 1) org.apache.oodt:cas-pushpull:jar:0.4-SNAPSHOT >>>>>>> >>>>>>> Try downloading the file manually from the project website. >>>>>>> >>>>>>> Then, install it using the command: >>>>>>> mvn install:install-file -DgroupId=org.apache.oodt >>>>>>> -DartifactId=cas-pushpull -Dversion=0.4-SNAPSHOT -Dpackaging=jar >>>>>>> -Dfile=/path/to/file >>>>>>> >>>>>>> Alternatively, if you host your own repository you can deploy the file >>>>>>> there: >>>>>>> mvn deploy:deploy-file -DgroupId=org.apache.oodt >>>>>>> -DartifactId=cas-pushpull -Dversion=0.4-SNAPSHOT -Dpackaging=jar >>>>>>> -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] >>>>>>> >>>>>>> Path to dependency: >>>>>>> 1) org.apacheextras.oodt:oodt-pushpull-plugins-core:jar:0.4-SNAPSHOT >>>>>>> 2) org.apache.oodt:cas-pushpull:jar:0.4-SNAPSHOT >>>>>>> >>>>>>> 2) ftp4che:ftp4che:jar:0.7.1 >>>>>>> >>>>>>> Try downloading the file manually from the project website. >>>>>>> >>>>>>> Then, install it using the command: >>>>>>> mvn install:install-file -DgroupId=ftp4che -DartifactId=ftp4che >>>>>>> -Dversion=0.7.1 -Dpackaging=jar -Dfile=/path/to/file >>>>>>> >>>>>>> Alternatively, if you host your own repository you can deploy the file >>>>>>> there: >>>>>>> mvn deploy:deploy-file -DgroupId=ftp4che -DartifactId=ftp4che >>>>>>> -Dversion=0.7.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] >>>>>>> -DrepositoryId=[id] >>>>>>> >>>>>>> Path to dependency: >>>>>>> 1) org.apacheextras.oodt:oodt-pushpull-plugins-core:jar:0.4-SNAPSHOT >>>>>>> 2) ftp4che:ftp4che:jar:0.7.1 >>>>>>> >>>>>>> ---------- >>>>>>> 2 required artifacts are missing. >>>>>>> >>>>>>> for artifact: >>>>>>> org.apacheextras.oodt:oodt-pushpull-plugins-core:jar:0.4-SNAPSHOT >>>>>>> >>>>>>> from the specified remote repositories: >>>>>>> central (http://repo1.maven.org/maven2) >>>>>>> >>>>>>> >>>>>>> [INFO] >>>>>>> ------------------------------------------------------------------------ >>>>>>> [INFO] For more information, run Maven with the -e switch >>>>>>> [INFO] >>>>>>> ------------------------------------------------------------------------ >>>>>>> [INFO] Total time: 6 seconds >>>>>>> [INFO] Finished at: Fri Jul 20 18:49:33 KST 2012 >>>>>>> [INFO] Final Memory: 24M/184M >>>>>>> [INFO] >>>>>>> ------------------------------------------------------------------------ >>>>>>> >>>>>>> Let me know how to handle this installation problem. >>>>>> >>>>>> Ahh! OK I think I need to simply update pushpull plugins to depend >>>>>> on Apache OODT 0.4: I've done so in r6, r7 and r8: >>>>>> >>>>>> http://s.apache.org/fFN >>>>>> http://s.apache.org/xn >>>>>> http://s.apache.org/yf >>>>>> >>>>>> Try it now! >>>>>> >>>>>> Cheers, >>>>>> Chris >>>>>> >>>>>> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >>>>>> Chris Mattmann, Ph.D. >>>>>> Senior Computer Scientist >>>>>> NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA >>>>>> Office: 171-266B, Mailstop: 171-246 >>>>>> Email: chris.a.mattm...@nasa.gov >>>>>> WWW: http://sunset.usc.edu/~mattmann/ >>>>>> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >>>>>> Adjunct Assistant Professor, Computer Science Department >>>>>> University of Southern California, Los Angeles, CA 90089 USA >>>>>> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >>>>>> >>>> >>>> >>>> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >>>> Chris Mattmann, Ph.D. >>>> Senior Computer Scientist >>>> NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA >>>> Office: 171-266B, Mailstop: 171-246 >>>> Email: chris.a.mattm...@nasa.gov >>>> WWW: http://sunset.usc.edu/~mattmann/ >>>> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >>>> Adjunct Assistant Professor, Computer Science Department >>>> University of Southern California, Los Angeles, CA 90089 USA >>>> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >>>> >> >> >> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >> Chris Mattmann, Ph.D. >> Senior Computer Scientist >> NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA >> Office: 171-266B, Mailstop: 171-246 >> Email: chris.a.mattm...@nasa.gov >> WWW: http://sunset.usc.edu/~mattmann/ >> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >> Adjunct Assistant Professor, Computer Science Department >> University of Southern California, Los Angeles, CA 90089 USA >> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Chris Mattmann, Ph.D. Senior Computer Scientist NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA Office: 171-266B, Mailstop: 171-246 Email: chris.a.mattm...@nasa.gov WWW: http://sunset.usc.edu/~mattmann/ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Adjunct Assistant Professor, Computer Science Department University of Southern California, Los Angeles, CA 90089 USA ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++