Re: File system repo

2009-12-02 Thread Tamás Cservenák
Hi there,

This thread started at Mon, Nov 9, 2009 at 8:00 PM, and last response is
sent on Tue, Dec 1, 2009 at 11:58 PM (my local TZ, but i want to point out
the duration).

Installing _any_ MRM out there lasts certainly well under 1 hrs (some of
them even under 10 minutes if you don't count the download ;)
Uploading those two artifacts should not last more then 10 minutes.
Setting up your POMs to refer to that MRM is what, more 10 minutes?

So, in an hour and half (upper limit!) you would be done. Without system
scope.


Thanks,
~t~

On Tue, Dec 1, 2009 at 10:39 PM, monkeyden monk...@monkeyden.com wrote:


 So I guess the question is, how then can you get a jar file, which is not
 installed in any repository, onto the compile classpath then into your
 ear/war file?


 Wayne Fay wrote:
 
  Hi Wayne.  I have my build working fine, it's just not including the
  system
  scoped jars in my war's WEB-INF/lib directory.  It seems the system
 scope
  does not include them.  Any idea how I can get them into the resulting
  artifact?
 
  This is exactly how system scope is supposed to work -- it means this
  artifact will be provided by the system therefore Maven does not
  include them in packages it builds.
 
  Add the artifacts to your corporate repo/local repo cache, and change
  scope to compile if you need them included.
 
  As I've said before in this thread, do NOT use system scope.
 
  Wayne
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 
 

 --
 View this message in context:
 http://old.nabble.com/File-system-repo-tp26271810p26599512.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: File system repo

2009-12-02 Thread Anders Hammar
Seems as we keep on repeating this best-practice. Still people try to prove
us wrong...

/Anders

2009/12/2 Tamás Cservenák ta...@cservenak.net

 Hi there,

 This thread started at Mon, Nov 9, 2009 at 8:00 PM, and last response is
 sent on Tue, Dec 1, 2009 at 11:58 PM (my local TZ, but i want to point out
 the duration).

 Installing _any_ MRM out there lasts certainly well under 1 hrs (some of
 them even under 10 minutes if you don't count the download ;)
 Uploading those two artifacts should not last more then 10 minutes.
 Setting up your POMs to refer to that MRM is what, more 10 minutes?

 So, in an hour and half (upper limit!) you would be done. Without system
 scope.


 Thanks,
 ~t~

 On Tue, Dec 1, 2009 at 10:39 PM, monkeyden monk...@monkeyden.com wrote:

 
  So I guess the question is, how then can you get a jar file, which is not
  installed in any repository, onto the compile classpath then into your
  ear/war file?
 
 
  Wayne Fay wrote:
  
   Hi Wayne.  I have my build working fine, it's just not including the
   system
   scoped jars in my war's WEB-INF/lib directory.  It seems the system
  scope
   does not include them.  Any idea how I can get them into the resulting
   artifact?
  
   This is exactly how system scope is supposed to work -- it means this
   artifact will be provided by the system therefore Maven does not
   include them in packages it builds.
  
   Add the artifacts to your corporate repo/local repo cache, and change
   scope to compile if you need them included.
  
   As I've said before in this thread, do NOT use system scope.
  
   Wayne
  
   -
   To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
   For additional commands, e-mail: users-h...@maven.apache.org
  
  
  
 
  --
  View this message in context:
  http://old.nabble.com/File-system-repo-tp26271810p26599512.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: File system repo

2009-12-01 Thread monkeyden

Hi Wayne.  I have my build working fine, it's just not including the system
scoped jars in my war's WEB-INF/lib directory.  It seems the system scope
does not include them.  Any idea how I can get them into the resulting
artifact?

Thanks, as always



Wayne Fay wrote:
 
 System scope is/soon will be deprecated.

 That really can't be true, can it?  I have found that very useful in any
 number of situations.
 
 I suppose we'd need someone from the Maven PMC to weigh in to know for
 sure... but this is my understanding. Of course, I haven't seen
 anything yet about this being removed from Maven3, so who knows about
 the timing etc.
 
 Having said that, except for VERY few situations, the system scope is
 wrong to use.
 
 Wayne
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/File-system-repo-tp26271810p26597393.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: File system repo

2009-12-01 Thread Wayne Fay
 Hi Wayne.  I have my build working fine, it's just not including the system
 scoped jars in my war's WEB-INF/lib directory.  It seems the system scope
 does not include them.  Any idea how I can get them into the resulting
 artifact?

This is exactly how system scope is supposed to work -- it means this
artifact will be provided by the system therefore Maven does not
include them in packages it builds.

Add the artifacts to your corporate repo/local repo cache, and change
scope to compile if you need them included.

As I've said before in this thread, do NOT use system scope.

Wayne

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



Re: File system repo

2009-12-01 Thread monkeyden

So I guess the question is, how then can you get a jar file, which is not
installed in any repository, onto the compile classpath then into your
ear/war file?


Wayne Fay wrote:
 
 Hi Wayne.  I have my build working fine, it's just not including the
 system
 scoped jars in my war's WEB-INF/lib directory.  It seems the system scope
 does not include them.  Any idea how I can get them into the resulting
 artifact?
 
 This is exactly how system scope is supposed to work -- it means this
 artifact will be provided by the system therefore Maven does not
 include them in packages it builds.
 
 Add the artifacts to your corporate repo/local repo cache, and change
 scope to compile if you need them included.
 
 As I've said before in this thread, do NOT use system scope.
 
 Wayne
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/File-system-repo-tp26271810p26599512.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: File system repo

2009-12-01 Thread Baptiste MATHUS
Either deploy this file in the third-party part of your maven repository
manager, or just install it locally. (using deploy:deploy-file or
install:install-file, or directly through the mrm artifact upload gui).
Btw, the best choice is the first one : set up a mrm and deploy the jar you
need.

Cheers

2009/12/1 monkeyden monk...@monkeyden.com


 So I guess the question is, how then can you get a jar file, which is not
 installed in any repository, onto the compile classpath then into your
 ear/war file?


 Wayne Fay wrote:
 
  Hi Wayne.  I have my build working fine, it's just not including the
  system
  scoped jars in my war's WEB-INF/lib directory.  It seems the system
 scope
  does not include them.  Any idea how I can get them into the resulting
  artifact?
 
  This is exactly how system scope is supposed to work -- it means this
  artifact will be provided by the system therefore Maven does not
  include them in packages it builds.
 
  Add the artifacts to your corporate repo/local repo cache, and change
  scope to compile if you need them included.
 
  As I've said before in this thread, do NOT use system scope.
 
  Wayne
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 
 

 --
 View this message in context:
 http://old.nabble.com/File-system-repo-tp26271810p26599512.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




-- 
Baptiste Batmat MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !


Re: File system repo

2009-12-01 Thread Wayne Fay
 So I guess the question is, how then can you get a jar file, which is not
 installed in any repository, onto the compile classpath then into your
 ear/war file?

You can't, at least, I don't know how to do it.

Your original post said that you'd prefer not to install them into
your repo. Maven is opinionated software -- your preferences are not
the top priority. Maven expects (requires) artifacts be in its repo
for builds to work. You will be a lot happier with Maven over time if
you just stop fighting things and do it the right (Maven) way from the
beginning.

Use mvn install or mvn deploy and put the file in a
local/corporate repo during the build process for that artifact. Just
because you can't CONVERT a given project to Maven, does not mean that
you cannot install/deploy the resulting build artifact when it is
built. Add mvn deploy as a post-build step in your CI server.

Wayne

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



Re: File system repo

2009-11-11 Thread monkeyden

I own and have read the book.  Perhaps repo is overstating what I'm trying
to do here.  I'm really just trying to pull 2 arbitrary jars into my build. 
The phrase file system repo just seemed to do what I wanted.  Apparently,
it doesn't mean what I took it to mean.  There is nothing in the book
describing how to do this, to my knowledge.


Anders Hammar wrote:
 
 I would also argue that you should read up on Maven and how it uses repos.
 It's much easier if you actually understand the core Maven stuff, than us
 telling you what to do. Less misunderstandings for one thing.
 http://www.sonatype.com/documentation/books/maven-defguide
 
 /Anders
 
 On Wed, Nov 11, 2009 at 00:23, Wendy Smoak wsm...@gmail.com wrote:
 
 On Tue, Nov 10, 2009 at 3:34 PM, monkeyden monk...@monkeyden.com wrote:

  These are simply directories in my maven project.  They are
  created manually and they each contain a jar file and a pom file.  If
 this
  isn't possible then what is a file system repository, if anything?  Is
 it
  just the local maven repo (in the .m2 folder)?

 A file system repo is a remote repo that happens to be on the file
 system and uses a file:// url.  It is not the same as your local repo.

 For anyone to help you figure out what's wrong, we'll need more
 details.  If you've manually created the repo, then there's a chance
 you haven't done it right and that's why it's not working.  What
 exactly is the structure and contents under the 'lib' directory?

 --
 Wendy

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


 
 

-- 
View this message in context: 
http://old.nabble.com/File-system-repo-tp26271810p26304294.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: File system repo

2009-11-11 Thread Adam Leggett (UPCO)
Have you considered/tried specifying the arbitrary jars as system scoped
dependencies?

http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope

On Wed, 2009-11-11 at 08:34 -0800, monkeyden wrote:
 I own and have read the book.  Perhaps repo is overstating what I'm trying
 to do here.  I'm really just trying to pull 2 arbitrary jars into my build. 
 The phrase file system repo just seemed to do what I wanted.  Apparently,
 it doesn't mean what I took it to mean.  There is nothing in the book
 describing how to do this, to my knowledge.
 
 
 Anders Hammar wrote:
  
  I would also argue that you should read up on Maven and how it uses repos.
  It's much easier if you actually understand the core Maven stuff, than us
  telling you what to do. Less misunderstandings for one thing.
  http://www.sonatype.com/documentation/books/maven-defguide
  
  /Anders
  
  On Wed, Nov 11, 2009 at 00:23, Wendy Smoak wsm...@gmail.com wrote:
  
  On Tue, Nov 10, 2009 at 3:34 PM, monkeyden monk...@monkeyden.com wrote:
 
   These are simply directories in my maven project.  They are
   created manually and they each contain a jar file and a pom file.  If
  this
   isn't possible then what is a file system repository, if anything?  Is
  it
   just the local maven repo (in the .m2 folder)?
 
  A file system repo is a remote repo that happens to be on the file
  system and uses a file:// url.  It is not the same as your local repo.
 
  For anyone to help you figure out what's wrong, we'll need more
  details.  If you've manually created the repo, then there's a chance
  you haven't done it right and that's why it's not working.  What
  exactly is the structure and contents under the 'lib' directory?
 
  --
  Wendy
 
  -
  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: File system repo

2009-11-11 Thread monkeyden

exactly what I was looking for.  thanks Adam.


Adam Leggett (UPCO) wrote:
 
 Have you considered/tried specifying the arbitrary jars as system scoped
 dependencies?
 
 http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope
 
 On Wed, 2009-11-11 at 08:34 -0800, monkeyden wrote:
 I own and have read the book.  Perhaps repo is overstating what I'm
 trying
 to do here.  I'm really just trying to pull 2 arbitrary jars into my
 build. 
 The phrase file system repo just seemed to do what I wanted. 
 Apparently,
 it doesn't mean what I took it to mean.  There is nothing in the book
 describing how to do this, to my knowledge.
 
 
 Anders Hammar wrote:
  
  I would also argue that you should read up on Maven and how it uses
 repos.
  It's much easier if you actually understand the core Maven stuff, than
 us
  telling you what to do. Less misunderstandings for one thing.
  http://www.sonatype.com/documentation/books/maven-defguide
  
  /Anders
  
  On Wed, Nov 11, 2009 at 00:23, Wendy Smoak wsm...@gmail.com wrote:
  
  On Tue, Nov 10, 2009 at 3:34 PM, monkeyden monk...@monkeyden.com
 wrote:
 
   These are simply directories in my maven project.  They are
   created manually and they each contain a jar file and a pom file. 
 If
  this
   isn't possible then what is a file system repository, if anything? 
 Is
  it
   just the local maven repo (in the .m2 folder)?
 
  A file system repo is a remote repo that happens to be on the file
  system and uses a file:// url.  It is not the same as your local repo.
 
  For anyone to help you figure out what's wrong, we'll need more
  details.  If you've manually created the repo, then there's a chance
  you haven't done it right and that's why it's not working.  What
  exactly is the structure and contents under the 'lib' directory?
 
  --
  Wendy
 
  -
  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
 
 
 

-- 
View this message in context: 
http://old.nabble.com/File-system-repo-tp26271810p26309300.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: File system repo

2009-11-11 Thread Wayne Fay
 Have you considered/tried specifying the arbitrary jars as system scoped
 dependencies?

This is not the way to go. System scope is/soon will be deprecated.
You will run into problems with your build if you do this -- system
scoped dependencies do not behave the way you might expect (not
included in EAR and WAR packaging for one -- behave like provided in
those cases).

Use mvn install:install-file or mvn deploy:deploy-file to put
these files in your local cache or corporate repository. This is the
ONLY solution to your problem, period.

Wayne

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



RE: File system repo

2009-11-11 Thread Jim McCaskey
 System scope is/soon will be deprecated.

That really can't be true, can it?  I have found that very useful in any number 
of situations.

-Jim

-Original Message-
From: Wayne Fay [mailto:wayne...@gmail.com] 
Sent: Wednesday, November 11, 2009 4:37 PM
To: Maven Users List
Subject: Re: File system repo

 Have you considered/tried specifying the arbitrary jars as system scoped
 dependencies?

This is not the way to go. System scope is/soon will be deprecated.
You will run into problems with your build if you do this -- system
scoped dependencies do not behave the way you might expect (not
included in EAR and WAR packaging for one -- behave like provided in
those cases).

Use mvn install:install-file or mvn deploy:deploy-file to put
these files in your local cache or corporate repository. This is the
ONLY solution to your problem, period.

Wayne

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




Re: File system repo

2009-11-11 Thread Wayne Fay
 System scope is/soon will be deprecated.

 That really can't be true, can it?  I have found that very useful in any 
 number of situations.

I suppose we'd need someone from the Maven PMC to weigh in to know for
sure... but this is my understanding. Of course, I haven't seen
anything yet about this being removed from Maven3, so who knows about
the timing etc.

Having said that, except for VERY few situations, the system scope is
wrong to use.

Wayne

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



Re: File system repo

2009-11-10 Thread monkeyden

Hi Wendy, thanks for the response.  This is the error I get for each of the 2
jars:

Error message: Missing:
--
1) com.mycompany:ProjectNextQuattro:jar:1.0

  Try downloading the file manually from the project website.

  Then, install it using the command: 
  mvn install:install-file -DgroupId=com.mycompany
-DartifactId=ProjectNextQuattro -Dversion=1.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.mycompany
-DartifactId=ProjectNextQuattro -Dversion=1.0 -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency: 
1)
com.mycompany.ids.authenticationservice:authentication-service:war:1.0-SNAPSHOT
2) com.mycompany:ProjectNextQuattro:jar:1.0

Is there an install command for file system repos, like there is for
installation to the default local repo (~/.m2/..)?  

Thanks!


Wendy Smoak-3 wrote:
 
 On Mon, Nov 9, 2009 at 12:00 PM, monkeyden monk...@monkeyden.com wrote:
 
 I have several projects which can't be converted over to maven right now,
 mostly because of time constraints.  The artifacts of these projects will
 be
 used in a maven project.  I'd prefer not to install them into my
 repository,
 so I am trying to create a file system repository which points to a
 directory of the current (maven) project.
 
 Looks okay at a quick glance... what problem are you having?
 
 -- 
 Wendy
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/File-system-repo-tp26271810p26280046.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: File system repo

2009-11-10 Thread Anders Hammar
If it's a file repo, you just need to copy the jar and the pom to the right
directory.

/Anders

On Tue, Nov 10, 2009 at 09:47, monkeyden monk...@monkeyden.com wrote:


 Hi Wendy, thanks for the response.  This is the error I get for each of the
 2
 jars:

 Error message: Missing:
 --
 1) com.mycompany:ProjectNextQuattro:jar:1.0

  Try downloading the file manually from the project website.

  Then, install it using the command:
  mvn install:install-file -DgroupId=com.mycompany
 -DartifactId=ProjectNextQuattro -Dversion=1.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.mycompany
 -DartifactId=ProjectNextQuattro -Dversion=1.0 -Dpackaging=jar
 -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
1)

 com.mycompany.ids.authenticationservice:authentication-service:war:1.0-SNAPSHOT
2) com.mycompany:ProjectNextQuattro:jar:1.0

 Is there an install command for file system repos, like there is for
 installation to the default local repo (~/.m2/..)?

 Thanks!


 Wendy Smoak-3 wrote:
 
  On Mon, Nov 9, 2009 at 12:00 PM, monkeyden monk...@monkeyden.com
 wrote:
 
  I have several projects which can't be converted over to maven right
 now,
  mostly because of time constraints.  The artifacts of these projects
 will
  be
  used in a maven project.  I'd prefer not to install them into my
  repository,
  so I am trying to create a file system repository which points to a
  directory of the current (maven) project.
 
  Looks okay at a quick glance... what problem are you having?
 
  --
  Wendy
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 
 

 --
 View this message in context:
 http://old.nabble.com/File-system-repo-tp26271810p26280046.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: File system repo

2009-11-10 Thread Wayne Fay
 Is there an install command for file system repos, like there is for
 installation to the default local repo (~/.m2/..)?

Did you read the error message??

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

How exactly to make that work with a file system repo is left to the reader...

Wayne

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



Re: File system repo

2009-11-10 Thread monkeyden

Right, it only refers to the default local maven repo, not this local one. 
After having added the following paths to my project:

com/mycompany/ProjectNextQuattro/1.0
com/mycompany/ProjectNextPojos/1.0

with the following dependencies:

dependency
groupIdcom.mycompany/groupId
artifactIdProjectNextQuattro/artifactId
version1.0/version
/dependency
dependency
groupIdcom.mycompany/groupId
artifactIdProjectNextPojos/artifactId
version1.0/version
/dependency

I get the same errors.  Any ideas?  Thanks.


Wayne Fay wrote:
 
 Is there an install command for file system repos, like there is for
 installation to the default local repo (~/.m2/..)?
 
 Did you read the error message??
 
  Alternatively, if you host your own repository you can deploy the file
 there:
  mvn deploy:deploy-file -DgroupId=com.mycompany
 -DartifactId=ProjectNextQuattro -Dversion=1.0 -Dpackaging=jar
 -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
 
 How exactly to make that work with a file system repo is left to the
 reader...
 
 Wayne
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/File-system-repo-tp26271810p26288280.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: File system repo

2009-11-10 Thread Anders Hammar
Hmm, I think there is major confusion here regarding Maven terminology here.
In Maven, you have ONE local repo. It could be in the default
%USER_HOME%/-m2/repository/ or you can change that through settings.xml.

However, when you say file system repo I thought you meant a file system
based remote repo? If not, what do you mean?

The paths you've added to your project make no sense. That's the paths that
should be in a repo, not a project (and then containing the artifacts).

/Anders

On Tue, Nov 10, 2009 at 20:01, monkeyden monk...@monkeyden.com wrote:


 Right, it only refers to the default local maven repo, not this local one.
 After having added the following paths to my project:

 com/mycompany/ProjectNextQuattro/1.0
 com/mycompany/ProjectNextPojos/1.0

 with the following dependencies:

dependency
groupIdcom.mycompany/groupId
artifactIdProjectNextQuattro/artifactId
version1.0/version
/dependency
dependency
groupIdcom.mycompany/groupId
artifactIdProjectNextPojos/artifactId
version1.0/version
/dependency

 I get the same errors.  Any ideas?  Thanks.


 Wayne Fay wrote:
 
  Is there an install command for file system repos, like there is for
  installation to the default local repo (~/.m2/..)?
 
  Did you read the error message??
 
   Alternatively, if you host your own repository you can deploy the file
  there:
   mvn deploy:deploy-file -DgroupId=com.mycompany
  -DartifactId=ProjectNextQuattro -Dversion=1.0 -Dpackaging=jar
  -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
 
  How exactly to make that work with a file system repo is left to the
  reader...
 
  Wayne
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 
 

 --
 View this message in context:
 http://old.nabble.com/File-system-repo-tp26271810p26288280.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: File system repo

2009-11-10 Thread Wendy Smoak
On Tue, Nov 10, 2009 at 12:01 PM, monkeyden monk...@monkeyden.com wrote:

 Right, it only refers to the default local maven repo, not this local one.

As Anders pointed out, you have exactly one local repository,
usually in ~/.m2/repository (though it can be moved.)

This repo you're trying to create in the 'lib' directory is a remote
repository as far as Maven is concerned, even though it's right there
on disk.

 After having added the following paths to my project:

 com/mycompany/ProjectNextQuattro/1.0
 com/mycompany/ProjectNextPojos/1.0

How did these directories get created?  Is there anything in the directories?

You should use the 'mvn deploy:deploy-file ...' command to construct
this remote repository.  In your case, it will be on the file system
rather than at some url, so you'd use -Durl=file:///path/to/repo when
deploying.

If this is a multi-module project, you might have to define the repo
at each level because ${basedir} changes for each module.

If you're still having trouble, let us know more information about
your project structure and exactly what you've tried so far.

-- 
Wendy

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



Re: File system repo

2009-11-10 Thread monkeyden

As I said, for a couple different reasons, we can't convert these projects to
maven just yet.  These are simply directories in my maven project.  They are
created manually and they each contain a jar file and a pom file.  If this
isn't possible then what is a file system repository, if anything?  Is it
just the local maven repo (in the .m2 folder)?


Wendy Smoak-3 wrote:
 
 On Tue, Nov 10, 2009 at 12:01 PM, monkeyden monk...@monkeyden.com wrote:
 
 Right, it only refers to the default local maven repo, not this local
 one.
 
 As Anders pointed out, you have exactly one local repository,
 usually in ~/.m2/repository (though it can be moved.)
 
 This repo you're trying to create in the 'lib' directory is a remote
 repository as far as Maven is concerned, even though it's right there
 on disk.
 
 After having added the following paths to my project:

 com/mycompany/ProjectNextQuattro/1.0
 com/mycompany/ProjectNextPojos/1.0
 
 How did these directories get created?  Is there anything in the
 directories?
 
 You should use the 'mvn deploy:deploy-file ...' command to construct
 this remote repository.  In your case, it will be on the file system
 rather than at some url, so you'd use -Durl=file:///path/to/repo when
 deploying.
 
 If this is a multi-module project, you might have to define the repo
 at each level because ${basedir} changes for each module.
 
 If you're still having trouble, let us know more information about
 your project structure and exactly what you've tried so far.
 
 -- 
 Wendy
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/File-system-repo-tp26271810p26292575.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: File system repo

2009-11-10 Thread Martin Gainty

yep its a wagon
a wagon is a transport protocol used to pull or push information to/from your 
pom your repository
http://maven.apache.org/wagon/

Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




 Date: Tue, 10 Nov 2009 14:34:58 -0800
 From: monk...@monkeyden.com
 To: users@maven.apache.org
 Subject: Re: File system repo
 
 
 As I said, for a couple different reasons, we can't convert these projects to
 maven just yet.  These are simply directories in my maven project.  They are
 created manually and they each contain a jar file and a pom file.  If this
 isn't possible then what is a file system repository, if anything?  Is it
 just the local maven repo (in the .m2 folder)?
 
 
 Wendy Smoak-3 wrote:
  
  On Tue, Nov 10, 2009 at 12:01 PM, monkeyden monk...@monkeyden.com wrote:
  
  Right, it only refers to the default local maven repo, not this local
  one.
  
  As Anders pointed out, you have exactly one local repository,
  usually in ~/.m2/repository (though it can be moved.)
  
  This repo you're trying to create in the 'lib' directory is a remote
  repository as far as Maven is concerned, even though it's right there
  on disk.
  
  After having added the following paths to my project:
 
  com/mycompany/ProjectNextQuattro/1.0
  com/mycompany/ProjectNextPojos/1.0
  
  How did these directories get created?  Is there anything in the
  directories?
  
  You should use the 'mvn deploy:deploy-file ...' command to construct
  this remote repository.  In your case, it will be on the file system
  rather than at some url, so you'd use -Durl=file:///path/to/repo when
  deploying.
  
  If this is a multi-module project, you might have to define the repo
  at each level because ${basedir} changes for each module.
  
  If you're still having trouble, let us know more information about
  your project structure and exactly what you've tried so far.
  
  -- 
  Wendy
  
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
  
  
  
 
 -- 
 View this message in context: 
 http://old.nabble.com/File-system-repo-tp26271810p26292575.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
 
  
_
Windows 7: Unclutter your desktop.
http://go.microsoft.com/?linkid=9690331ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen:112009

Re: File system repo

2009-11-10 Thread Wendy Smoak
On Tue, Nov 10, 2009 at 3:34 PM, monkeyden monk...@monkeyden.com wrote:

 These are simply directories in my maven project.  They are
 created manually and they each contain a jar file and a pom file.  If this
 isn't possible then what is a file system repository, if anything?  Is it
 just the local maven repo (in the .m2 folder)?

A file system repo is a remote repo that happens to be on the file
system and uses a file:// url.  It is not the same as your local repo.

For anyone to help you figure out what's wrong, we'll need more
details.  If you've manually created the repo, then there's a chance
you haven't done it right and that's why it's not working.  What
exactly is the structure and contents under the 'lib' directory?

-- 
Wendy

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



Re: File system repo

2009-11-10 Thread Anders Hammar
I would also argue that you should read up on Maven and how it uses repos.
It's much easier if you actually understand the core Maven stuff, than us
telling you what to do. Less misunderstandings for one thing.
http://www.sonatype.com/documentation/books/maven-defguide

/Anders

On Wed, Nov 11, 2009 at 00:23, Wendy Smoak wsm...@gmail.com wrote:

 On Tue, Nov 10, 2009 at 3:34 PM, monkeyden monk...@monkeyden.com wrote:

  These are simply directories in my maven project.  They are
  created manually and they each contain a jar file and a pom file.  If
 this
  isn't possible then what is a file system repository, if anything?  Is it
  just the local maven repo (in the .m2 folder)?

 A file system repo is a remote repo that happens to be on the file
 system and uses a file:// url.  It is not the same as your local repo.

 For anyone to help you figure out what's wrong, we'll need more
 details.  If you've manually created the repo, then there's a chance
 you haven't done it right and that's why it's not working.  What
 exactly is the structure and contents under the 'lib' directory?

 --
 Wendy

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




Re: File system repo

2009-11-09 Thread Wendy Smoak
On Mon, Nov 9, 2009 at 12:00 PM, monkeyden monk...@monkeyden.com wrote:

 I have several projects which can't be converted over to maven right now,
 mostly because of time constraints.  The artifacts of these projects will be
 used in a maven project.  I'd prefer not to install them into my repository,
 so I am trying to create a file system repository which points to a
 directory of the current (maven) project.

Looks okay at a quick glance... what problem are you having?

-- 
Wendy

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



Re: File system repo

2009-11-09 Thread Jörg Schaible
monkeyden wrote:

 
 I have several projects which can't be converted over to maven right now,
 mostly because of time constraints.  The artifacts of these projects will
 be
 used in a maven project.  I'd prefer not to install them into my
 repository, so I am trying to create a file system repository which points
 to a
 directory of the current (maven) project.  I have seen this post, which
 was left unanswered.
 
 http://old.nabble.com/file-system-repo-not-work-ts16355485.html#a16355485
 
 I have the following repository configured in my pom:
 
 repositories
 
 repository
 idlocal jars/id
 namelocal jars/name
 urlfile://${basedir}/lib/url
 /repository
 /repositories
 
 
 I have the following dependencies also:
 
 dependencies
 dependency
 groupIdcom.mycompany/groupId
 artifactIdProjectNextQuattro/artifactId
 version1.0/version
 /dependency
 dependency
 groupIdcom.mycompany/groupId
 artifactIdProjectNextPojos/artifactId
 version1.0/version
 /dependency
 dependencies
 and the jars are in ${basedir}/lib/com/mycompany

they should be in ${basedir}/lib/com/mycompany/ProjectNextQuattro/1.0/ (and
${basedir}/lib/com/mycompany/ProjectNextPojos/1.0/) - just in case it was
not obvious.

- Jörg


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



RE: file system repo not work

2008-03-28 Thread Brian E. Fox
Which eclipse plugin are you using? Maven-eclipse-plugin, m2eclipse or
q4e?

-Original Message-
From: Alessandro Ferrucci [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 28, 2008 11:29 AM
To: users@maven.apache.org
Subject: file system repo not work

Hello,

I have the relevant pom snippet below.  The problem is really with the 
eclipse plugin.  The plugin reports not being able to download the 2 
dependencies entity-client-1.0 and newsml-2.0.0.jar which are in my 
sandbox in the following location:

/home/ferucci/europa_workspace/photos/

This used to work on my macbook (which died last week :) ), but on my 
linux box it does not.

Eclipse complains of now being able to download the 2 given 
dependencies, but when I build with maven, it builds just fine and the 
jar gets downloaded in my local repo (from my sandbox). 

what could be wrong with eclipse? what are some debugging tricks I can 
try out with the maven eclipse plugin?

thanks

alessandro ferrucci



?xml version=1.0 encoding=UTF-8?
project xmlns=http://maven.apache.org/POM/4.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd;
modelVersion4.0.0/modelVersion
groupIdcom.aol.pubt.photos.common/groupId
artifactIdPhotos/artifactId
namephotos/name
version0.0.1/version
descriptionDPIS/description
build
resources
resource
filteringtrue/filtering
directorysrc/main/resources//directory
excludes
exclude**/myconfig-ingestor.properties/exclude
exclude**/log4j.properties/exclude
exclude**/telescope.xsd/exclude
exclude**/newsML.dtd/exclude
exclude**/xsl/*.xsl/exclude
/excludes
/resource
resource
filteringtrue/filtering
directoryetc//directory
excludes
exclude**/*/exclude
/excludes
/resource
resource
filteringtrue/filtering
directoryrelease//directory
excludes
exclude**/*/exclude
/excludes
/resource
/resources
plugins
plugin
artifactIdmaven-compiler-plugin/artifactId
configuration
source1.5/source
target1.5/target
createChecksumtrue/createChecksum
updateReleaseInfotrue/updateReleaseInfo
/configuration
/plugin
/plugins
/build
repositories
repository
idlocal sandbox repo/id
nameDPIS Commons Sandbox repo/name
urlfile://${basedir}/release/lib/url
/repository
/repositories
dependencies
dependency
groupIdorg.apache/groupId
artifactIdnewsml/artifactId
version2.0/version
/dependency
dependency
groupIdcom.aol.cm.entity/groupId
artifactIdentity-client/artifactId
version1.0/version
/dependency
/dependencies
/project



-
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: file system repo not work

2008-03-28 Thread Alessandro Ferrucci

I am using m2eclipse.

thanks

alessandro ferrucci

Brian E. Fox wrote:

Which eclipse plugin are you using? Maven-eclipse-plugin, m2eclipse or
q4e?

-Original Message-
From: Alessandro Ferrucci [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 28, 2008 11:29 AM

To: users@maven.apache.org
Subject: file system repo not work

Hello,

I have the relevant pom snippet below.  The problem is really with the 
eclipse plugin.  The plugin reports not being able to download the 2 
dependencies entity-client-1.0 and newsml-2.0.0.jar which are in my 
sandbox in the following location:


/home/ferucci/europa_workspace/photos/

This used to work on my macbook (which died last week :) ), but on my 
linux box it does not.


Eclipse complains of now being able to download the 2 given 
dependencies, but when I build with maven, it builds just fine and the 
jar gets downloaded in my local repo (from my sandbox). 

what could be wrong with eclipse? what are some debugging tricks I can 
try out with the maven eclipse plugin?


thanks

alessandro ferrucci



?xml version=1.0 encoding=UTF-8?
project xmlns=http://maven.apache.org/POM/4.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd;

modelVersion4.0.0/modelVersion
groupIdcom.aol.pubt.photos.common/groupId
artifactIdPhotos/artifactId
namephotos/name
version0.0.1/version
descriptionDPIS/description
build
resources
resource
filteringtrue/filtering
directorysrc/main/resources//directory
excludes
exclude**/myconfig-ingestor.properties/exclude
exclude**/log4j.properties/exclude
exclude**/telescope.xsd/exclude
exclude**/newsML.dtd/exclude
exclude**/xsl/*.xsl/exclude
/excludes
/resource
resource
filteringtrue/filtering
directoryetc//directory
excludes
exclude**/*/exclude
/excludes
/resource
resource
filteringtrue/filtering
directoryrelease//directory
excludes
exclude**/*/exclude
/excludes
/resource
/resources
plugins
plugin
artifactIdmaven-compiler-plugin/artifactId
configuration
source1.5/source
target1.5/target
createChecksumtrue/createChecksum
updateReleaseInfotrue/updateReleaseInfo
/configuration
/plugin
/plugins
/build
repositories
repository
idlocal sandbox repo/id
nameDPIS Commons Sandbox repo/name
urlfile://${basedir}/release/lib/url
/repository
/repositories
dependencies
dependency
groupIdorg.apache/groupId
artifactIdnewsml/artifactId
version2.0/version
/dependency
dependency
groupIdcom.aol.cm.entity/groupId
artifactIdentity-client/artifactId
version1.0/version
/dependency
/dependencies
/project



-
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]

  



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