Re: mvn release:prepare using git, fatal: pom.xml is outside repository

2010-04-13 Thread Ricky Clarkson
Hi again,

I've now created a test case, at
http://github.com/rickyclarkson/maven-git-testcase

It's started to affect more projects, as I'm moving over to git a
project at a time, and I'm resorting to manual releases at the moment.
 I've already made a mistake, though not a serious one, so I'm keen to
get this resolved.

You can reproduce the problem I have by doing (using Git Bash on Windows):

git clone http://github.com/rickyclarkson/maven-git-testcase.git
mvn --batch-mode release:prepare

You might observe that the scm URL in there would not be a URL that
one can push to (it's http, not ssh), but my experiments have shown
that the failure happens even if the URL can be pushed to, so to keep
reproduction of the problem simple, I used a read-only scm URL.  I
have tested this on Windows, with and without a space in the directory
name (i.e., in C:\Documents and Settings, and in C:\deleteme).  I have
also tested this on Linux, and found that it succeeds (well, it gets
as far as not being able to push), so I suppose I have a workaround -
release on Linux, then checkout the tag on Windows to deploy
artifacts.

The git installation I have is via Git Bash (msysgit), and hasn't been
configured other than user.name, user.email and core.autocrlf.

git add on the same file manually succeeds, it is only from maven that it fails.

The problem does not occur in a single-module project.

Is there any more information I can give that might help?

Thanks,
Ricky.

--
Ricky Clarkson
Java and Scala Programmer, AD Holdings
+44 1928 706373
Skype: ricky_clarkson
Google Talk: ricky.clark...@gmail.com
Google Wave: ricky.clark...@googlewave.com



On 6 April 2010 07:08, Ricky Clarkson ricky.clark...@gmail.com wrote:
 Hi Mark,

 Yes, ./ is a repository.  It's a multi-module project, in one git
 repository.  I just realised that the open source project it works
 fine on doesn't have child modules.  I'll add one and try to do
 another release of that.

 Thanks,
 Ricky.

 --
 Ricky Clarkson
 Java and Scala Programmer, AD Holdings
 +44 1928 706373
 Skype: ricky_clarkson
 Google Talk: ricky.clark...@gmail.com
 Google Wave: ricky.clark...@googlewave.com



 On 5 April 2010 23:29, Mark Derricutt m...@talios.com wrote:
 Is ./ a git repository?  Or are ./native-launcher and ./skytab two
 separate repositories?  My guess is the later, and maven is telling
 you that your ./pom.xml is not actually in a repository?

 --
 Pull me down under...

 On Wed, Mar 31, 2010 at 2:27 AM, Ricky Clarkson
 ricky.clark...@gmail.com wrote:
 Hi Mark,

 ./native-launcher/pom.xml
 ./skytab/src/main/assembly/bin.xml
 ./skytab/src/main/java/uk/org/netvu/skytab/SkyTab.java
 ./skytab/pom.xml
 ./pom.xml

 I start my mvn release:prepare from the top of that (. in the listing 
 above).

 Thanks,
 Ricky.

 --
 Ricky Clarkson
 Java and Scala Programmer, AD Holdings
 +44 1928 706373
 Skype: ricky_clarkson
 Google Talk: ricky.clark...@gmail.com
 Google Wave: ricky.clark...@googlewave.com



 On 30 March 2010 13:43, Mark Struberg strub...@yahoo.de wrote:
 Can you post a tree of your project structure?

 And from where in the project tree do you start the release?

 txs,
 strub

 --- Ricky Clarkson rclark...@ad-holdings.co.uk schrieb am Di, 30.3.2010:

 Von: Ricky Clarkson rclark...@ad-holdings.co.uk
 Betreff: mvn release:prepare using git, fatal: pom.xml is outside 
 repository
 An: Maven Users List users@maven.apache.org
 Datum: Dienstag, 30. März, 2010 14:21 Uhr
 Hi,

 I'm trying to tag a release using mvn release:prepare, and
 I see that
 a child module's pom.xml cannot be committed:

 The git-add command failed.
 Command output:
 fatal: 'C:\Documents and
 Settings\Ricky\SkyTab\skytab\pom.xml' is
 outside repository

 Any suggestions?

 Thanks,
 Ricky.

 --
 Ricky Clarkson
 Java and Scala Programmer, AD Holdings
 +44 1928 706373
 Skype: ricky_clarkson
 Google Talk: ricky.clark...@gmail.com
 Google Wave: ricky.clark...@googlewave.com

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



 __
 Do You Yahoo!?
 Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz 
 gegen Massenmails.
 http://mail.yahoo.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



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

Re: mvn release:prepare using git, fatal: pom.xml is outside repository

2010-04-06 Thread Ricky Clarkson
Hi Mark,

Yes, ./ is a repository.  It's a multi-module project, in one git
repository.  I just realised that the open source project it works
fine on doesn't have child modules.  I'll add one and try to do
another release of that.

Thanks,
Ricky.

--
Ricky Clarkson
Java and Scala Programmer, AD Holdings
+44 1928 706373
Skype: ricky_clarkson
Google Talk: ricky.clark...@gmail.com
Google Wave: ricky.clark...@googlewave.com



On 5 April 2010 23:29, Mark Derricutt m...@talios.com wrote:
 Is ./ a git repository?  Or are ./native-launcher and ./skytab two
 separate repositories?  My guess is the later, and maven is telling
 you that your ./pom.xml is not actually in a repository?

 --
 Pull me down under...

 On Wed, Mar 31, 2010 at 2:27 AM, Ricky Clarkson
 ricky.clark...@gmail.com wrote:
 Hi Mark,

 ./native-launcher/pom.xml
 ./skytab/src/main/assembly/bin.xml
 ./skytab/src/main/java/uk/org/netvu/skytab/SkyTab.java
 ./skytab/pom.xml
 ./pom.xml

 I start my mvn release:prepare from the top of that (. in the listing above).

 Thanks,
 Ricky.

 --
 Ricky Clarkson
 Java and Scala Programmer, AD Holdings
 +44 1928 706373
 Skype: ricky_clarkson
 Google Talk: ricky.clark...@gmail.com
 Google Wave: ricky.clark...@googlewave.com



 On 30 March 2010 13:43, Mark Struberg strub...@yahoo.de wrote:
 Can you post a tree of your project structure?

 And from where in the project tree do you start the release?

 txs,
 strub

 --- Ricky Clarkson rclark...@ad-holdings.co.uk schrieb am Di, 30.3.2010:

 Von: Ricky Clarkson rclark...@ad-holdings.co.uk
 Betreff: mvn release:prepare using git, fatal: pom.xml is outside 
 repository
 An: Maven Users List users@maven.apache.org
 Datum: Dienstag, 30. März, 2010 14:21 Uhr
 Hi,

 I'm trying to tag a release using mvn release:prepare, and
 I see that
 a child module's pom.xml cannot be committed:

 The git-add command failed.
 Command output:
 fatal: 'C:\Documents and
 Settings\Ricky\SkyTab\skytab\pom.xml' is
 outside repository

 Any suggestions?

 Thanks,
 Ricky.

 --
 Ricky Clarkson
 Java and Scala Programmer, AD Holdings
 +44 1928 706373
 Skype: ricky_clarkson
 Google Talk: ricky.clark...@gmail.com
 Google Wave: ricky.clark...@googlewave.com

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



 __
 Do You Yahoo!?
 Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz 
 gegen Massenmails.
 http://mail.yahoo.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



 -
 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: mvn release:prepare using git, fatal: pom.xml is outside repository

2010-04-04 Thread Ricky Clarkson
Hi Mark,

I haven't solved the problem in that project yet, but an open source
project I just created works fine for the same thing, so I'm sure I'll
get there on the closed-source project I was asking about.

Thanks,
Ricky.

--
Ricky Clarkson
Java and Scala Programmer, AD Holdings
+44 1928 706373
Skype: ricky_clarkson
Google Talk: ricky.clark...@gmail.com
Google Wave: ricky.clark...@googlewave.com



On 1 April 2010 21:42, Mark Struberg strub...@yahoo.de wrote:
 No idea, could just guess.

 1st idea: Sometimes there are still problems with spaces on windows 
 directories. can you please move the directory to c:\develop or something?

 if that doesn't work then please post a mvn -X log.

 txs and LieGrue,
 strub

 --- Ricky Clarkson ricky.clark...@gmail.com schrieb am Di, 30.3.2010:

 Von: Ricky Clarkson ricky.clark...@gmail.com
 Betreff: Re: mvn release:prepare using git, fatal: pom.xml is outside  
 repository
 An: Maven Users List users@maven.apache.org
 Datum: Dienstag, 30. März, 2010 15:27 Uhr
 Hi Mark,

 ./native-launcher/pom.xml
 ./skytab/src/main/assembly/bin.xml
 ./skytab/src/main/java/uk/org/netvu/skytab/SkyTab.java
 ./skytab/pom.xml
 ./pom.xml

 I start my mvn release:prepare from the top of that (. in
 the listing above).

 Thanks,
 Ricky.

 --
 Ricky Clarkson
 Java and Scala Programmer, AD Holdings
 +44 1928 706373
 Skype: ricky_clarkson
 Google Talk: ricky.clark...@gmail.com
 Google Wave: ricky.clark...@googlewave.com



 On 30 March 2010 13:43, Mark Struberg strub...@yahoo.de
 wrote:
  Can you post a tree of your project structure?
 
  And from where in the project tree do you start the
 release?
 
  txs,
  strub
 
  --- Ricky Clarkson rclark...@ad-holdings.co.uk
 schrieb am Di, 30.3.2010:
 
  Von: Ricky Clarkson rclark...@ad-holdings.co.uk
  Betreff: mvn release:prepare using git, fatal:
 pom.xml is outside repository
  An: Maven Users List users@maven.apache.org
  Datum: Dienstag, 30. März, 2010 14:21 Uhr
  Hi,
 
  I'm trying to tag a release using mvn
 release:prepare, and
  I see that
  a child module's pom.xml cannot be committed:
 
  The git-add command failed.
  Command output:
  fatal: 'C:\Documents and
  Settings\Ricky\SkyTab\skytab\pom.xml' is
  outside repository
 
  Any suggestions?
 
  Thanks,
  Ricky.
 
  --
  Ricky Clarkson
  Java and Scala Programmer, AD Holdings
  +44 1928 706373
  Skype: ricky_clarkson
  Google Talk: ricky.clark...@gmail.com
  Google Wave: ricky.clark...@googlewave.com
 
 
 -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 
 
  __
  Do You Yahoo!?
  Sie sind Spam leid? Yahoo! Mail verfügt über einen
 herausragenden Schutz gegen Massenmails.
  http://mail.yahoo.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



 __
 Do You Yahoo!?
 Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz 
 gegen Massenmails.
 http://mail.yahoo.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



mvn release:prepare using git, fatal: pom.xml is outside repository

2010-03-30 Thread Ricky Clarkson
Hi,

I'm trying to tag a release using mvn release:prepare, and I see that
a child module's pom.xml cannot be committed:

The git-add command failed.
Command output:
fatal: 'C:\Documents and Settings\Ricky\SkyTab\skytab\pom.xml' is
outside repository

Any suggestions?

Thanks,
Ricky.

--
Ricky Clarkson
Java and Scala Programmer, AD Holdings
+44 1928 706373
Skype: ricky_clarkson
Google Talk: ricky.clark...@gmail.com
Google Wave: ricky.clark...@googlewave.com

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



Re: mvn release:prepare using git, fatal: pom.xml is outside repository

2010-03-30 Thread Ricky Clarkson
Hi Mark,

./native-launcher/pom.xml
./skytab/src/main/assembly/bin.xml
./skytab/src/main/java/uk/org/netvu/skytab/SkyTab.java
./skytab/pom.xml
./pom.xml

I start my mvn release:prepare from the top of that (. in the listing above).

Thanks,
Ricky.

--
Ricky Clarkson
Java and Scala Programmer, AD Holdings
+44 1928 706373
Skype: ricky_clarkson
Google Talk: ricky.clark...@gmail.com
Google Wave: ricky.clark...@googlewave.com



On 30 March 2010 13:43, Mark Struberg strub...@yahoo.de wrote:
 Can you post a tree of your project structure?

 And from where in the project tree do you start the release?

 txs,
 strub

 --- Ricky Clarkson rclark...@ad-holdings.co.uk schrieb am Di, 30.3.2010:

 Von: Ricky Clarkson rclark...@ad-holdings.co.uk
 Betreff: mvn release:prepare using git, fatal: pom.xml is outside repository
 An: Maven Users List users@maven.apache.org
 Datum: Dienstag, 30. März, 2010 14:21 Uhr
 Hi,

 I'm trying to tag a release using mvn release:prepare, and
 I see that
 a child module's pom.xml cannot be committed:

 The git-add command failed.
 Command output:
 fatal: 'C:\Documents and
 Settings\Ricky\SkyTab\skytab\pom.xml' is
 outside repository

 Any suggestions?

 Thanks,
 Ricky.

 --
 Ricky Clarkson
 Java and Scala Programmer, AD Holdings
 +44 1928 706373
 Skype: ricky_clarkson
 Google Talk: ricky.clark...@gmail.com
 Google Wave: ricky.clark...@googlewave.com

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



 __
 Do You Yahoo!?
 Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz 
 gegen Massenmails.
 http://mail.yahoo.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



Specifying maven-assembly-plugin descriptors from separate profiles

2009-12-23 Thread Ricky Clarkson
Hi,

I have one profile, windows, which configures the
maven-assembly-plugin with the src/main/assembly/win32.xml assembly
descriptor, and another profile, installer, which configures it with
the src/main/assembly/executable.xml assembly descriptor.
Unfortunately specifying -Pinstaller makes it so that the
effective-pom only refers to the src/main/assembly/executable.xml
descriptor.

Is there a way of making it so that the descriptors get aggregated
rather than replaced when specified from separate profiles, or is
there a better way of going about this problem that I'm missing?

Thanks,
Ricky.

-- 
Ricky Clarkson
Java and Scala Programmer, AD Holdings
Skype: ricky_clarkson
Google Talk: ricky.clark...@gmail.com
Google Wave: ricky.clark...@googlewave.com

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



Re: Specifying maven-assembly-plugin descriptors from separate profiles

2009-12-23 Thread Ricky Clarkson
I think I have an answer.

Have the windows profile set the property
os-specific-descriptorwindows/os-specific-descriptor, then in the
installer profile, specify
descriptor${os-specific-descriptor}/descriptor
descriptorsrc/main/assembly/executable.xml/descriptor.  To reduce
duplication, I'll need a no-installer profile which is activated
whenever installer isn't, but for the moment each OS-specific profile
will specify the descriptor name twice, which is still duplication,
but more localised than before!

Ricky.

2009/12/23 Ricky Clarkson ricky.clark...@gmail.com:
 Hi,

 I have one profile, windows, which configures the
 maven-assembly-plugin with the src/main/assembly/win32.xml assembly
 descriptor, and another profile, installer, which configures it with
 the src/main/assembly/executable.xml assembly descriptor.
 Unfortunately specifying -Pinstaller makes it so that the
 effective-pom only refers to the src/main/assembly/executable.xml
 descriptor.

 Is there a way of making it so that the descriptors get aggregated
 rather than replaced when specified from separate profiles, or is
 there a better way of going about this problem that I'm missing?

 Thanks,
 Ricky.

 --
 Ricky Clarkson
 Java and Scala Programmer, AD Holdings
 Skype: ricky_clarkson
 Google Talk: ricky.clark...@gmail.com
 Google Wave: ricky.clark...@googlewave.com




-- 
Ricky Clarkson
Java and Scala Programmer, AD Holdings
Skype: ricky_clarkson
Google Talk: ricky.clark...@gmail.com
Google Wave: ricky.clark...@googlewave.com

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



Re: Activating a profile based on the deactivation of other profiles

2009-11-23 Thread Ricky Clarkson
Hi Wendy,

Thanks a lot, that worked well, when I finally got around to trying it out!

Ricky.

2009/10/28 Wendy Smoak wsm...@gmail.com:
 On Wed, Oct 28, 2009 at 5:11 AM, Ricky Clarkson
 ricky.clark...@gmail.com wrote:

 So my question is; how can I make it so that development-brand is
 activated only if none of the other brands are?

 You're on the right track by activating the default profile on the
 *absence* of a property with the !.

 Now, stop using -P to activate the other profiles, and switch to using
 -D=[value].

 You'll need to add similar activation sections to the other branded ones.

 Then you can activate exactly one profile with -Dbrand=... (or
 nothing, for the default).

 --
 Wendy

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





-- 
Ricky Clarkson
Java and Scala Programmer, AD Holdings
+44 1565 770804
Skype: ricky_clarkson
Google Talk: ricky.clark...@gmail.com
Google Wave: ricky.clark...@googlewave.com

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



Re: Automated Build and Check In

2009-11-11 Thread Ricky Clarkson
I'd suggest not checking binaries in if you can help it.  Source control
isn't particularly efficient with binaries.

2009/11/11 Neil Chaudhuri nchaudh...@potomacfusion.com

 I would like to do something very simple at regular intervals (say every
 hour):

 *Build the primary artifact-- a WAR file
 *Check it into SVN at a specified location in the trunk

 How could I do this?

 Thanks.




-- 
Ricky Clarkson
Java and Scala Programmer, AD Holdings
+44 1565 770804
Skype: ricky_clarkson
Google Talk: ricky.clark...@gmail.com
Google Wave: ricky.clark...@googlewave.com


Activating a profile based on the deactivation of other profiles

2009-10-28 Thread Ricky Clarkson
Hi,

Before my involvement in this project, we would make a branded version
of our software by going into the pom and changing
artifactIddevelopment-brand/artifactId to
artifactIdad-brand/artifactId in a dependency declaration, for a
number of brands, then running mvn assembly:assembly again.  This
worked, but was so awkward that branded versions just didn't get built
until somebody basically begged for them.

I've moved the dependency stating development-brand to a profile named
development-brand, and created a number of other profiles for each
brand.  If I use mvn assembly:assembly -Pad-brand,-development-brand I
get an AD-branded version, which is nice, but now just mvn
assembly:assembly does not work at all; the build completes but the
application won't start because of a missing dependency.  mvn
help:active-profiles confirms that development-brand is not included
by default.

An activation of activeByDefaulttrue/activeByDefault for
development-brand won't help, as we always have another, pre-existing
profile, activated, windows, linux or osx.  Naming the profile
'default' won't help either for the same reason.

I tried, in the ad-brand profile, setting
propertiesbrandad-brand/brand/properties and having
development-brand
activationproperty!brand/property/activation, but then found
that development-brand was activated all the time, unless explicitly
deactivated on the command-line, which at least makes the default case
of no -P parameter work.  It seems like the activations are all
decided before the first activated profile's elements are used.

So my question is; how can I make it so that development-brand is
activated only if none of the other brands are?

-- 
Ricky Clarkson
Java and Scala Programmer, AD Holdings
+44 1565 770804
Skype: ricky_clarkson
Google Talk: ricky.clark...@gmail.com
Google Wave: ricky.clark...@googlewave.com

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



deploying project jars on maven repo

2009-08-07 Thread Ricky
Hi,
What is the process a project has to go through if it wants to get its jars
deployed on a maven repo? (so that they can then be referenced on POM using
dependency / tag).

Any guidelines / suggestions?


Rick


Re: deploying project jars on maven repo

2009-08-07 Thread Ricky
I knew I would that response :) sorry i wasn't clear enough, I meant
deploying to: http://repo1.maven.org/ repository ...
http://repo1.maven.org/Rick

On Fri, Aug 7, 2009 at 4:42 PM, Todd Thiessen thies...@nortel.com wrote:

 Simply issue a mvn deploy command. Have you read through the definitve
 guide?

 http://www.sonatype.com/books/maven-book/reference/

 ---
 Todd Thiessen


  -Original Message-
  From: Ricky [mailto:ricky...@gmail.com]
  Sent: Friday, August 07, 2009 4:39 PM
  To: Maven Users List
  Subject: deploying project jars on maven repo
 
  Hi,
  What is the process a project has to go through if it wants
  to get its jars deployed on a maven repo? (so that they can
  then be referenced on POM using dependency / tag).
 
  Any guidelines / suggestions?
 
 
  Rick
 

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



Re: deploying project jars on maven repo

2009-08-07 Thread Ricky
Just what I needed, your the man!
Rick

On Fri, Aug 7, 2009 at 4:46 PM, Todd Thiessen thies...@nortel.com wrote:

 There is a guide here:

 http://maven.apache.org/guides/mini/guide-central-repository-upload.html

 ---
 Todd Thiessen


  -Original Message-
  From: Ricky [mailto:ricky...@gmail.com]
  Sent: Friday, August 07, 2009 4:45 PM
  To: Maven Users List
  Subject: Re: deploying project jars on maven repo
 
  I knew I would that response :) sorry i wasn't clear enough,
  I meant deploying to: http://repo1.maven.org/ repository ...
  http://repo1.maven.org/Rick
 
  On Fri, Aug 7, 2009 at 4:42 PM, Todd Thiessen
  thies...@nortel.com wrote:
 
   Simply issue a mvn deploy command. Have you read through
  the definitve
   guide?
  
   http://www.sonatype.com/books/maven-book/reference/
  
   ---
   Todd Thiessen
  
  
-Original Message-
From: Ricky [mailto:ricky...@gmail.com]
Sent: Friday, August 07, 2009 4:39 PM
To: Maven Users List
Subject: deploying project jars on maven repo
   
Hi,
What is the process a project has to go through if it
  wants to get
its jars deployed on a maven repo? (so that they can then be
referenced on POM using dependency / tag).
   
Any guidelines / suggestions?
   
   
Rick
   
  
  
  -
   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




Web project archetype

2009-05-24 Thread Ricky
Hi,

When i generate using a simple mvn archetype:generate and select option 18
(simple web project), I only get src/main/resources as the source folder,
How can i include src/main/java and src/main/test and script folders to this
generated project, I tried using:
sourceDirectorysrc/main/java/sourceDirectory inside the build tag.
but apparently its not working
**
Any suggestions/pointers/links?

Regards
Vyas, Anirudh


Archetype, deploying questions

2009-03-10 Thread Ricky
Hi,

I am working on an open source project which has 6 sub-project modules,  I
am hoping to deploy the project (not now, probably when I am ready) to maven
production repsoitory.My question to maven community would be:

What are the aspects for maven people to consider a project viable for
getting deployed onto a production repository? So that My users or commiters
can use the project by simply declaring the dependencies for the project.

Regards
Vyas, Anirudh


JS maven project

2009-03-05 Thread Ricky
Hi,

I am trying to create a JS maven project, is there any archetype or a plugin
that I must know about? I tried
http://mojo.codehaus.org/javascript-maven-tools/ and unfortunately the maven
plugin for the same doesn't work. Any suggestions? This project will be part
of a larger project which has about 6 projects in it (some Web UI based,
some Plain Java, Some Hibernate / JPA projects).

Any help would be appreciable.

Regards
Vyas, Anirudh
||  ॐ  ||


Re: Installing Maven on Mac OS X

2008-11-25 Thread Ricky
Hey Guys,

I did an export on environment variables and the maven version changed and
worked fine. Thanks for your help, appreciate it. Gabriel, what is mac
ports  ... i have been hearing some stuff about it, just curious if you
don't mind my asking...

On Mon, Nov 24, 2008 at 11:22 AM, Gabriel Garcia [EMAIL PROTECTED]wrote:

 Rick,

 Apart from Wendy's instructions, you can also install Maven with tools
 that'll make it just work for you:

 I use Maven with Mac OS X 10.5 (Leopard) and Maven 2.0.9 without a
 problem, but I I used darwinports: http://darwinports.com/ (a simple
 sudo port install maven2 would install it in /opt, all you need to do
 is add /opt/local/bin to your PATH in your profile). Fink
 (http://www.finkproject.org/) also has it, but its latest Maven
 version is 2.0.7, whilst darwinports's is 2.0.9.

 Good luck with either suggestion,


 Gabriel

 2008/11/24 Wendy Smoak [EMAIL PROTECTED]:
  On Mon, Nov 24, 2008 at 9:12 AM, Ricky [EMAIL PROTECTED] wrote:
 
  I get this error that saying :
  INFO] Ignoring available plugin update: 2.0-alpha-4 as it requires Maven
  version 2.0.7
  ...
  when i do mvn -v i get version 2.0.6 ... what should i do?
 
  Set M2_HOME to your new Maven install, and make sure $M2_HOME/bin is
  on your PATH before the directory where the default mvn lives.
 
  http://maven.apache.org/download.html#Installation
 
  --
  Wendy
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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




Re: Installing Maven on Mac OS X

2008-11-24 Thread Ricky
Wendy,

Thanks for replying. I think you are right ...

I get this error that saying :
INFO] Ignoring available plugin update: 2.0-alpha-4 as it requires Maven
version 2.0.7
[INFO] Ignoring available plugin update: 2.0-alpha-3 as it requires Maven
version 2.0.7
[INFO] Ignoring available plugin update: 2.0-alpha-2 as it requires Maven
version 2.0.7
[INFO] Ignoring available plugin update: 2.0-alpha-1 as it requires Maven
version 2.0.7
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] Required goal not found: archetype:generate
[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time:  1 second
[INFO] Finished at: Mon Nov 24 11:10:04 EST 2008
[INFO] Final Memory: 2M/4M
[INFO]

anirudh-vyas-macbook:~ anirudh$

when i do mvn -v i get version 2.0.6 ... what should i do?


On Sun, Nov 23, 2008 at 12:00 PM, Wendy Smoak [EMAIL PROTECTED] wrote:

 In order to help, we need to know what steps you took and what error
 message you're getting.

 I believe OS X ships with Maven 2.0.6, so if you haven't gotten it
 completely switched over to (I assume) 2.0.9, the archetype:generate
 goal will not be available as Archetype 2 requires at least 2.0.7.

 What is the output of mvn -v ?  Of echo $M2_HOME ?

 --
 Wendy

 On Sun, Nov 23, 2008 at 9:55 AM, Ricky [EMAIL PROTECTED] wrote:
  Hi,
 
  I am trying to install maven on my mac book, Mac OS X. when i do mvn, it
  runs alright; but when i try to do :
 
  mvn archetype:generate .. it gives build failure... My guess is that i am
  missing some steps, can someone point me to either a URL or guide me
 through
  the steps for installing this on mac os x. I already have installed maven
 on
  vista and XP before ... but kinda new to mac os x ... any help would be
  appreciable,
 
  --
  Regards
  Vyas, Anirudh
  ||  ॐ  ||
 




-- 

Regards
Vyas, Anirudh
||  ॐ  ||


Re: Installing Maven on Mac OS X

2008-11-24 Thread Ricky
Wendy,

Thanks for replying. I think you are right ...

I get this error that saying :
INFO] Ignoring available plugin update: 2.0-alpha-4 as it requires Maven
version 2.0.7
[INFO] Ignoring available plugin update: 2.0-alpha-3 as it requires Maven
version 2.0.7
[INFO] Ignoring available plugin update: 2.0-alpha-2 as it requires Maven
version 2.0.7
[INFO] Ignoring available plugin update: 2.0-alpha-1 as it requires Maven
version 2.0.7
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] Required goal not found: archetype:generate
[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time:  1 second
[INFO] Finished at: Mon Nov 24 11:10:04 EST 2008
[INFO] Final Memory: 2M/4M
[INFO]

anirudh-vyas-macbook:~ anirudh$

when i do mvn -v i get version 2.0.6 ... what should i do?


On Sun, Nov 23, 2008 at 12:00 PM, Wendy Smoak [EMAIL PROTECTED] wrote:

 In order to help, we need to know what steps you took and what error
 message you're getting.

 I believe OS X ships with Maven 2.0.6, so if you haven't gotten it
 completely switched over to (I assume) 2.0.9, the archetype:generate
 goal will not be available as Archetype 2 requires at least 2.0.7.

 What is the output of mvn -v ?  Of echo $M2_HOME ?

 --
 Wendy

 On Sun, Nov 23, 2008 at 9:55 AM, Ricky [EMAIL PROTECTED] wrote:
  Hi,
 
  I am trying to install maven on my mac book, Mac OS X. when i do mvn, it
  runs alright; but when i try to do :
 
  mvn archetype:generate .. it gives build failure... My guess is that i am
  missing some steps, can someone point me to either a URL or guide me
 through
  the steps for installing this on mac os x. I already have installed maven
 on
  vista and XP before ... but kinda new to mac os x ... any help would be
  appreciable,
 
  --
  Regards
  Vyas, Anirudh
  ||  ॐ  ||
 




-- 

Regards
Vyas, Anirudh
||  ॐ  ||


Installing Maven on Mac OS X

2008-11-23 Thread Ricky
Hi,

I am trying to install maven on my mac book, Mac OS X. when i do mvn, it
runs alright; but when i try to do :

mvn archetype:generate .. it gives build failure... My guess is that i am
missing some steps, can someone point me to either a URL or guide me through
the steps for installing this on mac os x. I already have installed maven on
vista and XP before ... but kinda new to mac os x ... any help would be
appreciable,

--
Regards
Vyas, Anirudh
||  ॐ  ||


Running eclipse:eclipse on current trunk (Maven 3.0.x)

2008-10-31 Thread Ricky
Hi,

current trunk cannot be converted to an eclipse project(when i do
eclipse:clean eclipse:eclipse) it throws an error in parsing POM file; am i
missing some thing?


Regards
Vyas, Anirudh
||  ॐ  ||


installing third party jars to local repository issue

2008-10-24 Thread Ricky
Hi,

I ran the following command :

mvn install:install-file
-Dfile=c:\project\crystal\cr4e\concurrent\1.0\concurrent-1.0.jar
-DgroupId=com.crystal -Dversion=1.0   -DgeneratePom=true
-DcreateChecksum=true -Dclassifier=sources -DcreateChecksum=true
-Dclassifier=sources  -Dpackaging=jar -DartifactId=cr4e-concurrent

to install concurrent jar file on my local repository;It worked as i noticed
that it generated valid .pom, sha1 files and created folder structure
necessary.

However when i referenced the same jar with group id, artifact id matching
as in :

dependency
groupIdcom.crystal/groupId
artifactIdcr4e-concurrent/artifactId
version1.0/version
/dependency

It looks for dependency *NOT in local repository but in repo1.maven.org or
Archiva repository of our organization* and then it fails to find it. In my
conf\settings.xml file; i have
localRepository/Org_Name_Here/java/maven/repository/localRepository, but
i have commented out all mirrors that were being used for looking at
repositories outside.

However Still maven is *NOT *looking for jars in local repository and it
fails to find the artifact and tells me to run install:install-file to
install the artifact. Am i missing something?

Any help would be appreciable ...

Regards
Vyas, Anirudh
||  ॐ  ||


Re: installing third party jars to local repository issue

2008-10-24 Thread Ricky
Stevo,

Your the man! :-) ... removing -Dclassifier=sources works and your
explanation makes sense too.

Thanks a Lot, appreciate it.
Rick

On Fri, Oct 24, 2008 at 8:08 AM, Stevo Slavić [EMAIL PROTECTED] wrote:

 Hello RIcky,

 Remove -Dclassifier=sources, both of them, as you are not installing
 sources but binaries.

 Regards,
 Stevo.

 On Fri, Oct 24, 2008 at 2:00 PM, Ricky [EMAIL PROTECTED] wrote:

  Hi,
 
  I ran the following command :
 
  mvn install:install-file
  -Dfile=c:\project\crystal\cr4e\concurrent\1.0\concurrent-1.0.jar
  -DgroupId=com.crystal -Dversion=1.0   -DgeneratePom=true
  -DcreateChecksum=true -Dclassifier=sources -DcreateChecksum=true
  -Dclassifier=sources  -Dpackaging=jar -DartifactId=cr4e-concurrent
 
  to install concurrent jar file on my local repository;It worked as i
  noticed
  that it generated valid .pom, sha1 files and created folder structure
  necessary.
 
  However when i referenced the same jar with group id, artifact id
 matching
  as in :
 
  dependency
 groupIdcom.crystal/groupId
 artifactIdcr4e-concurrent/artifactId
 version1.0/version
 /dependency
 
  It looks for dependency *NOT in local repository but in repo1.maven.orgor
  Archiva repository of our organization* and then it fails to find it. In
 my
  conf\settings.xml file; i have
  localRepository/Org_Name_Here/java/maven/repository/localRepository,
  but
  i have commented out all mirrors that were being used for looking at
  repositories outside.
 
  However Still maven is *NOT *looking for jars in local repository and it
  fails to find the artifact and tells me to run install:install-file to
  install the artifact. Am i missing something?
 
  Any help would be appreciable ...
 
  Regards
  Vyas, Anirudh
  ||  ॐ  ||



Adding dependencies in POM for Crystal reports

2008-09-10 Thread Ricky
Hi Guys,

Can anyone tell me if crystal report libraries are available on maven
repository; if so how to add dependencies for the same? i.e. Artifact Id,
Version etc.

If not, is the only solution adding dependencies by installing individual
jars? if so which jars will be needed?

Any response would be appreciated.

Regards
Vyas, Anirudh
|| ॐ ||


Re: Deploying war to JBOSS using maven

2008-08-14 Thread Ricky
could be. I am going to dig and just as an FYI let you know. Thanks and
appreciate your response!

Rick

On Wed, Aug 13, 2008 at 6:34 PM, Siarhei Dudzin [EMAIL PROTECTED]wrote:

 On Thu, Aug 14, 2008 at 12:18 AM, Ricky [EMAIL PROTECTED] wrote:

  Hi,
 
  Thanks for your reply. I used jboss:harddeploy and it worked for me.
  However
  i see that jboss:start doesnt actually start the server. Am i missing
  something?


 I never used jboss plugin so I can't tell why it doesn't start.


  and also jboss:deploy vs hard deploy whats the difference?


 No idea, but I can imagine is that jboss:deploy is deployment via jmx
 deployer and hard deploy is just dropping the artifact to the hot
 deployment
 directory of jboss.

 Siarhei



Re: Inline Checkstyle Configuration

2008-08-14 Thread Ricky Clarkson
Thanks Wayne,

I have downloaded and built the source for that plugin, but between asking
the question and receiving your answer we implemented a workaround (the one
suggested in the CheckStyle plugin documentation - creating a dedicated
project for housing such config files).

Ricky.

2008/8/11 Wayne Fay [EMAIL PROTECTED]

 If the functionality is not there, then no one has ever asked for it
 or the developers responsible for the plugin never needed it
 themselves. In this case, I would assume that no one has ever asked
 for in-line configuration of Checkstyle.

 You are welcome to add that functionality directly yourself (by
 grabbing the plugin code from SVN and hacking it), or file a JIRA
 issue and wait for someone else to add it for you.

 Wayne

 On 8/11/08, Ricky Clarkson [EMAIL PROTECTED] wrote:
  Hi,
 
  We have just added CheckStyle (and a few others) to our project root's
  pom.xml, and managed to configure findbugs, cobertura etc., within the
  pom.xml, but the plugin for CheckStyle doesn't appear to support such
 inline
  configuration.  We read about configuring CheckStyle for multi-module
  projects on Maven's site, and the suggested solution was to create a
  separate build-tools project.  This is ok, but right now it would only be
  for the one CheckStyle config XML file, which seems overkill.  Is there
  another solution, or a good reason why the CheckStyle plugin doesn't
 support
  adding the configuration within pom.xml?
 
  Cheers,
  Ricky.
 

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




Re: Deploying war to JBOSS using maven

2008-08-14 Thread Ricky
Hey,

org.apache.maven.lifecycle.LifecycleExecutionException: Mojo error occurred:
Connection refused: connect
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:56
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecuto
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycle
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Mojo error
occurred: Connection refused: connect
at
org.codehaus.mojo.jboss.AbstractDeployerMojo.doURL(AbstractDeployerMojo.java:101)
at org.codehaus.mojo.jboss.DeployMojo.execute(DeployMojo.java:40)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:53
... 16 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.Socket.connect(Socket.java:518)
at java.net.Socket.connect(Socket.java:468)
Rick

On Thu, Aug 14, 2008 at 7:58 AM, Martin Gainty [EMAIL PROTECTED] wrote:


 Rick-
 please display stacktrace from your logMartin
 __ Disclaimer and
 confidentiality note Everything in this e-mail and any attachments relates
 to the official business of Sender. This transmission is of a confidential
 nature and Sender does not endorse distribution to any party other than
 intended recipient. Sender does not necessarily endorse content contained
 within this transmission.  Date: Thu, 14 Aug 2008 07:45:03 -0400 From:
 [EMAIL PROTECTED] To: users@maven.apache.org Subject: Re: Deploying war
 to JBOSS using maven  could be. I am going to dig and just as an FYI let
 you know. Thanks and appreciate your response!  Rick  On Wed, Aug 13,
 2008 at 6:34 PM, Siarhei Dudzin [EMAIL PROTECTED]wrote:   On
 Thu, Aug 14, 2008 at 12:18 AM, Ricky [EMAIL PROTECTED] wrote:   
 Hi, Thanks for your reply. I used jboss:harddeploy and it worked
 for me.   However   i see that jboss:start doesnt actually start the
 server. Am i missing   something?I never used jboss plugin so I
 can't tell why it doesn't start. and also jboss:deploy vs hard
 deploy whats the difference?No idea, but I can imagine is that
 jboss:deploy is deployment via jmx  deployer and hard deploy is just
 dropping the artifact to the hot  deployment  directory of jboss.  
 Siarhei 
 _
 Your PC, mobile phone, and online services work together like never before.
 http://clk.atdmt.com/MRT/go/108587394/direct/01/


Signing a jar in the assembly phase

2008-08-14 Thread Ricky Clarkson
Hi,

We would like to be able to sign our jar file for distribution, and have
noticed that the jar plugin has a sign task.  However, this task is part of
the package phase of the lifecycle, at which point we don't have the right
jar file - we want to do it when assembly:assembly is executed.  In which
direction should we be looking for solving this?  Forking the jar task?
Finding another plugin?

Thanks,
Ricky.


Deploying war to JBOSS using maven

2008-08-13 Thread Ricky
Hi,

I am using : http://mojo.codehaus.org/jboss-maven-plugin/usage.html to
deploy to JBOSS. I have set JBOSS_HOME as a system variable to
some-directory\jboss. Then i use the following entry in POM xml for the
project i am trying to deploy :
 plugin
groupIdorg.codehaus.mojo/groupId
artifactIdjboss-maven-plugin/artifactId
 configuration
 project/project
   jbossHome${JBOSS_HOME}/server/default/jbossHome
  port9090/port
/configuration
  /plugin


However, it doesn't work, when i do mvn jboss:deploy, following error :

*[INFO] No server specified for authentication - using defaults
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Mojo error occurred: Connection refused: connect*


*Any ideas??*

any help would be appreciable, thanks in advance.


Regards
Vyas, Anirudh
|| ॐ ||


Re: Deploying war to JBOSS using maven

2008-08-13 Thread Ricky
Hi,

Thanks for your reply. I used jboss:harddeploy and it worked for me. However
i see that jboss:start doesnt actually start the server. Am i missing
something? and also jboss:deploy vs hard deploy whats the difference?



On Wed, Aug 13, 2008 at 4:47 PM, Siarhei Dudzin [EMAIL PROTECTED]wrote:

 Does your JBoss instance listen to port 9090?

 Anyway, cargo plugin used to work for me.

 Siarhei

 On Wed, Aug 13, 2008 at 8:40 PM, Ricky [EMAIL PROTECTED] wrote:

  Hi,
 
  I am using : http://mojo.codehaus.org/jboss-maven-plugin/usage.html to
  deploy to JBOSS. I have set JBOSS_HOME as a system variable to
  some-directory\jboss. Then i use the following entry in POM xml for the
  project i am trying to deploy :
   plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdjboss-maven-plugin/artifactId
  configuration
  project/project
jbossHome${JBOSS_HOME}/server/default/jbossHome
   port9090/port
 /configuration
   /plugin
 
 
  However, it doesn't work, when i do mvn jboss:deploy, following error :
 
  *[INFO] No server specified for authentication - using defaults
  [INFO]
  
  [ERROR] BUILD ERROR
  [INFO]
  
  [INFO] Mojo error occurred: Connection refused: connect*
 
 
  *Any ideas??*
 
  any help would be appreciable, thanks in advance.
 
 
  Regards
  Vyas, Anirudh
  || ॐ ||
 




-- 

Regards
Vyas, Anirudh
|| ॐ ||


Inline Checkstyle Configuration

2008-08-11 Thread Ricky Clarkson
Hi,

We have just added CheckStyle (and a few others) to our project root's
pom.xml, and managed to configure findbugs, cobertura etc., within the
pom.xml, but the plugin for CheckStyle doesn't appear to support such inline
configuration.  We read about configuring CheckStyle for multi-module
projects on Maven's site, and the suggested solution was to create a
separate build-tools project.  This is ok, but right now it would only be
for the one CheckStyle config XML file, which seems overkill.  Is there
another solution, or a good reason why the CheckStyle plugin doesn't support
adding the configuration within pom.xml?

Cheers,
Ricky.


Re: Oracle drivers dependencies

2008-04-17 Thread Ricky
Wendy, Nicolas,

Thanks a bunch it worked. appreciate your help. :)

Rick

On Thu, Apr 17, 2008 at 1:31 AM, nicolas de loof [EMAIL PROTECTED] wrote:

 To use ojdbc14 version 10.2.0.2.0 ... you have to set your dependency to
 version 10.2.0.2.0 !

 also, the _g (jar compiled with debugs) version will not be used by
 maven
 until you tell him.
 rename the jar m2\repository\com\oracle\ojdbc14\10.2.0.2.0\ojdbc14-g.jar
 (-, not _)
 and add classifierg/classifier to your dependency.

 Nico.


 2008/4/17, Ricky [EMAIL PROTECTED]:
 
  Hey Wayne,
 
  I copied the jars manually to the m2 repository cache in path *
  .m2\repository\com\oracle\ojdbc14\10.2.0.2.0\ojdbc14_g*
 
  But when i run *mvn clean install*, it still says artifact is missing.
 Am
  i
  missing your point ? (My apologies if this sounds dumb)
 
  Rick
 
  On Thu, Apr 17, 2008 at 12:09 AM, Wayne Fay [EMAIL PROTECTED] wrote:
 
   No, Central does not host this jar, only the pom and the md5/sha1
 files.
  
   This jar must be downloaded and manually installed into your local
   repo cache due to Oracle's licensing requirements.
  
   Wayne
  
   On 4/16/08, Manos Batsis [EMAIL PROTECTED] wrote:
   
The repo has it [1], here the pom fragment:
   
   
groupIdcom.oracle/groupId
artifactIdojdbc14/artifactId
version9.0.2.0.0/version
   
[1]
http://repo1.maven.org/maven2/com/oracle/ojdbc14/9.0.2.0.0/
   
No idea whats wrong :-/
   
Manos
   
   
   
   
Ricky wrote:
 Hi,

 I am trying to add:
 *   dependency
groupIdcom.oracle/groupId
artifactIdojdbc14/artifactId
version9.0.2.0.0/version
/dependency*

 in my POM xml and i am getting :

 *Path to dependency:
1)

   
  
 
 PhoneBookJSFSpringHibernateTPOC:PhoneBookJSFSpringHibernateTPOC:war:0.0.1-SNAPSHOT
2) com.oracle:ojdbc14:jar:9.0.2.0.0

  com.oracle:ojdbc14:jar:9.0.2.0.0

 from the specified remote repositories:
  central (http://repo1.maven.org/maven2)


org.apache.maven.artifact.resolver.ArtifactNotFoundException:
Unable to
 download the artifact from any repository

 Try downloading the file manually from:

   
  http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html

 Then, install it using the command:
mvn install:install-file -DgroupId=com.oracle
  -DartifactId=ojdbc14
 -Dversion=9.0.2.0.0 -Dpackaging=jar -Dfile=/path/to/file

 Alternatively, if you host your own repository you can deploy the
  file
 there:
mvn deploy:deploy-file -DgroupId=com.oracle
 -DartifactId=ojdbc14
 -Dversion=9.0.2.0.0 -Dpackaging=jar -Dfile=/path/to/file
 -Durl=[url]
 -DrepositoryId=[id]

 Path to dependency:
1)

   
  
 
 PhoneBookJSFSpringHibernateTPOC:PhoneBookJSFSpringHibernateTPOC:war:0.0.1-SNAPSHOT
2) com.oracle:ojdbc14:jar:9.0.2.0.0


  com.oracle:ojdbc14:jar:9.0.2.0.0

 from the specified remote repositories:
  central 
 (http://repo1.maven.org/maven2)*http://repo1.maven.org/maven2%29*
 
  http://repo1.maven.org/maven2%29*


 *Am i doing something wrong ?*



 Regards
 Vyas, Anirudh
 || ॐ ||

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



Oracle drivers dependencies

2008-04-16 Thread Ricky
Hi,

I am trying to add:
 *   dependency
groupIdcom.oracle/groupId
artifactIdojdbc14/artifactId
version9.0.2.0.0/version
/dependency*

in my POM xml and i am getting :

*Path to dependency:
1)
PhoneBookJSFSpringHibernateTPOC:PhoneBookJSFSpringHibernateTPOC:war:0.0.1-SNAPSHOT
2) com.oracle:ojdbc14:jar:9.0.2.0.0

  com.oracle:ojdbc14:jar:9.0.2.0.0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to
download the artifact from any repository

Try downloading the file manually from:
http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html

Then, install it using the command:
mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc14
-Dversion=9.0.2.0.0 -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file
there:
mvn deploy:deploy-file -DgroupId=com.oracle -DartifactId=ojdbc14
-Dversion=9.0.2.0.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
-DrepositoryId=[id]

Path to dependency:
1)
PhoneBookJSFSpringHibernateTPOC:PhoneBookJSFSpringHibernateTPOC:war:0.0.1-SNAPSHOT
2) com.oracle:ojdbc14:jar:9.0.2.0.0


  com.oracle:ojdbc14:jar:9.0.2.0.0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)*


*Am i doing something wrong ?*



Regards
Vyas, Anirudh
|| ॐ ||


Re: Oracle drivers dependencies

2008-04-16 Thread Ricky
Hey Wayne,

I copied the jars manually to the m2 repository cache in path *
.m2\repository\com\oracle\ojdbc14\10.2.0.2.0\ojdbc14_g*

But when i run *mvn clean install*, it still says artifact is missing. Am i
missing your point ? (My apologies if this sounds dumb)

Rick

On Thu, Apr 17, 2008 at 12:09 AM, Wayne Fay [EMAIL PROTECTED] wrote:

 No, Central does not host this jar, only the pom and the md5/sha1 files.

 This jar must be downloaded and manually installed into your local
 repo cache due to Oracle's licensing requirements.

 Wayne

 On 4/16/08, Manos Batsis [EMAIL PROTECTED] wrote:
 
  The repo has it [1], here the pom fragment:
 
 
  groupIdcom.oracle/groupId
  artifactIdojdbc14/artifactId
  version9.0.2.0.0/version
 
  [1]
  http://repo1.maven.org/maven2/com/oracle/ojdbc14/9.0.2.0.0/
 
  No idea whats wrong :-/
 
  Manos
 
 
 
 
  Ricky wrote:
   Hi,
  
   I am trying to add:
   *   dependency
  groupIdcom.oracle/groupId
  artifactIdojdbc14/artifactId
  version9.0.2.0.0/version
  /dependency*
  
   in my POM xml and i am getting :
  
   *Path to dependency:
  1)
  
 
 PhoneBookJSFSpringHibernateTPOC:PhoneBookJSFSpringHibernateTPOC:war:0.0.1-SNAPSHOT
  2) com.oracle:ojdbc14:jar:9.0.2.0.0
  
com.oracle:ojdbc14:jar:9.0.2.0.0
  
   from the specified remote repositories:
central (http://repo1.maven.org/maven2)
  
  
  org.apache.maven.artifact.resolver.ArtifactNotFoundException:
  Unable to
   download the artifact from any repository
  
   Try downloading the file manually from:
  
  http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
  
   Then, install it using the command:
  mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc14
   -Dversion=9.0.2.0.0 -Dpackaging=jar -Dfile=/path/to/file
  
   Alternatively, if you host your own repository you can deploy the file
   there:
  mvn deploy:deploy-file -DgroupId=com.oracle -DartifactId=ojdbc14
   -Dversion=9.0.2.0.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
   -DrepositoryId=[id]
  
   Path to dependency:
  1)
  
 
 PhoneBookJSFSpringHibernateTPOC:PhoneBookJSFSpringHibernateTPOC:war:0.0.1-SNAPSHOT
  2) com.oracle:ojdbc14:jar:9.0.2.0.0
  
  
com.oracle:ojdbc14:jar:9.0.2.0.0
  
   from the specified remote repositories:
central 
   (http://repo1.maven.org/maven2)*http://repo1.maven.org/maven2%29*
  
  
   *Am i doing something wrong ?*
  
  
  
   Regards
   Vyas, Anirudh
   || ॐ ||
  
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]