I created a new directory
Copied the oracle jar into that new directory
Renamed the oracle jar to match your filename
Copied and pasted your command line, as a single line
I get the following below...

The only thing I notice which is different is, that I get:
[INFO] --- maven-install-plugin:2.3.1:install-file (default-cli) @
standalone-pom ---
[INFO] Installing /Users/USERNAME/projects/oss/tmp/ojdbc6.jar to
/Users/USERNAME/.m2/repository/com/oracle/ojdbc6/11.1.0.7.0/ojdbc6-11.1.0.7.0.jar

And Your have:
[INFO] --- maven-install-plugin:2.3.1:install-file (default-cli) @ ojdbc6 ---
[INFO] Installing C:\CGSI\apache-maven-3.0.4\lib\ojdbc6 to
C:\Users\emeanavallin\.m2\repository\com\ojdbc6\11\ojdbc6-11.jar

Questions
1) Do you have a pom.xml in the directory that you are executing the
install:install-file command from?
2) Does this work for another developer?
3) Your output says @ ojdbc6 and min says @ standalone-pom
4) Your output says C:\CGSI\apache-maven-3.0.4\lib\ojdbc6 but mine
lists the file /Users/USERNAME/projects/oss/tmp/ojdbc6.jar. It seams
to miss out the .jar so and the error reports .jar so wonder if
linked.
5) Who created the C:\CGSI directory?
6) Is the apache-maven-3.0.4 directory exactly what was downloaded from maven?
7) I as as ojdbc6.jar isn't distributed with maven so you must have
chosen to put it there.
8) If none of the above works, use the following pom and place it into
the directory where ojdbc6.jar exists
(https://gist.github.com/2490338) and the execute "mvn validate", in
that same directory.

Let me know if anything helps.


My output, copy and paste of your command line.

$ mvn install:install-file -Dfile=ojdbc6.jar -DgroupId=com.oracle
-DartifactId=ojdbc6 -Dversion=11.1.0.7.0 -Dpackaging=jar
-DgeneratePom=true
[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-pom ---
[INFO] Installing /Users/USERNAME/projects/oss/tmp/ojdbc6.jar to
/Users/USERNAME/.m2/repository/com/oracle/ojdbc6/11.1.0.7.0/ojdbc6-11.1.0.7.0.jar
[INFO] Installing
/var/folders/nR/nRGBTAqKGxmmdH-QYQyQo++++TI/-Tmp-/mvninstall2133488645731106521.pom
to 
/Users/USERNAME/.m2/repository/com/oracle/ojdbc6/11.1.0.7.0/ojdbc6-11.1.0.7.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.241s
[INFO] Finished at: Wed Apr 25 15:38:10 BST 2012
[INFO] Final Memory: 3M/81M
[INFO] ------------------------------------------------------------------------

John

On 25 April 2012 10:44, copyto27 <cop...@gmail.com> wrote:
> Hi,
>
> searching in google i found the solutión for the error. but now i have a new
> error :(
>
>
> PS C:\CGSI\apache-maven-3.0.4\lib> mvn install:install-file
> -Dfile=ojdbc6.jar -DgroupId=com.oracle -DartifactId=ojdbc6 -
> Dversion=11.1.0.7.0 -Dpackaging=jar -DgeneratePom=true
> [INFO] Scanning for projects...
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building ojdbc6 11.1.0.7.0
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-install-plugin:2.3.1:install-file (default-cli) @ ojdbc6
> ---
> [INFO] Installing C:\CGSI\apache-maven-3.0.4\lib\ojdbc6 to
> C:\Users\emeanavallin\.m2\repository\com\ojdbc6\11\ojdbc6-11.
> jar
> [INFO] Installing
> C:\Users\EMEANA~1\AppData\Local\Temp\mvninstall5076381426630896449.pom to
> C:\Users\emeanavallin\.m2\re
> pository\com\ojdbc6\11\ojdbc6-11.pom
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building ojdbc6 11.1.0.7.0
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 0.862s
> [INFO] Finished at: Wed Apr 25 11:34:43 CEST 2012
> [INFO] Final Memory: 2M/15M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Unknown lifecycle phase ".jar". You must specify a valid lifecycle
> phase or a goal in the format <plugin-prefix>
> :<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>.
> Available lifecycle phases are: validate, i
> nitialize, generate-sources, process-sources, generate-resources,
> process-resources, compile, process-classes, generate-
> test-sources, process-test-sources, generate-test-resources,
> process-test-resources, test-compile, process-test-classes,
>  test, prepare-package, package, pre-integration-test, integration-test,
> post-integration-test, verify, install, deploy,
>  pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. ->
> [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/LifecyclePhaseNotFoundException
>
>
> could you help me please...?
>
> --
> View this message in context: 
> http://maven.40175.n5.nabble.com/Help-to-add-Oracle-JDBC-driver-tp5659525p5664349.html
> Sent from the Maven Developers mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
> For additional commands, e-mail: dev-h...@maven.apache.org
>

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

Reply via email to