Re: Help to add Oracle JDBC driver

2012-04-30 Thread copyto27
Hi,

It works!!

thansk!

--
View this message in context: 
http://maven.40175.n5.nabble.com/Help-to-add-Oracle-JDBC-driver-tp5659525p5675284.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



Re: Help to add Oracle JDBC driver

2012-04-25 Thread John Patrick
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-QYQyQoTI/-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  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 
> : or :[:]:.
> 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 

Re: Help to add Oracle JDBC driver

2012-04-25 Thread copyto27
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 
: or :[:]:.
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



Re: Help to add Oracle JDBC driver

2012-04-24 Thread Manfred Moser
Your Java home points to a JRE .. Maven is a Java development tool and
therefore needs the JDK.


On Tue, April 24, 2012 12:57 am, copyto27 wrote:
> Hi john
>
> I tried all you told me, but i continue with the same error
>
> the result of the mvn -version command
>
> PS C:\> mvn -version
> Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)
> Maven home: C:\CGSI\apache-maven-3.0.4\bin\..
> Java version: 1.6.0_31, vendor: Sun Microsystems Inc.
> Java home: C:\Program Files\Java\jre6
> Default locale: es_ES, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"
>
> thanks!
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Help-to-add-Oracle-JDBC-driver-tp5659525p5661256.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



Re: Help to add Oracle JDBC driver

2012-04-24 Thread copyto27
Hi john

I tried all you told me, but i continue with the same error

the result of the mvn -version command

PS C:\> mvn -version
Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)
Maven home: C:\CGSI\apache-maven-3.0.4\bin\..
Java version: 1.6.0_31, vendor: Sun Microsystems Inc.
Java home: C:\Program Files\Java\jre6
Default locale: es_ES, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"

thanks!

--
View this message in context: 
http://maven.40175.n5.nabble.com/Help-to-add-Oracle-JDBC-driver-tp5659525p5661256.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



Re: Help to add Oracle JDBC driver

2012-04-23 Thread John Patrick
If you still get errors can you send over the output from "mvn -version"

Also if you do the following in a new directory what does it say, mine does:

$ mkdir qwerty-20120423
$ cd qwerty-20120423
$ mvn install:install-file -Dfile=qwerty
[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] 
[INFO] BUILD FAILURE
[INFO] 
[INFO] Total time: 0.869s
[INFO] Finished at: Mon Apr 23 17:05:11 BST 2012
[INFO] Final Memory: 3M/81M
[INFO] 
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-install-plugin:2.3.1:install-file
(default-cli) on project standalone-pom: The artifact information is
incomplete or not valid:
[ERROR] [0]  'groupId' is missing.
[ERROR] [1]  'artifactId' is missing.
[ERROR] [2]  'packaging' is missing.
[ERROR] [3]  'version' is missing.
[ERROR] -> [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/MojoExecutionException

Which is the correct error when I miss all the require options for
install:install-file.

John

On 23 April 2012 17:00, John Patrick  wrote:
> Try going into the directory which contains the jar, so it's just ...
> -Dfile=ojdbc6-11.1.0.7.0.jar ...
>
> On 23 April 2012 16:55, copyto27  wrote:
>> Hi John
>>
>> I tried too with "-DgeneratePom=true" but i have the same problem
>>
>> :(
>>
>> --
>> View this message in context: 
>> http://maven.40175.n5.nabble.com/Help-to-add-Oracle-JDBC-driver-tp5659525p5659746.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



Re: Help to add Oracle JDBC driver

2012-04-23 Thread John Patrick
Try going into the directory which contains the jar, so it's just ...
-Dfile=ojdbc6-11.1.0.7.0.jar ...

On 23 April 2012 16:55, copyto27  wrote:
> Hi John
>
> I tried too with "-DgeneratePom=true" but i have the same problem
>
> :(
>
> --
> View this message in context: 
> http://maven.40175.n5.nabble.com/Help-to-add-Oracle-JDBC-driver-tp5659525p5659746.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



Re: Help to add Oracle JDBC driver

2012-04-23 Thread copyto27
Hi John

I tried too with "-DgeneratePom=true" but i have the same problem

:(

--
View this message in context: 
http://maven.40175.n5.nabble.com/Help-to-add-Oracle-JDBC-driver-tp5659525p5659746.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



Re: Help to add Oracle JDBC driver

2012-04-23 Thread John Patrick
I think it might be as simple as add -DgeneratePom=true.

I would suggest not doing it my hand on the command line but create a
separate pom, maybe a module for your project or maybe for your
company where command 3rd party jars can be installed.

i.e.
[...]
   
  
 
org.apache.maven.plugins
maven-install-plugin
2.3.1
false

[...]
   
  install:com.oracle:ojdbc6:11g
  validate
  
 install-file
  
  

${project.basedir}/com/oracle/ojdbc6/ojdbc6.jar
 com.oracle
 ojdbc6
 11g
 jar
 true
 true
  
   
[...]

The main reason is it is then consistent for each developer and
potentially continuous integration can automatically push into your
local/project/company repository.

I then have that wrapping '3rd-party' pom as a dependency for the main
project pom and it's version is increased with each new dependency. So
when a developer sync's and a new dependency instead of where is
oracle x, they also get 3rd-party x.

John

On 23 April 2012 15:23, copyto27  wrote:
> Hi,
>
> I'm traying to add the Oracle JDBC driver to my maven local repository with
> this commad:
>
> mvn install:install-file
> -Dfile=C:\apache-maven-3.0.4\lib\ojdbc6-11.1.0.7.0.jar -DgroupId=com.oracle
> -DartifactId=ojdbc6 -Dversion=11.1.0.7.0 -Dpackaging=jar
>
> but maven return the next error:
>
> [INFO] Scanning for projects...
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 0.249s
> [INFO] Finished at: Mon Apr 23 16:06:48 CEST 2012
> [INFO] Final Memory: 1M/15M
> [INFO]
> 
> [ERROR] The goal you specified requires a project to execute but there is no
> POM in this directory (C:\). Please verify
> you invoked Maven from the correct directory. -> [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:
>
>
> What am I doing wrong?
>
> thanks!!
>
> --
> View this message in context: 
> http://maven.40175.n5.nabble.com/Help-to-add-Oracle-JDBC-driver-tp5659525p5659525.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