Good day to you, Raj,

Aside from the maven.xml that's already been mentioned....try running with
"-cpu" to check for plugin updates (i.e. "mvn clean install -cpu" ).

Cheers,
Franz


Rajmahendra wrote:
> 
> hi all
> 
> i am using JDK 1.5 and Maven 2.0.4
> 
> I have written a simple program but its not working
> 
> 
> pom.xml
> <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>de.focusdv.bcs</groupId>
>   <artifactId>new-app</artifactId>
>   <packaging>jar</packaging>
>   <version>1.0-SNAPSHOT</version>
>   <name>new-app</name>
>   <url>http://maven.apache.org</url>
>   <dependencies>
>     <dependency>
>       <groupId>junit</groupId>
>       <artifactId>junit</artifactId>
>       <version>3.8.1</version>
>       <scope>test</scope>
>     </dependency>
>   </dependencies>
> 
> </project>
> 
> maven.xml
> <?xml version="1.0"?>
> <project >
>           <postGoal >
> 
>                  <echo>Inside postGoal</echo>
>            </postGoal>
> 
> <!--    <preGoal name="raj:mygoal" >
>     <attainGoal name="raj:hello"/>
>             <echo>Inside preGoal</echo>
>     </preGoal>  -->
> 
>     <goal name="raj:hello">
>             <echo>Inside raj:call</echo>
>     </goal>
> 
> 
>     <goal name="install:install">
>             <echo>Inside raj:call</echo>
>     </goal>
> 
> </project>
> 
> 
> i am trying to call
> 
> mvn raj:hello
> 
> but its not working...
> 
> i am gettting following error.
> The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not
> exist
> or no valid version could be found
> 
> Please help me
> -- 
> Thank you,
> With warm regards,
> Rajmahendra R Hegde (Raj)
> Website: http://www.rajmahendra.com/
>               http://rajmahendra.zaadz.com/
>               http://360.yahoo.com/rajeshblog/
> 
> ----------------------------------------------------------------------------------------------
> "Genius is one per cent inspiration and ninety-nine per cent
> perspiration. Accordingly, a  'genius' is often merely a talented
> person who has done all of his or her homework."
>                                                             -Thomas Alva
> Edison
>                                                                    (1847 -
> 1931)
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Mavan2-simple-program-not-working.-tf3232946s177.html#a8984108
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to