Re: problem in installing/running maven

2012-07-18 Thread rahul bhalla
I also noticed that when issue give command

C:\Users\sahil>%JAVA_HOME%
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
but i set JAVA_HOME to C:\Program Files\Java\jdk1.6.0_21

that means it is not displaying full java_Home Path

On Thu, Jul 19, 2012 at 12:08 AM, rahul bhalla wrote:

> when issue the command it gives
> C:\Users\sahil>%M2_HOME%
> 'D:\springsource\apache-maven-3.0.3' is not recognized as an internal or
> external
> operable program or batch file.
>



-- 
Regards
Rahul Bhalla
(9953225211)


Re: BUILD FAILURE to create project structure

2012-07-18 Thread rahul bhalla
I installed maven once again but same problem enconters

On Wed, Jul 18, 2012 at 10:54 PM, Thiessen, Todd (Todd)  wrote:

> This list. The maven list. The one to which you are asking your questions.
>
> Take step back.  Go to the maven home page and start from scratch and
> install maven following the instructions provided on the maven home page.
>
> > -Original Message-
> > From: rahul bhalla [mailto:urcoolfrien...@gmail.com]
> > Sent: Wednesday, July 18, 2012 1:22 PM
> > To: Maven Users List
> > Subject: Re: BUILD FAILURE to create project structure
> >
> > what kind of resource list you are talking
> >
> >
> > --
> > Regards
> > Rahul Bhalla
> > (9953225211)
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


-- 
Regards
Rahul Bhalla
(9953225211)


Re: BUILD FAILURE to create project structure

2012-07-18 Thread rahul bhalla
what kind of resource list you are talking


-- 
Regards
Rahul Bhalla
(9953225211)


Re: BUILD FAILURE to create project structure

2012-07-18 Thread rahul bhalla
hey Wayne Fay

Do you have any idea where did i do mistake??

 --
Regards
Rahul Bhalla


Re: BUILD FAILURE to create project structure

2012-07-18 Thread rahul bhalla
Sorry

it gives

C:\Users\sahil>mvn --v
'mvn' is not recognized as an internal or external command,
operable program or batch file.

-- 
Regards
Rahul Bhalla


Re: BUILD FAILURE to create project structure

2012-07-18 Thread rahul bhalla
hi
when i run command
*C:\apache-maven-3.0.4\bin>mvn -v*
*it gives following output*
Apache Maven 3.0.4 (r1232337; 2012-01-17 14:14:56+0530)
Maven home: C:\apache-maven-3.0.4
Java version: 1.6.0_21, vendor: Sun Microsystems Inc.
Java home: C:\Program Files\Java\jdk1.6.0_21\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"

*C:\apache-maven-3.0.4\bin>*mvn archetype:generate
this time  it give proper output means it create proper directory and
pom.xml

Now please tell me how to create directory of a project outside the bin
folder or run maven application from anywhere

Thanks for consideration
Regards
Rahul Bhalla
(9953225211)


Re: BUILD FAILURE to create project structure

2012-07-17 Thread rahul bhalla
hi
As you said i do and now it its running
*thanks for the help*
can please explain me the way how to create project structure/whole project
outside the bin folder of maven ??
-- 
Regards
Rahul Bhalla


BUILD FAILURE to create project structure

2012-07-17 Thread rahul bhalla
hi
i new to maven and try to create project structure with help of maven. I m
using Maven 3.0.4 version

Every time i try to run given command* C:\Program
Files\apache-maven-3.0.4\bin>mvn archetype:generate*
it ask :

   - Choose a number or apply filter (format: [groupId:]artifactId, case
   sensitive contains): 205: 596

   Choose org.springframework.osgi:spring-osgi-bundle-archetype
version:
   1: 1.0
   2: 1.0.1
   3: 1.0.2
   4: 1.0.3
   5: 1.1.0
   6: 1.1.1
   7: 1.1.2
   8: 1.1.3
   9: 1.2.0
   10: 1.2.1
   Choose a number: 10: 10
   Define value for property 'groupId': : com.rahul
   Define value for property 'artifactId': : gallery
   Define value for property 'version':  1.0-SNAPSHOT: :
   Define value for property 'package':  com.rahul: :
   Confirm properties configuration:
   groupId: com.rahul
   artifactId: gallery
   version: 1.0-SNAPSHOT
   package: com.rahul
Y: : y
[INFO]

[INFO] Using following parameters for creating project from Old (1.x)
Archetype: spring-osgi-bundle-archetype:1.2.1
[INFO]

[INFO] Parameter: groupId, Value: com.rahul
[INFO] Parameter: packageName, Value: com.rahul
[INFO] Parameter: package, Value: com.rahul
[INFO] Parameter: artifactId, Value: gallery
[INFO] Parameter: basedir, Value: C:\Program Files\apache-maven-3.0.4\bin
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 1:53.783s
[INFO] Finished at: Wed Jul 18 01:34:34 IST 2012
[INFO] Final Memory: 7M/17M
[INFO]

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli)
on project standalone-pom: Error merging velocity templates -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException



please help me solve above issue
thanking you
-- 
Regards
Rahul Bhalla


problem in installing/running maven

2012-07-17 Thread rahul bhalla
hi
I new to maven project and first time i to runand install maven
I followed the following steps which instruct by apache maven

   1. Add the M2_HOME environment variable by opening up the system
   properties (WinKey + Pause), selecting the "Advanced" tab, and the
   "Environment Variables" button, then adding the M2_HOME variable in the
   user variables with the value *C:\Program Files\apache-maven-3.0.4*
   2. In the same dialog, add the M2 environment variable in the user
   variables with the value %M2_HOME%\bin.
   3. In the same dialog, update/create the Path environment variable in
   the user variables and prepend the value %M2% to add Maven available in
   the command line.
   4. In the same dialog, make JAVA_HOME in user variables  with the
value C:\Program
   Files\Java\jdk1.6.0_21 and that %JAVA_HOME%\bin is in your Path environment
   variable.
   5. Open a *new* command prompt (Winkey + R then type cmd) and run mvn
   --version to verify that it is correctly installed.

*C:\Users\sahil>mvn --version*
'mvn' is not recognized as an internal or external command,
operable program or batch file

if the directory is changes to* C:\Program Files\apache-maven-3.0.4\bin>*
then it runs .

now please tell me what is problem when i try to issue a command  from *
C:\Users\sahil>* directory
-- 
Regards
Rahul Bhalla
(9953225211)


Re: unable to install plugin in eclipse IDE(Galileo)

2012-07-14 Thread rahul bhalla
Sir
Thanks for your reply
as you suggest that galileo is an old version that means it is not capable
to install maven plugin???

On Thu, Jul 12, 2012 at 10:48 PM, Jörg Schaible wrote:

>
> >Galileo is simply too old. JDT 3.6 is at least Helios. Consider using a
> >newer version of Eclipse.
>
> - Jörg
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


-- 
Regards
Rahul Bhalla
(9953225211)


unable to install plugin in eclipse IDE(Galileo)

2012-07-12 Thread rahul bhalla
Sir/ Ma'am
I tired to install plugin in my eclipse IDE but i m unable to do that

I need your help to install the maven plugin into my IDE and Reason/step
where i m wrong

Steps Which i followed is Given Below:
1.) Open Eclipse Galileo
2.) Go Help -> Install Software
3.) add url *"
http://download.eclipse.org/technology/m2e/releases/1.0/1.0.200.20111228-1245";
*
4.) check on the
   -  Maven Integration for Eclipse
  -m2e - Maven
Integration for Eclipse 1.0.200.20111228-1245
  -m2e - slf4j
over logback logging (Optional) 1.0.200.20111228-1245
Next 

*After some time error Encounter which is given below:*
Cannot complete the install because one or more required items could not be
found.
  Software being installed: m2e - Maven Integration for Eclipse
1.0.200.20111228-1245 (org.eclipse.m2e.feature.feature.group
1.0.200.20111228-1245)
  Missing requirement: m2e - Maven Integration for Eclipse
1.0.200.20111228-1245 (org.eclipse.m2e.feature.feature.group
1.0.200.20111228-1245) requires 'org.eclipse.jdt.feature.group 3.6.0' but
it could not be found

For long time i m suffering from above problem. I hope this forum help in
installing plugin
thanks for your consideration

-- 
Regards
Rahul Bhalla
(9953225211)