Re: duplicate snapshots copied by maven-dependency-plugin:copy-dependency

2009-04-21 Thread Reto Bachmann-Gmür
the jars are only duplicate when using the
useRepositoryLayouttrue/useRepositoryLayout
directive.

unfortunately, that's what I need.

Reto

Reto Bachmann-Gmür said the following on 04/20/2009 03:29 PM:
 no this is after a mvn clean package
 
 cheers,
 reto
 
 Brian Fox said the following on 04/20/2009 03:27 PM:
 This could only happen in two passes of the plugin without a clean in
 between. The two files are indeed the same version, but it isn't
 checking the target folder exhaustively to see if there's a file there
 with another timestamped version...the overwrite only gets triggered if
 the exact same file already exists.

 Reto Bachmann-Gmür wrote:
 Hello

 I'm copying dependencies with the following directive:

 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-dependency-plugin/artifactId
 version2.1/version
 executions
 execution
 goals
 goalcopy-dependencies/goal
 /goals
 idcopy-security-as-framework-bundles/id
 configuration
 useRepositoryLayouttrue/useRepositoryLayout   
 outputDirectory${basedir}/target/framework-bundles/outputDirectory   
 includeArtifactIdsorg.trialox.platform.security/includeArtifactIds
 /configuration
 /execution
 /plugin

 In the created directory
 target/framework-bundles/org/trialox/org.trialox.platform.security/0.2-SNAPSHOT/

  I have two files:
 org.trialox.platform.security-0.2-20090416.175419-944.jar as well as
 org.trialox.platform.security-0.2-SNAPSHOT.jar

 I'd like to have only one version of the snapshot dependency and haven't
 found out how to do this, using overwriteSnapshots and stripVersion had
 no effect.

 Cheers,
 reto

 -
 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: Adding system scope jars to the manifest class path

2009-04-21 Thread Kogel, Jonck-van-der

 Sounds right; system scoped stuff are supposed to be provided by the 
 JVM etc. so they shouldn't be any need for the manifest to point them
out.

Also to expand a bit; if you intent to bundle those jars with your app
use the default (compile) scope and if 
you expect something like a servlet container to provide them instead
use the provided scope.

Ok, allow me to rephrase :)  I'm struggling with some proprietary (IBM,
Oracle, etc..) jars that I need to get added to my manifest class path.
I don't want to do that manually obviously. When I add the proprietary
jars to my pom and set their scope to default level, when I try to build
Maven complains that it can't find the proprietary jars in any of the
public repositories. I have added the jars to my local repository and
correctly set the directory structure to match my pom but to no avail. 
So I googled and read that the way round that is to set the scope to
system. But then the jars don't get added to the manifest class path
anymore. So I guess my question is: how do I set it up so that Maven
only looks for proprietary jars on my local repository and doesn't try
to go outside and look for them?

Thanks, Jonck

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



Re: Adding system scope jars to the manifest class path

2009-04-21 Thread Graham Leggett
Kogel, Jonck-van-der wrote:

 Ok, allow me to rephrase :)  I'm struggling with some proprietary (IBM,
 Oracle, etc..) jars that I need to get added to my manifest class path.
 I don't want to do that manually obviously. When I add the proprietary
 jars to my pom and set their scope to default level, when I try to build
 Maven complains that it can't find the proprietary jars in any of the
 public repositories. I have added the jars to my local repository and
 correctly set the directory structure to match my pom but to no avail. 
 So I googled and read that the way round that is to set the scope to
 system. But then the jars don't get added to the manifest class path
 anymore. So I guess my question is: how do I set it up so that Maven
 only looks for proprietary jars on my local repository and doesn't try
 to go outside and look for them?

Ideally you should run your own private repository and publish the jars
there. At the most basic level, this repository is just a webserver, so
it doesn't require much setup.

This repository starts becoming important when you start using the
release plugin to make your releases, your code will then be uploaded
automatically to your same private repository.

The core reason is that it's virtually guaranteed that someone else, on
a different machine, will want to build you code, and if the jars are on
a shared repository (public or private, maven does care), then this is
trivial and automatic.

Trying to maintain your own private directories of jars causes pain that
maven steers you away from. Taking the effort to set up a private repo
in the beginning will make your life significantly easier down the line.

Regards,
Graham
--


smime.p7s
Description: S/MIME Cryptographic Signature


Re: Adding system scope jars to the manifest class path

2009-04-21 Thread Graham Leggett
Graham Leggett wrote:

 The core reason is that it's virtually guaranteed that someone else, on
 a different machine, will want to build you code, and if the jars are on
 a shared repository (public or private, maven does care), then this is
 trivial and automatic.

you == your
does == doesn't

Sigh, need more coffee.

Regards,
Graham
--


smime.p7s
Description: S/MIME Cryptographic Signature


Re: Adding system scope jars to the manifest class path

2009-04-21 Thread Stephen Connolly
2009/4/21 Kogel, Jonck-van-der jonck-van-der.ko...@bmw.nl:

 Sounds right; system scoped stuff are supposed to be provided by the
 JVM etc. so they shouldn't be any need for the manifest to point them
 out.

Also to expand a bit; if you intent to bundle those jars with your app
 use the default (compile) scope and if
you expect something like a servlet container to provide them instead
 use the provided scope.

 Ok, allow me to rephrase :)  I'm struggling with some proprietary (IBM,
 Oracle, etc..) jars that I need to get added to my manifest class path.
 I don't want to do that manually obviously. When I add the proprietary
 jars to my pom and set their scope to default level, when I try to build
 Maven complains that it can't find the proprietary jars in any of the
 public repositories. I have added the jars to my local repository and
 correctly set the directory structure to match my pom but to no avail.
 So I googled and read that the way round that is to set the scope to
 system. But then the jars don't get added to the manifest class path
 anymore. So I guess my question is: how do I set it up so that Maven
 only looks for proprietary jars on my local repository and doesn't try
 to go outside and look for them?


Use a repository manager (e.g. Nexus or Artifactory... I use Nexus but
Artifactory should be able to do the same)

Have the repository manager present a composite view of all
repositories that you need.

Set the repository manager's composite view as the mirrorOf*/mirrorOf

Then your 3rd party jars can be merged into the composite view, you
will only ever query one repository, all your builds will be much
faster as you have a local cache of the remote repositories, and your
builds are now reproducible as you have a local copy of any artifacts
you may have used.

Setting up nexus takes about 10 min, and I've even used nexus running
on my own desktop to mirror our corporate nexus so that I get faster
builds when connecting in via VPN (so that I pull from the corporate
repos via the VPN and pull from central via direct)

Seriously, just get over it and run a repository manager.

-Stephen

Note: I do not work for Sonatype, I have no interest in Nexus other
than I happen to use it.

 Thanks, Jonck

 -
 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: [maven-eclipse-plugin] We need your help to test the future 2.7

2009-04-21 Thread Martijn Dashorst
A co-worker tested it, and found it not working. He'll comment later.

Martijn

On Tue, Apr 21, 2009 at 12:20 AM, Arnaud HERITIER aherit...@gmail.com wrote:
 Ping ??Nobody wants to test it ?
 Without your help, will never be able to produce a plugin which replies to
 your needs.
 Cheers,

 Arnaud

 On Thu, Apr 16, 2009 at 10:42 AM, Arnaud HERITIER aherit...@gmail.comwrote:

 Hi Community,
   The recent release 2.6 of the maven-eclipse-plugin created many problems
 for all of those who had/wanted to store non-java files under src/*/java
 (which is required for wicket, ajdt, and probably others usecases).
   Even we have many integration tests in this plugin we didn't notice this
 issue because our testcases allow us to check that generated configuration
 files aren't evolving and that we are able to import and use a project in
 eclipse (too heavy to do).

   To fix this issue we (Barrie to be honest) improved the plugin to allow
 the usage of includes and excludes. :
 http://jira.codehaus.org/browse/MECLIPSE-104
   The documentation of these feature is here :

 http://maven.apache.org/plugins/maven-eclipse-plugin-2.7-SNAPSHOT/examples/specifying-source-path-inclusions-and-exclusions.html
 There are many broken links on the site and I don't know why. I'll
 investigate later.
 Others pages are the same in
 http://maven.apache.org/plugins/maven-eclipse-plugin/
 For AJDT project you can have a look at this page :
 http://maven.apache.org/plugins/maven-eclipse-plugin-
 2.7-SNAPSHOT/examples/ajdt-projects.html

 To test the plugin you have to add in your project or in your settings this
 repository :
 https://repository.apache.org/content/repositories/snapshots/
 (be careful to the https protocol)
 The last version I deployed is : 2.7-20090416.000603-3

 Please, test it and give us your feedback. If it is positive this week,
 we'll launch the release process the next one.

 cheers,

 --
 Arnaud




 --
 Arnaud




-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.5 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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



RE: Adding system scope jars to the manifest class path

2009-04-21 Thread Kogel, Jonck-van-der
 Seriously, just get over it and run a repository manager.

Ok, will do :)

Thanks for your help guys!

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



Re: Repo in parent dir...

2009-04-21 Thread Stephen Connolly
Here's what you are doing wrong:

you are trying to do things the ANT way (i.e. let's check in a
directory of jars into SCM) using Maven.

Use a repository manager and don't keep a local repo contained within
your project.

;-)

-Stephen

2009/4/21 nino martinez wael nino.martinez.w...@gmail.com:
 Hi

 I have a multimodule project where I have a local repo contained
 within the project currently it's defined as this:

        repositories
                repository
                        releases
                                checksumPolicywarn/checksumPolicy
                                enabledtrue/enabled
                                updatePolicyinterval:60/updatePolicy
                        /releases
                        idlocal.3rd.party/id
                        nameLocal 3rd Party repo/name
                        urlfile://${basedir}/repo/url
                /repository
        /repositories

 In my parent pom.xml however that generates a structure relative to
 the sub projects like this:

 parent
 |
 |--Sub\repo

 however what I want are this:

 parent
 |
 |-Repo\dependencies
 |-Sub

 I've tried substituting basedir with project.parent.basedir, it's not
 working... What am I doing wrong?

 regards Nino

 -
 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: [maven-eclipse-plugin] We need your help to test the future 2.7

2009-04-21 Thread Martijn Dashorst
The co-worker reported back that the plugin works as advertised
(latest snapshot)

Martijn

On Tue, Apr 21, 2009 at 10:27 AM, Martijn Dashorst
martijn.dasho...@gmail.com wrote:
 A co-worker tested it, and found it not working. He'll comment later.

 Martijn

 On Tue, Apr 21, 2009 at 12:20 AM, Arnaud HERITIER aherit...@gmail.com wrote:
 Ping ??Nobody wants to test it ?
 Without your help, will never be able to produce a plugin which replies to
 your needs.
 Cheers,

 Arnaud

 On Thu, Apr 16, 2009 at 10:42 AM, Arnaud HERITIER aherit...@gmail.comwrote:

 Hi Community,
   The recent release 2.6 of the maven-eclipse-plugin created many problems
 for all of those who had/wanted to store non-java files under src/*/java
 (which is required for wicket, ajdt, and probably others usecases).
   Even we have many integration tests in this plugin we didn't notice this
 issue because our testcases allow us to check that generated configuration
 files aren't evolving and that we are able to import and use a project in
 eclipse (too heavy to do).

   To fix this issue we (Barrie to be honest) improved the plugin to allow
 the usage of includes and excludes. :
 http://jira.codehaus.org/browse/MECLIPSE-104
   The documentation of these feature is here :

 http://maven.apache.org/plugins/maven-eclipse-plugin-2.7-SNAPSHOT/examples/specifying-source-path-inclusions-and-exclusions.html
 There are many broken links on the site and I don't know why. I'll
 investigate later.
 Others pages are the same in
 http://maven.apache.org/plugins/maven-eclipse-plugin/
 For AJDT project you can have a look at this page :
 http://maven.apache.org/plugins/maven-eclipse-plugin-
 2.7-SNAPSHOT/examples/ajdt-projects.html

 To test the plugin you have to add in your project or in your settings this
 repository :
 https://repository.apache.org/content/repositories/snapshots/
 (be careful to the https protocol)
 The last version I deployed is : 2.7-20090416.000603-3

 Please, test it and give us your feedback. If it is positive this week,
 we'll launch the release process the next one.

 cheers,

 --
 Arnaud




 --
 Arnaud




 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.3.5 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.




-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.5 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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



Re: Repo in parent dir...

2009-04-21 Thread nino martinez wael
Ahh, this works just fine if I keep the repositories relative to the
sub project:

parent
|
|--Sub\repo
|--Sub\repo
|--Sub\repo

But is a waste of space..

This is a very nice way of adding stuff to dependencies that are no
available on the public repos, it's also very usefull to deploy things
into a CI server where you only have access to the CI server .. So you
are saying that I should use a repository manage just to contain the 4
dependencies that I have..? It would complicate a lot of things.. I do
get the idea to use repository manages, but for just 4 deps, it seems
overkill.

Anyhow is it a bug that it can be use that way?

regards


2009/4/21 Stephen Connolly stephen.alan.conno...@gmail.com:
 Here's what you are doing wrong:

 you are trying to do things the ANT way (i.e. let's check in a
 directory of jars into SCM) using Maven.

 Use a repository manager and don't keep a local repo contained within
 your project.

 ;-)

 -Stephen

 2009/4/21 nino martinez wael nino.martinez.w...@gmail.com:
 Hi

 I have a multimodule project where I have a local repo contained
 within the project currently it's defined as this:

        repositories
                repository
                        releases
                                checksumPolicywarn/checksumPolicy
                                enabledtrue/enabled
                                updatePolicyinterval:60/updatePolicy
                        /releases
                        idlocal.3rd.party/id
                        nameLocal 3rd Party repo/name
                        urlfile://${basedir}/repo/url
                /repository
        /repositories

 In my parent pom.xml however that generates a structure relative to
 the sub projects like this:

 parent
 |
 |--Sub\repo

 however what I want are this:

 parent
 |
 |-Repo\dependencies
 |-Sub

 I've tried substituting basedir with project.parent.basedir, it's not
 working... What am I doing wrong?

 regards Nino

 -
 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



Repo in parent dir...

2009-04-21 Thread nino martinez wael
Hi

I have a multimodule project where I have a local repo contained
within the project currently it's defined as this:

repositories
repository
releases
checksumPolicywarn/checksumPolicy
enabledtrue/enabled
updatePolicyinterval:60/updatePolicy
/releases
idlocal.3rd.party/id
nameLocal 3rd Party repo/name
urlfile://${basedir}/repo/url
/repository
/repositories

In my parent pom.xml however that generates a structure relative to
the sub projects like this:

parent
|
|--Sub\repo

however what I want are this:

parent
|
|-Repo\dependencies
|-Sub

I've tried substituting basedir with project.parent.basedir, it's not
working... What am I doing wrong?

regards Nino

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



Re: Is maven so inflexible?

2009-04-21 Thread João Pereira
Here's the scenario

I have a the Alfresco SDK which depends on a lot of libraries, some of them
I can find in the standard repos, others I don't. I wish  that the SDK was
made of only of one Jar wit no dependencies. I know that someone  have their
public repo with alfresco sdk, but I need different versions which could not
be found on their repo.

Now, my aproach is to have the jars, which I cannot find in any public repo,
deployed to my own repo then use them as dependencies... But I'm lazzy and
this consumes time :)

Regarding the wsdls, I'll put them in a jar as suggested.


thanks for your help, and I understand that Maven dependency management is
the correct one... I used Ant for +4 years and I know the problems...

thank you

On Tue, Apr 21, 2009 at 2:48 AM, Dan Tran dant...@gmail.com wrote:

 can you use jaxws-maven-plugin to manage your wsdl files?

 -D

 On Mon, Apr 20, 2009 at 6:36 PM, David C. Hicks dhi...@i-hicks.org
 wrote:
  Are the jars part of the project, or are they artifacts that you depend
 on?
   That seems to be a large part of what you may need to change.  If the
 jars
  are artifacts that can be found in a standard repository, just mark them
 up
  as dependencies.  If they are generated by your project, they should end
 up
  in the reactor when you build.  Why you would have them in a directory in
  your project is something of a mystery to me, but I suppose there are
 always
  exceptions to the rule.
 
  Properties files can easily be put into the src/main/resources directory
 and
  will end up in the classpath by default.  I'm afraid I can't speak for
 the
  WSDL.
 
  Dave
 
 
  On 4/20/09 9:11 PM, João Pereira wrote:
 
  2009/4/21 João Pereirajoaomiguel.pere...@gmail.com
 
 
 
  Hello,
  Fisrt I used to love maven, at this moment I'm not sure.
 
  I have a folder with a bunch of jars+wsdls+properties that need to be
 in
  the class path for my project compile in maven. How I do that without
  having
  to deploy each jar to the local repository or a remote repository? How
 do
  I
  deal with the wsdl files?
 
 
 
  --
  João Miguel Pereira, PMP
  http://jpereira.eu
  http://www.linkedin.com/in/joaomiguelpereira
  joaomiguel.pere...@gmail.com
  (351) 96 275 68 58
 
 
 
 
 
 
 

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




-- 
João Miguel Pereira, PMP
http://jpereira.eu
http://www.linkedin.com/in/joaomiguelpereira
joaomiguel.pere...@gmail.com
(351) 96 275 68 58


Re: Repo in parent dir...

2009-04-21 Thread David Hoffer
Good rule of thumb with maven, don't fight convention.  You need a repo
manager to deploy so why not use the same for your 4 dependencies?  It
works.

-Dave

On Tue, Apr 21, 2009 at 6:22 AM, nino martinez wael 
nino.martinez.w...@gmail.com wrote:

 Ahh, this works just fine if I keep the repositories relative to the
 sub project:

 parent
 |
 |--Sub\repo
 |--Sub\repo
 |--Sub\repo

 But is a waste of space..

 This is a very nice way of adding stuff to dependencies that are no
 available on the public repos, it's also very usefull to deploy things
 into a CI server where you only have access to the CI server .. So you
 are saying that I should use a repository manage just to contain the 4
 dependencies that I have..? It would complicate a lot of things.. I do
 get the idea to use repository manages, but for just 4 deps, it seems
 overkill.

 Anyhow is it a bug that it can be use that way?

 regards


 2009/4/21 Stephen Connolly stephen.alan.conno...@gmail.com:
  Here's what you are doing wrong:
 
  you are trying to do things the ANT way (i.e. let's check in a
  directory of jars into SCM) using Maven.
 
  Use a repository manager and don't keep a local repo contained within
  your project.
 
  ;-)
 
  -Stephen
 
  2009/4/21 nino martinez wael nino.martinez.w...@gmail.com:
  Hi
 
  I have a multimodule project where I have a local repo contained
  within the project currently it's defined as this:
 
 repositories
 repository
 releases
 checksumPolicywarn/checksumPolicy
 enabledtrue/enabled
 updatePolicyinterval:60/updatePolicy
 /releases
 idlocal.3rd.party/id
 nameLocal 3rd Party repo/name
 urlfile://${basedir}/repo/url
 /repository
 /repositories
 
  In my parent pom.xml however that generates a structure relative to
  the sub projects like this:
 
  parent
  |
  |--Sub\repo
 
  however what I want are this:
 
  parent
  |
  |-Repo\dependencies
  |-Sub
 
  I've tried substituting basedir with project.parent.basedir, it's not
  working... What am I doing wrong?
 
  regards Nino
 
  -
  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: Repo in parent dir...

2009-04-21 Thread nino martinez wael
Sure, but we then need an extra server :/ And even more setup... So
actually what you are saying that on all setups where you are using
dependencies that are not in the common maven repository you need a
repo manager..

2009/4/21 David Hoffer dhoff...@gmail.com:
 Good rule of thumb with maven, don't fight convention.  You need a repo
 manager to deploy so why not use the same for your 4 dependencies?  It
 works.

 -Dave

 On Tue, Apr 21, 2009 at 6:22 AM, nino martinez wael 
 nino.martinez.w...@gmail.com wrote:

 Ahh, this works just fine if I keep the repositories relative to the
 sub project:

 parent
 |
 |--Sub\repo
 |--Sub\repo
 |--Sub\repo

 But is a waste of space..

 This is a very nice way of adding stuff to dependencies that are no
 available on the public repos, it's also very usefull to deploy things
 into a CI server where you only have access to the CI server .. So you
 are saying that I should use a repository manage just to contain the 4
 dependencies that I have..? It would complicate a lot of things.. I do
 get the idea to use repository manages, but for just 4 deps, it seems
 overkill.

 Anyhow is it a bug that it can be use that way?

 regards


 2009/4/21 Stephen Connolly stephen.alan.conno...@gmail.com:
  Here's what you are doing wrong:
 
  you are trying to do things the ANT way (i.e. let's check in a
  directory of jars into SCM) using Maven.
 
  Use a repository manager and don't keep a local repo contained within
  your project.
 
  ;-)
 
  -Stephen
 
  2009/4/21 nino martinez wael nino.martinez.w...@gmail.com:
  Hi
 
  I have a multimodule project where I have a local repo contained
  within the project currently it's defined as this:
 
         repositories
                 repository
                         releases
                                 checksumPolicywarn/checksumPolicy
                                 enabledtrue/enabled
                                 updatePolicyinterval:60/updatePolicy
                         /releases
                         idlocal.3rd.party/id
                         nameLocal 3rd Party repo/name
                         urlfile://${basedir}/repo/url
                 /repository
         /repositories
 
  In my parent pom.xml however that generates a structure relative to
  the sub projects like this:
 
  parent
  |
  |--Sub\repo
 
  however what I want are this:
 
  parent
  |
  |-Repo\dependencies
  |-Sub
 
  I've tried substituting basedir with project.parent.basedir, it's not
  working... What am I doing wrong?
 
  regards Nino
 
  -
  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: Is maven so inflexible?

2009-04-21 Thread David C. Hicks
I think the maven-dependency-plugin is probably what you need to use, in 
this case.



On 4/21/09 5:52 AM, João Pereira wrote:

Here's the scenario

I have a the Alfresco SDK which depends on a lot of libraries, some of them
I can find in the standard repos, others I don't. I wish  that the SDK was
made of only of one Jar wit no dependencies. I know that someone  have their
public repo with alfresco sdk, but I need different versions which could not
be found on their repo.

Now, my aproach is to have the jars, which I cannot find in any public repo,
deployed to my own repo then use them as dependencies... But I'm lazzy and
this consumes time :)

Regarding the wsdls, I'll put them in a jar as suggested.


thanks for your help, and I understand that Maven dependency management is
the correct one... I used Ant for +4 years and I know the problems...

thank you

On Tue, Apr 21, 2009 at 2:48 AM, Dan Trandant...@gmail.com  wrote:

   

can you use jaxws-maven-plugin to manage your wsdl files?

-D

On Mon, Apr 20, 2009 at 6:36 PM, David C. Hicksdhi...@i-hicks.org
wrote:
 

Are the jars part of the project, or are they artifacts that you depend
   

on?
 

  That seems to be a large part of what you may need to change.  If the
   

jars
 

are artifacts that can be found in a standard repository, just mark them
   

up
 

as dependencies.  If they are generated by your project, they should end
   

up
 

in the reactor when you build.  Why you would have them in a directory in
your project is something of a mystery to me, but I suppose there are
   

always
 

exceptions to the rule.

Properties files can easily be put into the src/main/resources directory
   

and
 

will end up in the classpath by default.  I'm afraid I can't speak for
   

the
 

WSDL.

Dave


On 4/20/09 9:11 PM, João Pereira wrote:
   

2009/4/21 João Pereirajoaomiguel.pere...@gmail.com


 

Hello,
Fisrt I used to love maven, at this moment I'm not sure.

I have a folder with a bunch of jars+wsdls+properties that need to be
   

in
 

the class path for my project compile in maven. How I do that without
having
to deploy each jar to the local repository or a remote repository? How
   

do
 

I
deal with the wsdl files?



--
João Miguel Pereira, PMP
http://jpereira.eu
http://www.linkedin.com/in/joaomiguelpereira
joaomiguel.pere...@gmail.com
(351) 96 275 68 58


   



 

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


 



   


RE: Repo in parent dir...

2009-04-21 Thread Todd Thiessen
To be more specific, all dependencies, including the ones in central, go 
through your own personal maven repo. This saves a lot of bandwidth (you only 
have to retrieve the artifact from the maven central repo once) and reduces the 
load on the maven central server considerably.

Getting your own repo manager is well worth the effort.

---
Todd Thiessen
 

 -Original Message-
 From: nino martinez wael [mailto:nino.martinez.w...@gmail.com] 
 Sent: Tuesday, April 21, 2009 9:38 AM
 To: Maven Users List
 Subject: Re: Repo in parent dir...
 
 Sure, but we then need an extra server :/ And even more 
 setup... So actually what you are saying that on all setups 
 where you are using dependencies that are not in the common 
 maven repository you need a repo manager..
 
 2009/4/21 David Hoffer dhoff...@gmail.com:
  Good rule of thumb with maven, don't fight convention.  You need a 
  repo manager to deploy so why not use the same for your 4 
  dependencies?  It works.
 
  -Dave
 
  On Tue, Apr 21, 2009 at 6:22 AM, nino martinez wael  
  nino.martinez.w...@gmail.com wrote:
 
  Ahh, this works just fine if I keep the repositories 
 relative to the 
  sub project:
 
  parent
  |
  |--Sub\repo
  |--Sub\repo
  |--Sub\repo
 
  But is a waste of space..
 
  This is a very nice way of adding stuff to dependencies 
 that are no 
  available on the public repos, it's also very usefull to deploy 
  things into a CI server where you only have access to the 
 CI server 
  .. So you are saying that I should use a repository manage just to 
  contain the 4 dependencies that I have..? It would 
 complicate a lot 
  of things.. I do get the idea to use repository manages, 
 but for just 
  4 deps, it seems overkill.
 
  Anyhow is it a bug that it can be use that way?
 
  regards
 
 
  2009/4/21 Stephen Connolly stephen.alan.conno...@gmail.com:
   Here's what you are doing wrong:
  
   you are trying to do things the ANT way (i.e. let's check in a 
   directory of jars into SCM) using Maven.
  
   Use a repository manager and don't keep a local repo contained 
   within your project.
  
   ;-)
  
   -Stephen
  
   2009/4/21 nino martinez wael nino.martinez.w...@gmail.com:
   Hi
  
   I have a multimodule project where I have a local repo 
 contained 
   within the project currently it's defined as this:
  
          repositories
                  repository
                          releases
                                  
   checksumPolicywarn/checksumPolicy
                                  enabledtrue/enabled
                                  
   updatePolicyinterval:60/updatePolicy
                          /releases
                          idlocal.3rd.party/id
                          nameLocal 3rd Party repo/name
                          urlfile://${basedir}/repo/url
                  /repository
          /repositories
  
   In my parent pom.xml however that generates a structure 
 relative 
   to the sub projects like this:
  
   parent
   |
   |--Sub\repo
  
   however what I want are this:
  
   parent
   |
   |-Repo\dependencies
   |-Sub
  
   I've tried substituting basedir with 
 project.parent.basedir, it's 
   not working... What am I doing wrong?
  
   regards Nino
  
   
 --
   --- 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
 
 

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



Re: Repo in parent dir...

2009-04-21 Thread nino martinez wael
Yes I know this.

2009/4/21 Todd Thiessen thies...@nortel.com:
 To be more specific, all dependencies, including the ones in central, go 
 through your own personal maven repo. This saves a lot of bandwidth (you only 
 have to retrieve the artifact from the maven central repo once) and reduces 
 the load on the maven central server considerably.

 Getting your own repo manager is well worth the effort.

 ---
 Todd Thiessen


 -Original Message-
 From: nino martinez wael [mailto:nino.martinez.w...@gmail.com]
 Sent: Tuesday, April 21, 2009 9:38 AM
 To: Maven Users List
 Subject: Re: Repo in parent dir...

 Sure, but we then need an extra server :/ And even more
 setup... So actually what you are saying that on all setups
 where you are using dependencies that are not in the common
 maven repository you need a repo manager..

 2009/4/21 David Hoffer dhoff...@gmail.com:
  Good rule of thumb with maven, don't fight convention.  You need a
  repo manager to deploy so why not use the same for your 4
  dependencies?  It works.
 
  -Dave
 
  On Tue, Apr 21, 2009 at 6:22 AM, nino martinez wael 
  nino.martinez.w...@gmail.com wrote:
 
  Ahh, this works just fine if I keep the repositories
 relative to the
  sub project:
 
  parent
  |
  |--Sub\repo
  |--Sub\repo
  |--Sub\repo
 
  But is a waste of space..
 
  This is a very nice way of adding stuff to dependencies
 that are no
  available on the public repos, it's also very usefull to deploy
  things into a CI server where you only have access to the
 CI server
  .. So you are saying that I should use a repository manage just to
  contain the 4 dependencies that I have..? It would
 complicate a lot
  of things.. I do get the idea to use repository manages,
 but for just
  4 deps, it seems overkill.
 
  Anyhow is it a bug that it can be use that way?
 
  regards
 
 
  2009/4/21 Stephen Connolly stephen.alan.conno...@gmail.com:
   Here's what you are doing wrong:
  
   you are trying to do things the ANT way (i.e. let's check in a
   directory of jars into SCM) using Maven.
  
   Use a repository manager and don't keep a local repo contained
   within your project.
  
   ;-)
  
   -Stephen
  
   2009/4/21 nino martinez wael nino.martinez.w...@gmail.com:
   Hi
  
   I have a multimodule project where I have a local repo
 contained
   within the project currently it's defined as this:
  
          repositories
                  repository
                          releases
  
   checksumPolicywarn/checksumPolicy
                                  enabledtrue/enabled
  
   updatePolicyinterval:60/updatePolicy
                          /releases
                          idlocal.3rd.party/id
                          nameLocal 3rd Party repo/name
                          urlfile://${basedir}/repo/url
                  /repository
          /repositories
  
   In my parent pom.xml however that generates a structure
 relative
   to the sub projects like this:
  
   parent
   |
   |--Sub\repo
  
   however what I want are this:
  
   parent
   |
   |-Repo\dependencies
   |-Sub
  
   I've tried substituting basedir with
 project.parent.basedir, it's
   not working... What am I doing wrong?
  
   regards Nino
  
  
 --
   --- 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



 -
 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



Maven Site Skinning

2009-04-21 Thread Ryan Connolly
Hello:
 I am creating a site skin for my company's project sites and have
written a MOJO that will generate the site logo based on the project
name that runs at the pre-site lifecycle phase.  My question is this:
Could my plugin goal somehow be packaged along with the skin so that
it can be called automatically for any project that uses this skin?
Currently I have the skin in one project and the single mojo plug-in
in another project.  My hopes are to have them somehow combined as to
not have to maintain 2 projects that are essentially part of the same
'project'.

Any help and/or suggestions would be greatly appreciated.

Thanks,
-Ryan

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



Re: Repo in parent dir...

2009-04-21 Thread Stephen Connolly
Last time I checked, setting up Nexus took me 10 minutes and you can run it
quite safely on your own desktop...

I suspect Artifactory would be similar...

This is for your own good...

Go on... drink the repository manager kool-aid, you've already drank the
Maven kool-aid, what are you afraid of ;-)

-Stephen

2009/4/21 nino martinez wael nino.martinez.w...@gmail.com

 Sure, but we then need an extra server :/ And even more setup... So
 actually what you are saying that on all setups where you are using
 dependencies that are not in the common maven repository you need a
 repo manager..

 2009/4/21 David Hoffer dhoff...@gmail.com:
  Good rule of thumb with maven, don't fight convention.  You need a repo
  manager to deploy so why not use the same for your 4 dependencies?  It
  works.
 
  -Dave
 
  On Tue, Apr 21, 2009 at 6:22 AM, nino martinez wael 
  nino.martinez.w...@gmail.com wrote:
 
  Ahh, this works just fine if I keep the repositories relative to the
  sub project:
 
  parent
  |
  |--Sub\repo
  |--Sub\repo
  |--Sub\repo
 
  But is a waste of space..
 
  This is a very nice way of adding stuff to dependencies that are no
  available on the public repos, it's also very usefull to deploy things
  into a CI server where you only have access to the CI server .. So you
  are saying that I should use a repository manage just to contain the 4
  dependencies that I have..? It would complicate a lot of things.. I do
  get the idea to use repository manages, but for just 4 deps, it seems
  overkill.
 
  Anyhow is it a bug that it can be use that way?
 
  regards
 
 
  2009/4/21 Stephen Connolly stephen.alan.conno...@gmail.com:
   Here's what you are doing wrong:
  
   you are trying to do things the ANT way (i.e. let's check in a
   directory of jars into SCM) using Maven.
  
   Use a repository manager and don't keep a local repo contained within
   your project.
  
   ;-)
  
   -Stephen
  
   2009/4/21 nino martinez wael nino.martinez.w...@gmail.com:
   Hi
  
   I have a multimodule project where I have a local repo contained
   within the project currently it's defined as this:
  
  repositories
  repository
  releases
  checksumPolicywarn/checksumPolicy
  enabledtrue/enabled
  
  updatePolicyinterval:60/updatePolicy
  /releases
  idlocal.3rd.party/id
  nameLocal 3rd Party repo/name
  urlfile://${basedir}/repo/url
  /repository
  /repositories
  
   In my parent pom.xml however that generates a structure relative to
   the sub projects like this:
  
   parent
   |
   |--Sub\repo
  
   however what I want are this:
  
   parent
   |
   |-Repo\dependencies
   |-Sub
  
   I've tried substituting basedir with project.parent.basedir, it's not
   working... What am I doing wrong?
  
   regards Nino
  
   -
   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: Repo in parent dir...

2009-04-21 Thread David Hoffer
Since you need this anyway, there is no extra server.  We use Artifactory
and deploying 4 dependencies manually in this server takes about 4 minutes.
Why fight whats easy?

-Dave

On Tue, Apr 21, 2009 at 8:01 AM, nino martinez wael 
nino.martinez.w...@gmail.com wrote:

 Yes I know this.

 2009/4/21 Todd Thiessen thies...@nortel.com:
  To be more specific, all dependencies, including the ones in central, go
 through your own personal maven repo. This saves a lot of bandwidth (you
 only have to retrieve the artifact from the maven central repo once) and
 reduces the load on the maven central server considerably.
 
  Getting your own repo manager is well worth the effort.
 
  ---
  Todd Thiessen
 
 
  -Original Message-
  From: nino martinez wael [mailto:nino.martinez.w...@gmail.com]
  Sent: Tuesday, April 21, 2009 9:38 AM
  To: Maven Users List
  Subject: Re: Repo in parent dir...
 
  Sure, but we then need an extra server :/ And even more
  setup... So actually what you are saying that on all setups
  where you are using dependencies that are not in the common
  maven repository you need a repo manager..
 
  2009/4/21 David Hoffer dhoff...@gmail.com:
   Good rule of thumb with maven, don't fight convention.  You need a
   repo manager to deploy so why not use the same for your 4
   dependencies?  It works.
  
   -Dave
  
   On Tue, Apr 21, 2009 at 6:22 AM, nino martinez wael 
   nino.martinez.w...@gmail.com wrote:
  
   Ahh, this works just fine if I keep the repositories
  relative to the
   sub project:
  
   parent
   |
   |--Sub\repo
   |--Sub\repo
   |--Sub\repo
  
   But is a waste of space..
  
   This is a very nice way of adding stuff to dependencies
  that are no
   available on the public repos, it's also very usefull to deploy
   things into a CI server where you only have access to the
  CI server
   .. So you are saying that I should use a repository manage just to
   contain the 4 dependencies that I have..? It would
  complicate a lot
   of things.. I do get the idea to use repository manages,
  but for just
   4 deps, it seems overkill.
  
   Anyhow is it a bug that it can be use that way?
  
   regards
  
  
   2009/4/21 Stephen Connolly stephen.alan.conno...@gmail.com:
Here's what you are doing wrong:
   
you are trying to do things the ANT way (i.e. let's check in a
directory of jars into SCM) using Maven.
   
Use a repository manager and don't keep a local repo contained
within your project.
   
;-)
   
-Stephen
   
2009/4/21 nino martinez wael nino.martinez.w...@gmail.com:
Hi
   
I have a multimodule project where I have a local repo
  contained
within the project currently it's defined as this:
   
   repositories
   repository
   releases
   
checksumPolicywarn/checksumPolicy
   enabledtrue/enabled
   
updatePolicyinterval:60/updatePolicy
   /releases
   idlocal.3rd.party/id
   nameLocal 3rd Party repo/name
   urlfile://${basedir}/repo/url
   /repository
   /repositories
   
In my parent pom.xml however that generates a structure
  relative
to the sub projects like this:
   
parent
|
|--Sub\repo
   
however what I want are this:
   
parent
|
|-Repo\dependencies
|-Sub
   
I've tried substituting basedir with
  project.parent.basedir, it's
not working... What am I doing wrong?
   
regards Nino
   
   
  --
--- 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
 
 
 
  -
  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: Repo in parent dir...

2009-04-21 Thread Dominic Mitchell

On 21 Apr 2009, at 15:05, Stephen Connolly wrote:

Last time I checked, setting up Nexus took me 10 minutes and you can  
run it

quite safely on your own desktop...


Likewise, I set up nexus on my laptop.  It works like a charm, and  
makes using maven on the road much more pleasant.


-Dom

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



The Sonar plugins forge is up and running

2009-04-21 Thread Olivier Gaudin

Sonar is an open source platform that manages java source code quality. 

The Sonar Team is pleased to announce two major events :

1. Sonar 1.8 is out

The new version brings, amongst numerous improvements, two major
functionality : a proper FindBugs configuration Management and a Hotspot
service enabling to spot in one screen the classes that have the most... or
the less... for all metrics.

You can see the announce in screenshots [1]

2. The Sonar plugins forge is up and running

Extensibility of Sonar is key to its adoption. That is why it was built on a
very light core that consists mainly in an extension mechanism. All the
ingredients are now ready for anybody to contribute :
* An easy to use API
* A forge
* An active community
* A “Getting started” documentation with examples

A full description on how to contribute is available here [2]

Thanks

The Sonar Team

[1] http://sonar.codehaus.org/sonar-18-in-screenshots/
[2] http://sonar.codehaus.org/the-sonar-plugins-forge-is-up-and-running/

-- 
View this message in context: 
http://www.nabble.com/The-Sonar-plugins-forge-is-up-and-running-tp23157131p23157131.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: Dependency on local web project war (netbeans)

2009-04-21 Thread Siegfried Goeschl
Hi Pieter,

you could use a project layout like this

+--project
   +--shared
   +--client
   +--server

A few quick remarks

+) the server part should not depend on the client or the other way
round - therefore a common subproject
+) sharing in Maven speak means installing the shared component library
into the local repository and reference it from the dependent project
+) with a little bit of tinkering you can also upload the sources into
your local repository

Cheers,

Siegfried Goeschl

PS: Not sure if NetBeans is a good choice considering that Oracle buys Sun

pieter claassen wrote:
 I am trying to move to netbeans for dev so it is a good question
 whether I need the source or just the compiled code. Not finding the
 symbols I assume is a failure to access the .class files? Or does
 netbeans need access to the source?

 How do I share the project between the client and the server? You mean
 unify them into 1 project?

 I am a bit stumped here because I imagine that this is such a normal
 requirement. People write project that import classes from other local
 projects all the time. The problem is just how to do this with maven?

 Thanks for the feedback.

 P

 On Mon, Apr 20, 2009 at 6:58 PM, Siegfried Goeschl
 siegfried.goes...@it20one.at wrote:
   
 Hi Pieter,

 you would like to use transitive dependencies using a WAR - this did not
 work in the past and I doubt that it works now. Having said that I would
 help if you have shared project between client and server. And do really
 need the source or only the class files?! If yes that approach would not
 work either ...

 Cheers,

 Siegfried Goeschl

 pieter claassen wrote:
 
 ok, I have narrowed the problem down as probably a maven issue.

 I have parent.pom and two modules client and server. Client is a war
 and server is a jar. server needs to get hold of client's source
 because db4o needs the source for both the client and server (to
 configure it for each java.class it will store).

 I have the following dep in server.pom
dependency
 groupIdcom.musmato/groupId
 artifactIdclient.war/artifactId
 version1.0/version
 typewar/type
 scopecompile/scope
 /dependency

 But when I run mvn clean install on the parent, I can see it build the
 client.war, pop it in the local mvn repo and then the server build
 fails to find any of the depedency code.

 Any ideas? Should this work? I assume it is pretty normal to share
 code between different maven projects?? Even if one of them is a war?

 Cheers,
 P

 On Mon, Apr 20, 2009 at 2:55 PM, pieter claassen pie...@claassen.co.uk 
 wrote:

   
 I have a netbeans project that requires to access sourcecode and
 compiled code from a web project. If I set the dependency on the war
 file, it just doesn't work (it works on a jar file). How do I access
 code produced by a war project in netbeans?

 Regards,
 Pieter


 
 -
 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: Simple maven question

2009-04-21 Thread Nick Stolwijk
The official stand is that there is no guarantee in which order
plugins are run inside a phase. And it shouldn't matter. If one plugin
is dependend on the outcome of another plugin it should be in a later
phase.

Hth,

Nick Stolwijk
~Java Developer~

Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl



On Mon, Apr 20, 2009 at 9:51 PM, Stephen Connolly
stephen.alan.conno...@gmail.com wrote:
 AFAIK the order is, for each phase:

 1. lifecycle added goals, in the order they are defined in the lifecycle
 2. project added goals in plugin order from the pom.

 where it gets confusing is profiles and inherited plugins, and where
 they go in the sequence

 -Stephen

 2009/4/20 Tony Giaccone tgiacc...@gmail.com:
 I've been using maven for a while now, but have finally had to go deeper
 then just the basics of a pom file.  As a result I now am curious about the
 internal workings of maven.

 I understand that there are phases to a build, and that each phase is
 composed of goals. I also understand that plug-ins can add new goals to the
 list of goals to be accomplished/dispatched in a phase.

 My questions are all about goals.

 How are goals ordered in a phase?

 What determines the order in which a set of goals are dispatched?

 Can that ordering be seen?
 Can it be changed?
 When a new goal is added to a phase how is it placed in the list of goals
 for that phase, first, last, indeterminate?


 Curious minds want to know.



 Tony

 PS I've done a fair amount of reading  but haven't really found anything on
 this topic. If you can point me to something that answers my questions, that
 would ROCK.


 -
 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: Maven Site Skinning

2009-04-21 Thread jieryn
Hello Ryan,

On Tue, Apr 21, 2009 at 10:05 AM, Ryan Connolly ryn...@gmail.com wrote:
 Hello:
     I am creating a site skin for my company's project sites and have
 written a MOJO that will generate the site logo based on the project
 name that runs at the pre-site lifecycle phase.

Any chance you can release this Mojo? :-)

-jesse

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



Re: Maven module only for site?

2009-04-21 Thread solo1970

I was thinking of using profiles but can't seem to find a way to activate the
profile based on the lifecycle or phase???



solo1970 wrote:
 
 Hello everyone,
 
 Here is what I need to do:
 
 inlcude a moduleC/module in my aggregator (multi-module) POM that
 would ONLY BE executed when doing a mvn site command, not when I do a
 mvn compile, package or deploy...
 
 Any ideas on how to do this???
 
 Sonia
 

-- 
View this message in context: 
http://www.nabble.com/Maven-module-only-for-site--tp23141464p23158439.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: Maven Site Skinning

2009-04-21 Thread Ryan Connolly
Jesse:

I would be glad to, however, I feel it still needs some tweaking
to allow for user configuration... I'm working on adding color,
gradient, background configurations to allow this to work well with
other skins/color/style schemes as it currently generates a logo that
fits in with the skin I am developing for our company projects.
Please let me know what would interest you in regards to project logo
generation and I would be glad to look into incorporating your
requests.

Thanks!


On Tue, Apr 21, 2009 at 11:05 AM,  jie...@gmail.com wrote:
 Hello Ryan,

 On Tue, Apr 21, 2009 at 10:05 AM, Ryan Connolly ryn...@gmail.com wrote:
 Hello:
     I am creating a site skin for my company's project sites and have
 written a MOJO that will generate the site logo based on the project
 name that runs at the pre-site lifecycle phase.

 Any chance you can release this Mojo? :-)

 -jesse

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





-- 
�...@n

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



Re: Maven Site Skinning

2009-04-21 Thread jieryn
Hi Ryan,

On Tue, Apr 21, 2009 at 11:31 AM, Ryan Connolly ryn...@gmail.com wrote:
 Jesse:

    I would be glad to, however, I feel it still needs some tweaking
 to allow for user configuration...

I was going to do a project just like this, and incorporate
ImageMagick. My first thought was just to have an open ended parameter
that would be options to pass to ImageMagick. By default the Mojo
would use the project.name as the text, but this would be overridable.

-jesse

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



Re: Simple maven question

2009-04-21 Thread Tony Giaccone
You know, I had a feeling that's what the real answer was going to be, it's
the only one that makes any sense. As stuff gets added in from a variety of
sources, you have no idea what has happened in this phase before or after
you get a chance to run.

h

Worth thinking about...


Tony

On Tue, Apr 21, 2009 at 11:04 AM, Nick Stolwijk nick.stolw...@gmail.comwrote:

 The official stand is that there is no guarantee in which order
 plugins are run inside a phase. And it shouldn't matter. If one plugin
 is dependend on the outcome of another plugin it should be in a later
 phase.

 Hth,

 Nick Stolwijk
 ~Java Developer~

 Iprofs BV.
 Claus Sluterweg 125
 2012 WS Haarlem
 www.iprofs.nl



 On Mon, Apr 20, 2009 at 9:51 PM, Stephen Connolly
 stephen.alan.conno...@gmail.com wrote:
  AFAIK the order is, for each phase:
 
  1. lifecycle added goals, in the order they are defined in the lifecycle
  2. project added goals in plugin order from the pom.
 
  where it gets confusing is profiles and inherited plugins, and where
  they go in the sequence
 
  -Stephen
 
  2009/4/20 Tony Giaccone tgiacc...@gmail.com:
  I've been using maven for a while now, but have finally had to go deeper
  then just the basics of a pom file.  As a result I now am curious about
 the
  internal workings of maven.
 
  I understand that there are phases to a build, and that each phase is
  composed of goals. I also understand that plug-ins can add new goals to
 the
  list of goals to be accomplished/dispatched in a phase.
 
  My questions are all about goals.
 
  How are goals ordered in a phase?
 
  What determines the order in which a set of goals are dispatched?
 
  Can that ordering be seen?
  Can it be changed?
  When a new goal is added to a phase how is it placed in the list of
 goals
  for that phase, first, last, indeterminate?
 
 
  Curious minds want to know.
 
 
 
  Tony
 
  PS I've done a fair amount of reading  but haven't really found anything
 on
  this topic. If you can point me to something that answers my questions,
 that
  would ROCK.
 
 
  -
  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: Dependency on local web project war (netbeans)

2009-04-21 Thread Milos Kleint
On Tue, Apr 21, 2009 at 4:23 PM, Siegfried Goeschl 
siegfried.goes...@it20one.at wrote:

 Hi Pieter,

 you could use a project layout like this

 +--project
   +--shared
   +--client
   +--server

 A few quick remarks

 +) the server part should not depend on the client or the other way
 round - therefore a common subproject
 +) sharing in Maven speak means installing the shared component library
 into the local repository and reference it from the dependent project
 +) with a little bit of tinkering you can also upload the sources into
 your local repository

 Cheers,

 Siegfried Goeschl

 PS: Not sure if NetBeans is a good choice considering that Oracle buys Sun


that's FUD. If you use maven, you can use any IDE out there. and netbeans is
unlikely to disappear from one hour to the next. Even now there are people
still using 5.5 which came out 2+ years ago..

Milos





 pieter claassen wrote:
  I am trying to move to netbeans for dev so it is a good question
  whether I need the source or just the compiled code. Not finding the
  symbols I assume is a failure to access the .class files? Or does
  netbeans need access to the source?
 
  How do I share the project between the client and the server? You mean
  unify them into 1 project?
 
  I am a bit stumped here because I imagine that this is such a normal
  requirement. People write project that import classes from other local
  projects all the time. The problem is just how to do this with maven?
 
  Thanks for the feedback.
 
  P
 
  On Mon, Apr 20, 2009 at 6:58 PM, Siegfried Goeschl
  siegfried.goes...@it20one.at wrote:
 
  Hi Pieter,
 
  you would like to use transitive dependencies using a WAR - this did not
  work in the past and I doubt that it works now. Having said that I would
  help if you have shared project between client and server. And do really
  need the source or only the class files?! If yes that approach would not
  work either ...
 
  Cheers,
 
  Siegfried Goeschl
 
  pieter claassen wrote:
 
  ok, I have narrowed the problem down as probably a maven issue.
 
  I have parent.pom and two modules client and server. Client is a war
  and server is a jar. server needs to get hold of client's source
  because db4o needs the source for both the client and server (to
  configure it for each java.class it will store).
 
  I have the following dep in server.pom
 dependency
  groupIdcom.musmato/groupId
  artifactIdclient.war/artifactId
  version1.0/version
  typewar/type
  scopecompile/scope
  /dependency
 
  But when I run mvn clean install on the parent, I can see it build the
  client.war, pop it in the local mvn repo and then the server build
  fails to find any of the depedency code.
 
  Any ideas? Should this work? I assume it is pretty normal to share
  code between different maven projects?? Even if one of them is a war?
 
  Cheers,
  P
 
  On Mon, Apr 20, 2009 at 2:55 PM, pieter claassen 
 pie...@claassen.co.uk wrote:
 
 
  I have a netbeans project that requires to access sourcecode and
  compiled code from a web project. If I set the dependency on the war
  file, it just doesn't work (it works on a jar file). How do I access
  code produced by a war project in netbeans?
 
  Regards,
  Pieter
 
 
 
  -
  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: Maven module only for site?

2009-04-21 Thread Nick Stolwijk
Why do you want to achieve that?

Afaik you can't activate a profile based upon running phases.

Just make sure the module only includes goals which are run in the
site lifecycle.

Hth,

Nick Stolwijk
~Java Developer~

Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl



On Tue, Apr 21, 2009 at 5:20 PM, solo1970
sonia.lodoviche...@ericsson.com wrote:

 I was thinking of using profiles but can't seem to find a way to activate the
 profile based on the lifecycle or phase???



 solo1970 wrote:

 Hello everyone,

 Here is what I need to do:

 inlcude a moduleC/module in my aggregator (multi-module) POM that
 would ONLY BE executed when doing a mvn site command, not when I do a
 mvn compile, package or deploy...

 Any ideas on how to do this???

 Sonia


 --
 View this message in context: 
 http://www.nabble.com/Maven-module-only-for-site--tp23141464p23158439.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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



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



Re: Repo in parent dir...

2009-04-21 Thread nino martinez wael
True, i'll hop on the wagon and drink the rest of the potion..

Thanks all for helping out..

2009/4/21 Dominic Mitchell d...@semantico.com:
 On 21 Apr 2009, at 15:05, Stephen Connolly wrote:

 Last time I checked, setting up Nexus took me 10 minutes and you can run
 it
 quite safely on your own desktop...

 Likewise, I set up nexus on my laptop.  It works like a charm, and makes
 using maven on the road much more pleasant.

 -Dom

 -
 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



maven-ear-plugin or maven-ejb-plugin and persistence.xml

2009-04-21 Thread Jean-Claude

Hi,

We are using maven2, JBoss 5 and Hibernate with the file persistence.xml
according to the specifications.

In the file persistence.xml we have to list the jar files like it:
jar-file./activity-bo-1.0.0-SNAPSHOT.jar/jar-file
jar-file./core-bo-1.0.0-SNAPSHOT.jar/jar-file

These jar files appear in persistence.xml with their version (1.0.0-SNAPSHOT
in this case).

Is it a way to automatically generate the list of the jar files to avoid
having to manually edit the file persistence.xml each time there is a new
version of the jar files (e.g. using the maven-ejb-plugin)?

Thank you for your help
J.-Claude
-- 
View this message in context: 
http://www.nabble.com/maven-ear-plugin-or-maven-ejb-plugin-and-persistence.xml-tp23160597p23160597.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: Maven Site Skinning

2009-04-21 Thread Ryan Connolly
Hi Jesse:
 I'm not familiar with ImageMagick... I'm acheiving simple logo
creation using Java 2d as I didn't want users to have to have imaging
apps installed to run the build.  I would love to see what you come up
with should you pursue that route would love to know if you can come
up with a way for a skin project to include a mojo instead of having
to maintain them seperately!



On Tue, Apr 21, 2009 at 11:35 AM,  jie...@gmail.com wrote:
 Hi Ryan,

 On Tue, Apr 21, 2009 at 11:31 AM, Ryan Connolly ryn...@gmail.com wrote:
 Jesse:

    I would be glad to, however, I feel it still needs some tweaking
 to allow for user configuration...

 I was going to do a project just like this, and incorporate
 ImageMagick. My first thought was just to have an open ended parameter
 that would be options to pass to ImageMagick. By default the Mojo
 would use the project.name as the text, but this would be overridable.

 -jesse

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





-- 
�...@n

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



Dependency management management

2009-04-21 Thread Jon Strayer
Our project has about 65 dependencies listed.  I just discovered that
one was listed twice.  Is there a tool that will detect that for me?
Or, perhaps one that will sort the dependencies to make it easier to
scan for duplicates?

-- 
All religions are Scientology complete

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



Re: Dependency management management

2009-04-21 Thread Nick Stolwijk
You could use the dependency management[1] report for that.

Hth,

[1] 
http://maven.apache.org/plugins/maven-project-info-reports-plugin/dependency-management-mojo.html

Nick Stolwijk
~Java Developer~

Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl



On Tue, Apr 21, 2009 at 8:15 PM, Jon Strayer j...@strayer.org wrote:
 Our project has about 65 dependencies listed.  I just discovered that
 one was listed twice.  Is there a tool that will detect that for me?
 Or, perhaps one that will sort the dependencies to make it easier to
 scan for duplicates?

 --
 All religions are Scientology complete

 -
 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: Dependency management management

2009-04-21 Thread Nayan Hajratwala
I like to use:

  mvn dependency:tree
  mvn dependency:analyze


On Tue, 21 Apr 2009 20:19:54 +0200, Nick Stolwijk nick.stolw...@gmail.com
wrote:
 You could use the dependency management[1] report for that.
 
 Hth,
 
 [1]

http://maven.apache.org/plugins/maven-project-info-reports-plugin/dependency-management-mojo.html
 
 Nick Stolwijk
 ~Java Developer~
 
 Iprofs BV.
 Claus Sluterweg 125
 2012 WS Haarlem
 www.iprofs.nl
 
 
 
 On Tue, Apr 21, 2009 at 8:15 PM, Jon Strayer j...@strayer.org wrote:
 Our project has about 65 dependencies listed.  I just discovered that
 one was listed twice.  Is there a tool that will detect that for me?
 Or, perhaps one that will sort the dependencies to make it easier to
 scan for duplicates?

 --
 All religions are Scientology complete

 -
 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

-- 
  Nayan Hajratwala
  http://agileshrugged.com
  734.658.6032

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



Re: Maven Site Skinning

2009-04-21 Thread Dennis Lundberg
Ryan Connolly wrote:
 Hello:
  I am creating a site skin for my company's project sites and have
 written a MOJO that will generate the site logo based on the project
 name that runs at the pre-site lifecycle phase.  My question is this:
 Could my plugin goal somehow be packaged along with the skin so that
 it can be called automatically for any project that uses this skin?
 Currently I have the skin in one project and the single mojo plug-in
 in another project.  My hopes are to have them somehow combined as to
 not have to maintain 2 projects that are essentially part of the same
 'project'.

If I understand your setup correctly, you should not integrate your
plugin into the skin. Instead you should keep them separate as they do
different things.

The skin is a bunch of files that defines the look and feel of your
site, packaged together in a jar-file. These files can include a logo,
or in your case you can leave that out of your skin. Just reference the
not-yet-existing logo in your style sheets.

Then you can have project X, a project that wants your skin and a custom
generated logo. That project will reference your skin in its site.xml.
That project will also include an execution of your logo mojo in its
pom.xml, that will create the logo that is referenced in your skin. Just
make sure that the logo mojo outputs the logo into the correct directory
used for site resources, /src/site/resources/... by default.

 
 Any help and/or suggestions would be greatly appreciated.
 
 Thanks,
 -Ryan
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 


-- 
Dennis Lundberg

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



Using a 'main' resource from a test

2009-04-21 Thread Ross E Bundy
I've set up my project according to the directory structure show at:
   
http://maven.apache.org/guides/getting-started/index.html#How_do_I_add_resources_to_my_JAR
I've included resources in both the test and main directories. There are some 
'main' resources that I also need to access from my tests. I can access my test 
resources just fine, but I can't access the main resources from my tests. Is 
there a way to do this? The only way that I can find is to create links in my 
test resources directory to the files in the main resources directory.

Is there a better way?

Thanks,
--ross


Re: Using a 'main' resource from a test

2009-04-21 Thread Nayan Hajratwala
By default, classes under src/test/java should have access to:

  all classes under src/main/java  src/test/java
  all resources under src/main/resources  src/test/resources

There must be something else wrong. Can you post your pom?


On Tue, 21 Apr 2009 11:08:43 -0700, Ross E Bundy bu...@yahoo-inc.com
wrote:
 I've set up my project according to the directory structure show at:
   
http://maven.apache.org/guides/getting-started/index.html#How_do_I_add_resources_to_my_JAR
 I've included resources in both the test and main directories. There are
 some 'main' resources that I also need to access from my tests. I can
 access my test resources just fine, but I can't access the main resources
 from my tests. Is there a way to do this? The only way that I can find is
 to create links in my test resources directory to the files in the main
 resources directory.
 
 Is there a better way?
 
 Thanks,
 --ross


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



Re: Using a 'main' resource from a test

2009-04-21 Thread Nick Stolwijk
What do you mean by access? Those resources in main should be on the
classpath during test execution.

With regards,

Nick Stolwijk
~Java Developer~

Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl



On Tue, Apr 21, 2009 at 8:08 PM, Ross E Bundy bu...@yahoo-inc.com wrote:
 I've set up my project according to the directory structure show at:
   
 http://maven.apache.org/guides/getting-started/index.html#How_do_I_add_resources_to_my_JAR
 I've included resources in both the test and main directories. There are some 
 'main' resources that I also need to access from my tests. I can access my 
 test resources just fine, but I can't access the main resources from my 
 tests. Is there a way to do this? The only way that I can find is to create 
 links in my test resources directory to the files in the main resources 
 directory.

 Is there a better way?

 Thanks,
 --ross


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



Re: Maven Site Skinning

2009-04-21 Thread Ryan Connolly
Dennis:
 Yes, you have got this exactly right.  I have a skin packaged in
a jar and a custom plugin that contains the custom logo creation goal.
 I create the logo using the plugin at pre-site and reference the skin
in my parent pom's site.xml which refers to the generated logo.
 Thank you for confirming that what I have already done is in fact
correct.  I was thinking that the mojo should be part of the skin
package because the skin and the logo are both related to the look n
feel of the project site.  The more I think about it the more I agree
with you that they should indeed remain seperate.  Thanks again for
the input.  It's greatly appreciated!


On Tue, Apr 21, 2009 at 2:43 PM, Dennis Lundberg denn...@apache.org wrote:
 Ryan Connolly wrote:
 Hello:
      I am creating a site skin for my company's project sites and have
 written a MOJO that will generate the site logo based on the project
 name that runs at the pre-site lifecycle phase.  My question is this:
 Could my plugin goal somehow be packaged along with the skin so that
 it can be called automatically for any project that uses this skin?
 Currently I have the skin in one project and the single mojo plug-in
 in another project.  My hopes are to have them somehow combined as to
 not have to maintain 2 projects that are essentially part of the same
 'project'.

 If I understand your setup correctly, you should not integrate your
 plugin into the skin. Instead you should keep them separate as they do
 different things.

 The skin is a bunch of files that defines the look and feel of your
 site, packaged together in a jar-file. These files can include a logo,
 or in your case you can leave that out of your skin. Just reference the
 not-yet-existing logo in your style sheets.

 Then you can have project X, a project that wants your skin and a custom
 generated logo. That project will reference your skin in its site.xml.
 That project will also include an execution of your logo mojo in its
 pom.xml, that will create the logo that is referenced in your skin. Just
 make sure that the logo mojo outputs the logo into the correct directory
 used for site resources, /src/site/resources/... by default.


 Any help and/or suggestions would be greatly appreciated.

 Thanks,
 -Ryan

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




 --
 Dennis Lundberg

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





-- 
�...@n

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



dependency:copy and transitive dependencies of artifactItems

2009-04-21 Thread Chris Burroughs
I assumed from the frequent references to transitive dependencies at
http://maven.apache.org/plugins/maven-dependency-plugin/index.html
that dependency:copy supported transitive dependencies of artifactItems.

However, this appears to not be the case (at least as of a few years ago):
http://www.mail-archive.com/users@maven.apache.org/msg55576.html
http://jira.codehaus.org/browse/MDEP-182

Can someone confirm that artifactItem still does not support transitive
dependencies?  If not, is there a standard workaround or alternative?

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



resolve dependencyManagement dependencies from a bill of materials (bom) pom

2009-04-21 Thread Jim Sellers
Hi all.

For the company that I work at we've got a bill of materials (bom) pom
that contains dependencies that we know will work together.  Projects will
use the import scope to pull this into their own projects.  However, there
is a possibility of putting in an artifact that won't be resolved by our
corp proxy (archiva).

Does anyone know of a plugin or way when running the a phase of the bom it
will try and resolve and download these dependencies?  That way a mistake
can be found at that stage that something is wrong.

eg. if the pom depends on org.hibernate:hibernate-core:999, you won't see
any issue until the projects that use that pom are built.

Thanks for your time!
Jim


Re: dependency:copy and transitive dependencies of artifactItems

2009-04-21 Thread Brian Fox
It does not support transitivity yet. You can use copy-dependencies and 
combinations of the filters to get the artifacts you need


Chris Burroughs wrote:

I assumed from the frequent references to transitive dependencies at
http://maven.apache.org/plugins/maven-dependency-plugin/index.html
that dependency:copy supported transitive dependencies of artifactItems.

However, this appears to not be the case (at least as of a few years ago):
http://www.mail-archive.com/users@maven.apache.org/msg55576.html
http://jira.codehaus.org/browse/MDEP-182

Can someone confirm that artifactItem still does not support transitive
dependencies?  If not, is there a standard workaround or alternative?

-
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



[Result][Vote] findbugs-maven-plugin v 2.0.1 release

2009-04-21 Thread Garvin LeClaire

Hi,
The vote has passed with the following result :

+1 (binding): Garvin LeClaire

+1 (non-binding): Benjamin Bentmannn, Stevo Slavic

+0 (binding): 



Regards,



Garvin LeClaire
garvin.lecla...@gmail.com




Garvin LeClaire wrote:
The Maven Findbugs team would like to release Maven Findbugs Plugin 
version 2.0.1


This plugin allows the developer to run Findbugs analysis against a 
Maven project and produce site output in HTML to match other site 
reports.  There are option to produce other XML outputs which are used 
by other plugins.


Issues fixed in this release:
- Updated to Findbugs 1.3.8


More information can be found at the plugin site:
http://mojo.codehaus.org/findbugs-maven-plugin/


Issues Can be registered in JIRA at:
http://jira.codehaus.org/browse/MFINDBUGS


More information on FindBugs
http://findbugs.sourceforge.net/index.html



You can test the Maven Findbugs Plugin in your own project by adding 
the following dependency:


dependency
groupIdorg.codehaus.mojo/groupId
artifactIdfindbugs-maven-plugin/artifactId
version2.1-SNAPSHOT/version
/dependency



*NOTE*  Version 2.0 and greater of the Maven Findbugs plugin will 
require Maven to be run with a minimum of Java 5.  This is consistent 
with Findbugs requirement for their versions of 1.3.X and greater.





Vote open for 72 hours.

[ ] +1
[ ] +0
[ ] -1
--

Regards,



Garvin LeClaire
garvin.lecla...@gmail.com

  


How to bundle the dependant jars with in the lib folder of war module?

2009-04-21 Thread RaviPotnuru

I have an EAR project for which the poms were already written, now i want
jars to be bundled with war modules lib folder and those shouldn't be part
of the EAR module, can some one please help me in this regard. Briefly I
want all my dependancies should be bundled with in the war and they
shouldn,t be at ear level. Your help in this regard is greatly
appreciated... thank you.
-- 
View this message in context: 
http://www.nabble.com/How-to-bundle-the-dependant-jars-with-in-the-lib-folder-of-war-module--tp23169133p23169133.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



[ANNOUNCEMENT] Archiva 1.1.4 Released!

2009-04-21 Thread Deng Ching
The Apache Archiva team is pleased to announce the release of Archiva 1.1.4

Apache Archiva is an extensible repository management software that helps
taking care of your own personal or enterprise-wide build artifact
repository. It is the perfect companion for build tools such as Maven,
Continuum, and ANT.

Archiva offers several capabilities, amongst which remote repository
proxying, security access management, build artifact storage, delivery,
browsing, indexing and usage reporting, extensible scanning functionality...
and many more!

The latest release is now available here:
http://archiva.apache.org/download.html

If you have any questions, please consult:
 - the web site: http://archiva.apache.org
- the archiva-user mailing list: http://archiva.apache.org/mail-lists.html

Change Log for Archiva 1.1.4


** Bug
* [MRM-1152] - Fix for MRM-1136 needs to be backported for 1.1.x

Note: MRM-1136 addresses the handling of metadata files deployed using Maven
2.1


Thanks,
The Apache Archiva team


Re: maven-ear-plugin or maven-ejb-plugin and persistence.xml

2009-04-21 Thread Stephane Nicoll
Jean-Claude,

On Tue, Apr 21, 2009 at 7:03 PM, Jean-Claude jean-claude.rouvi...@ipi.chwrote:


 Is it a way to automatically generate the list of the jar files to avoid
 having to manually edit the file persistence.xml each time there is a new
 version of the jar files (e.g. using the maven-ejb-plugin)?


There's two ways you can do this. The first is to store the version in a
property in your pom and use it in your dependency and in the
persistence.xml and filter it when the EJB is built. Something like

properties
  foo.version1.0.0-SNAPSHOT/foo.version
/properties

.

depepdencies
   dependency
 groupIdcom.foo/groupId
 artifactIdactivity-bo/artifactId
 version${foo.version}/version
 typeejb/type
  /dependency
/dependencies


(Then put the ${foo.version} in your persistence.xml instead of the version
and configure the build to filter it)

The other way is to ask the ear plugin to change the name of the file when
it's packaged. See the documentation for more details
http://maven.apache.org/plugins/maven-ear-plugin/examples/customizing-a-module-filename.html

HTH,
Stéphane



-- 
Large Systems Suck: This rule is 100% transitive. If you build one, you
suck -- S.Yegge