Hi ,

 

                     I am  try to run the maven, But I am getting error
while running maven install in cmd prompt.

 

Error code:-

 

D:\projects\tutorial>mvn install
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Building Tutorial
[INFO]    task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-site-plugin' does not
exist or
 no valid version could be found
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Wed Feb 20 17:22:00 IST 2008
[INFO] Final Memory: 1M/2M
[INFO]
------------------------------------------------------------------------

 

Please tell the directory structure of maven clearly and How to run sample
exercise using maven 

 

i creatred a directory structure for empty project like this

D:\projects\tutorial\pom.xml

 
i am doing the sample in servicemix tutorial at
url:http://servicemix.apache.org/21-beginner-starting-the-maven-project.html
tutorial.
i got stuck while running mvn install from the directory
D:\projects\tutorial as suggested by the sample


pom.xml file contains like this from source of  

<?xml version="1.0" encoding="utf-8"?>
<project xmlns=http://maven.apache.org/POM/4.0.0
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance
 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.servicemix.tutorial</groupId>
<artifactId>parent</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Tutorial</name>
<url>http://servicemix.org</url>
</project>

i have created  create one settings.xml file inside <user_home>\.m2\
directory.
here user_home ihave given D:\apache-maven-2.0.8 is this correct?

the code ihave given for settings.xml is

<?xml version="1.0" encoding="UTF-8"?>
<settings>
  <proxies>
<proxy>
      <active>true</active>
      <protocol>http</protocol>
      <host>proxy2.wipro.com</host>
      <port>8080</port>
      <username>uma</username>
      <password>umamahesh</password>
     
<nonProxyHosts>http://maven.apache.org/maven2/maven-settings</nonProxyHosts>
    </proxy>
    </proxies>
</settings>

i dont know exactly what to give for <nonProxyHosts> tag.
 
so please suggest me a solution for this

Thanks & Regards,

Uma mahesh J


 


-- 
View this message in context: 
http://www.nabble.com/unable-build-project-using-maven-tp15587546s12049p15587546.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to