Re: No POM 1 how do I install my POM (Please help!!!)

2011-12-17 Thread Benson Margulies
Please read http://www.sonatype.com/books/mvnref-book/reference/. You
don't hardly ever install a POM. You just run mvn in the directory
where it is sitting.

On Sat, Dec 17, 2011 at 10:22 AM, Apache Omega  wrote:
> i'm trying to get maven fully operational but every time i run anything
> there's an error stating NO POM1
> how do I correct this???
>
> Microsoft Windows [Version 6.1.7600]
> Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
>
> C:\Users\Administrator>mvn install:install
> [INFO] Scanning for projects...
> [INFO]
> [INFO]
> 
> [INFO] Building Maven Stub Project (No POM) 1
> [INFO]
> 
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 0.296s
> [INFO] Finished at: Sun Dec 18 09:08:37 CST 2011
> [INFO] Final Memory: 7M/73M
> [INFO]
> 
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-install-plugin:2.3
> .1:install (default-cli): Goal requires a project to execute but there is no
> POM
>  in this directory (C:\Users\Administrator). Please verify you invoked Maven
> fro
> m the correct directory. -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> swit
> ch.
> [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
> rea
> d the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MissingProject
> Exception
> C:\Users\Administrator>mvn install:install-file
> -Dfile=path-to-your-artifact-jar
>  -DpomFile=path-to-pom
> [INFO] Scanning for projects...
> [INFO]
> [INFO]
> 
> [INFO] Building Maven Stub Project (No POM) 1
> [INFO]
> 
> [INFO]
> [INFO] --- maven-install-plugin:2.3.1:install-file (default-cli) @
> standalone-po
> m ---
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-api/2.0
> .6/maven-plugin-api-2.0.6.pom
> Downloaded:
> http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-api/2.0.
> 6/maven-plugin-api-2.0.6.pom (2 KB at 3.1 KB/sec)
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/maven/2.0.6/maven-2.
> 0.6.pom
> Downloaded:
> http://repo1.maven.org/maven2/org/apache/maven/maven/2.0.6/maven-2.0
> .6.pom (9 KB at 18.4 KB/sec)
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/maven-parent/5/maven
> -parent-5.pom
> Downloaded:
> http://repo1.maven.org/maven2/org/apache/maven/maven-parent/5/maven-
> parent-5.pom (15 KB at 30.2 KB/sec)
> Downloading: http://repo1.maven.org/maven2/org/apache/apache/3/apache-3.pom
> Downloaded: http://repo1.maven.org/maven2/org/apache/apache/3/apache-3.pom
> (4 KB
>  at 7.0 KB/sec)
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/maven-project/2.0.6/
> maven-project-2.0.6.pom
> Downloaded:
> http://repo1.maven.org/maven2/org/apache/maven/maven-project/2.0.6/m
> aven-project-2.0.6.pom (3 KB at 5.0 KB/sec)
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/maven-settings/2.0.6
> /maven-settings-2.0.6.pom
> Downloaded:
> http://repo1.maven.org/maven2/org/apache/maven/maven-settings/2.0.6/
> maven-settings-2.0.6.pom (2 KB at 4.7 KB/sec)
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/maven-model/2.0.6/ma
> ven-model-2.0.6.pom
> Downloaded:
> http://repo1.maven.org/maven2/org/apache/maven/maven-model/2.0.6/mav
> en-model-2.0.6.pom (3 KB at 6.3 KB/sec)
> Downloading:
> http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.4.
> 1/plexus-utils-1.4.1.pom
> Downloaded:
> http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.4.1
> /plexus-utils-1.4.1.pom (2 KB at 3.9 KB/sec)
> Downloading:
> http://repo1.maven.org/maven2/org/codehaus/plexus/plexus/1.0.11/ple
> xus-1.0.11.pom
> Downloaded:
> http://repo1.maven.org/maven2/org/codehaus/plexus/plexus/1.0.11/plex
> us-1.0.11.pom (9 KB at 19.6 KB/sec)
> Downloading: http://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.pom
> Downloaded: http://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.pom
> (998
>  B at 2.5 KB/sec)
> Downloading:
> http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.0.
> 4/plexus-utils-1.0.4.pom
> Downloaded:
> http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.0.4
> /plexus-utils-1.0.4.pom (7 KB at 14.1 KB/sec)
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/maven-profile/2.0.6/
> maven-profile-2.0.6.pom
> Downloaded:
> http://repo1.maven.org/maven2/org/apache/maven/maven-profile/2.0.6/m
> aven-

Re: No POM 1 how do I install my POM (Please help!!!)

2011-12-17 Thread Jeff MAURY
I suggest you read the documentation before asking such questions ?
The -f parameter allows to specify the name and location of the pom.xml (if
you want to use other names than the standard pom.xml)

Regards
Jeff MAURY

On Sat, Dec 17, 2011 at 4:53 PM, Apache Omega wrote:

> I entered mvn -f and this is what i got
> what does all this mean???
>
> C:\Program Files\apache-maven-3.0.3>mvn -f
> Unable to parse command line options: Missing argument for option: f
>
> usage: mvn [options] [] []
>
> Options:
>  -am,--also-makeIf project list is specified, also
>build projects required by the
>list
>  -amd,--also-make-dependentsIf project list is specified, also
>build projects that depend on
>projects on the list
>  -B,--batch-modeRun in non-interactive (batch)
>mode
>  -C,--strict-checksums  Fail the build if checksums don't
>match
>  -c,--lax-checksums Warn if checksums don't match
>  -cpu,--check-plugin-updatesIneffective, only kept for
>backward compatibility
>  -D,--define   Define a system property
>  -e,--errorsProduce execution error messages
>  -emp,--encrypt-master-passwordEncrypt master security password
>  -ep,--encrypt-passwordEncrypt server password
>  -f,--file Force the use of an alternate POM
>file.
>  -fae,--fail-at-end Only fail the build afterwards;
>allow all non-impacted builds to
>continue
>  -ff,--fail-fastStop at first failure in
>reactorized builds
>  -fn,--fail-never   NEVER fail the build, regardless
>of project result
>  -gs,--global-settings Alternate path for the global
>settings file
>  -h,--help  Display help information
>  -l,--log-file Log file to where all build output
>will go.
>  -N,--non-recursive Do not recurse into sub-projects
>  -npr,--no-plugin-registry  Ineffective, only kept for
>backward compatibility
>  -npu,--no-plugin-updates   Ineffective, only kept for
>backward compatibility
>  -nsu,--no-snapshot-updates Suppress SNAPSHOT updates
>  -o,--offline   Work offline
>  -P,--activate-profilesComma-delimited list of profiles
>to activate
>  -pl,--projectsComma-delimited list of specified
>reactor projects to build instead
>of all projects. A project can be
>specified by [groupId]:artifactId
>or by its relative path.
>  -q,--quiet Quiet output - only show errors
>  -rf,--resume-from Resume reactor from specified
>project
>  -s,--settings Alternate path for the user
>settings file
>  -T,--threads  Thread count, for instance 2.0C
>where C is core multiplied
>  -t,--toolchains   Alternate path for the user
>toolchains file
>  -U,--update-snapshots  Forces a check for updated
>releases and snapshots on remote
>repositories
>  -up,--update-plugins   Ineffective, only kept for
>backward compatibility
>  -V,--show-version  Display version information
>WITHOUT stopping build
>  -v,--version   Display version information
>  -X,--debug Produce execution debug output
> [ERROR] Error executing Maven.
> org.apache.commons.cli.MissingArgumentException: Missing argument for
> option: f
>at org.apache.commons.cli.Parser.processArgs(Parser.java:343)
>at org.apache.commons.cli.Parser.processOption(Parser.java:393)
>at org.apache.commons.cli.Parser.parse(Parser.java:199)
>at org.apache.commons.cl

Re: No POM 1 how do I install my POM (Please help!!!)

2011-12-17 Thread Apache Omega
I entered mvn -f and this is what i got
what does all this mean???

C:\Program Files\apache-maven-3.0.3>mvn -f
Unable to parse command line options: Missing argument for option: f

usage: mvn [options] [] []

Options:
 -am,--also-makeIf project list is specified, also
build projects required by the
list
 -amd,--also-make-dependentsIf project list is specified, also
build projects that depend on
projects on the list
 -B,--batch-modeRun in non-interactive (batch)
mode
 -C,--strict-checksums  Fail the build if checksums don't
match
 -c,--lax-checksums Warn if checksums don't match
 -cpu,--check-plugin-updatesIneffective, only kept for
backward compatibility
 -D,--define   Define a system property
 -e,--errorsProduce execution error messages
 -emp,--encrypt-master-passwordEncrypt master security password
 -ep,--encrypt-passwordEncrypt server password
 -f,--file Force the use of an alternate POM
file.
 -fae,--fail-at-end Only fail the build afterwards;
allow all non-impacted builds to
continue
 -ff,--fail-fastStop at first failure in
reactorized builds
 -fn,--fail-never   NEVER fail the build, regardless
of project result
 -gs,--global-settings Alternate path for the global
settings file
 -h,--help  Display help information
 -l,--log-file Log file to where all build output
will go.
 -N,--non-recursive Do not recurse into sub-projects
 -npr,--no-plugin-registry  Ineffective, only kept for
backward compatibility
 -npu,--no-plugin-updates   Ineffective, only kept for
backward compatibility
 -nsu,--no-snapshot-updates Suppress SNAPSHOT updates
 -o,--offline   Work offline
 -P,--activate-profilesComma-delimited list of profiles
to activate
 -pl,--projectsComma-delimited list of specified
reactor projects to build instead
of all projects. A project can be
specified by [groupId]:artifactId
or by its relative path.
 -q,--quiet Quiet output - only show errors
 -rf,--resume-from Resume reactor from specified
project
 -s,--settings Alternate path for the user
settings file
 -T,--threads  Thread count, for instance 2.0C
where C is core multiplied
 -t,--toolchains   Alternate path for the user
toolchains file
 -U,--update-snapshots  Forces a check for updated
releases and snapshots on remote
repositories
 -up,--update-plugins   Ineffective, only kept for
backward compatibility
 -V,--show-version  Display version information
WITHOUT stopping build
 -v,--version   Display version information
 -X,--debug Produce execution debug output
[ERROR] Error executing Maven.
org.apache.commons.cli.MissingArgumentException: Missing argument for
option: f
at org.apache.commons.cli.Parser.processArgs(Parser.java:343)
at org.apache.commons.cli.Parser.processOption(Parser.java:393)
at org.apache.commons.cli.Parser.parse(Parser.java:199)
at org.apache.commons.cli.Parser.parse(Parser.java:85)
at org.apache.maven.cli.CLIManager.parse(CLIManager.java:154)
at org.apache.maven.cli.MavenCli.cli(MavenCli.java:302)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:187)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.Nativ

RE: No POM 1 how do I install my POM (Please help!!!)

2011-12-17 Thread Robert Scholte

Funny you can find the mailing lists easier than the usage of Maven.

Please read "Maven in 5 minutes"[1] first to understand the basics.

 

-Robert

 

[1] http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html
 


> Date: Sat, 17 Dec 2011 07:46:53 -0800
> From: jason007tho...@yahoo.com
> To: users@maven.apache.org
> Subject: Re: No POM 1 how do I install my POM (Please help!!!)
> 
> how do i find pom.xml
> 
> --
> View this message in context: 
> http://maven.40175.n5.nabble.com/No-POM-1-how-do-I-install-my-POM-Please-help-tp5082740p5082770.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: No POM 1 how do I install my POM (Please help!!!)

2011-12-17 Thread Apache Omega
how do i find pom.xml

--
View this message in context: 
http://maven.40175.n5.nabble.com/No-POM-1-how-do-I-install-my-POM-Please-help-tp5082740p5082770.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: No POM 1 how do I install my POM (Please help!!!)

2011-12-17 Thread Jeff MAURY
You should run Maven from a directory where a pom.xml is present or use the
-f argument.
Regards
Jeff MAURY

On Sat, Dec 17, 2011 at 4:22 PM, Apache Omega wrote:

> i'm trying to get maven fully operational but every time i run anything
> there's an error stating NO POM1
> how do I correct this???
>
> Microsoft Windows [Version 6.1.7600]
> Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
>
> C:\Users\Administrator>mvn install:install
> [INFO] Scanning for projects...
> [INFO]
> [INFO]
> 
> [INFO] Building Maven Stub Project (No POM) 1
> [INFO]
> 
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 0.296s
> [INFO] Finished at: Sun Dec 18 09:08:37 CST 2011
> [INFO] Final Memory: 7M/73M
> [INFO]
> 
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-install-plugin:2.3
> .1:install (default-cli): Goal requires a project to execute but there is
> no
> POM
>  in this directory (C:\Users\Administrator). Please verify you invoked
> Maven
> fro
> m the correct directory. -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> swit
> ch.
> [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
> rea
> d the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MissingProject
> Exception
> C:\Users\Administrator>mvn install:install-file
> -Dfile=path-to-your-artifact-jar
>  -DpomFile=path-to-pom
> [INFO] Scanning for projects...
> [INFO]
> [INFO]
> 
> [INFO] Building Maven Stub Project (No POM) 1
> [INFO]
> 
> [INFO]
> [INFO] --- maven-install-plugin:2.3.1:install-file (default-cli) @
> standalone-po
> m ---
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-api/2.0
> .6/maven-plugin-api-2.0.6.pom
> Downloaded:
> http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-api/2.0.
> 6/maven-plugin-api-2.0.6.pom(2
>  KB at 3.1 KB/sec)
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/maven/2.0.6/maven-2.
> 0.6.pom
> Downloaded:
> http://repo1.maven.org/maven2/org/apache/maven/maven/2.0.6/maven-2.0
> .6.pom (9 KB at 18.4 KB/sec)
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/maven-parent/5/maven
> -parent-5.pom
> Downloaded:
> http://repo1.maven.org/maven2/org/apache/maven/maven-parent/5/maven-
> parent-5.pom(15
>  KB at 30.2 KB/sec)
> Downloading:
> http://repo1.maven.org/maven2/org/apache/apache/3/apache-3.pom
> Downloaded: http://repo1.maven.org/maven2/org/apache/apache/3/apache-3.pom
> (4 KB
>  at 7.0 KB/sec)
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/maven-project/2.0.6/
> maven-project-2.0.6.pom
> Downloaded:
> http://repo1.maven.org/maven2/org/apache/maven/maven-project/2.0.6/m
> aven-project-2.0.6.pom(3
>  KB at 5.0 KB/sec)
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/maven-settings/2.0.6
> /maven-settings-2.0.6.pom
> Downloaded:
> http://repo1.maven.org/maven2/org/apache/maven/maven-settings/2.0.6/
> maven-settings-2.0.6.pom(2
>  KB at 4.7 KB/sec)
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/maven-model/2.0.6/ma
> ven-model-2.0.6.pom
> Downloaded:
> http://repo1.maven.org/maven2/org/apache/maven/maven-model/2.0.6/mav
> en-model-2.0.6.pom(3
>  KB at 6.3 KB/sec)
> Downloading:
> http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.4.
> 1/plexus-utils-1.4.1.pom
> Downloaded:
> http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.4.1
> /p