You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Mahesh_w <ja...@wipro.com> on 2008/02/20 13:04:15 UTC

unable build project using maven

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.


Re: unable build project using maven

Posted by ma...@uk.bnpparibas.com.
hi,,
 are all your repositories all right?

try to do this:
- createa  sample maven project
        mvn create:archetype -DgroupId=test -DartifactID=test

then run mvn site:site  and see

if you have problems in doing this, then you'll need to add some 
repositories to you settings.xml

try with setting sbelow


        <repositories>
- 
  </repository>
- <repository>
  <id>Maven Snapshots</id> 
  <url>http://snapshots.maven.codehaus.org/maven2/</url> 
- <snapshots>
  <enabled>true</enabled> 
  </snapshots>
- <releases>
  <enabled>false</enabled> 
  </releases>
  </repository>
- <repository>
  <id>apache-incubating</id> 
  <url>http://people.apache.org/repo/m2-incubating-repository</url> 
  </repository>
  </repositories>
- <pluginRepositories>
- <pluginRepository>
  <id>Maven Snapshots</id> 
  <url>http://snapshots.maven.codehaus.org/maven2/</url> 
- <snapshots>
  <enabled>true</enabled> 
  </snapshots>
- <releases>
  <enabled>false</enabled> 
  </releases>
  </pluginRepository>
- <pluginRepository>
  <id>Codehaus snapshot</id> 
  <url>http://snapshots.repository.codehaus.org/</url> 
- <snapshots>
  <enabled>true</enabled> 
  </snapshots>
- <releases>
  <enabled>false</enabled> 
  </releases>
  </pluginRepository>
- <pluginRepository>
  <id>codehaus-plugins</id> 
  <url>http://dist.codehaus.org/</url> 
  <layout>legacy</layout> 
- <snapshots>
  <enabled>true</enabled> 
  </snapshots>
- <releases>
  <enabled>true</enabled> 
  </releases>
  </pluginRepository>
- <pluginRepository>
  <id>apache-incubating</id> 
  <url>http://people.apache.org/repo/m2-incubating-repository</url> 
  </pluginRepository>
  </pluginRepositories>
  

















Internet
javvadi.rao@wipro.com

20/02/2008 12:04
Please respond to
users@servicemix.apache.org


To
users
cc

Subject
unable build project using maven







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.



This communication is confidential, may be privileged and is meant only for the intended recipient.  If you are 
not the intended recipient, please notify the sender by reply and delete this message from your system.  Any 
unauthorised dissemination, distribution or copying hereof is prohibited.

BNP Paribas Fund Services UK Limited, BNP Paribas Trust Corporation UK Limited, BNP Paribas UK Limited, 
BNP Paribas Commodity Futures Ltd and Investment Fund Services Limited are authorised and regulated by 
the Financial Services Authority.

BNP Paribas, BNP Paribas Securities Services and BNP Paribas Private Bank are authorised by the CECEI 
and AMF.  BNP Paribas London Branch, BNP Paribas Securities Services London Branch and BNP Paribas 
Private Bank London Branch are regulated by the Financial Services Authority for the conduct of their UK 
business.  BNP Paribas Securities Services London Branch is also a member of the London Stock Exchange.