RE: Dependency Scope -- Provided

2010-04-29 Thread leelaram.tenneti
Ok thanks ... I misunderstood the compile scope. -Original Message- From: Kalpak Gadre [mailto:kalpa...@gmail.com] Sent: Friday, April 30, 2010 12:00 PM To: Maven Users List Subject: Re: Dependency Scope -- Provided What do you think should happen then? scope "provided" means the depende

Re: Dependency Scope -- Provided

2010-04-29 Thread Kalpak Gadre
What do you think should happen then? scope "provided" means the dependency will be provided in deployment environment say like provided by J2EE container. Read this: http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html Thanks, Kalpak Hi, In my applicat

Re: Dependency Scope -- Provided

2010-04-29 Thread Kalpak Gadre
What do you think should happen then? scope "provided" means the dependency will be provided in deployment environment say like J2EE container. Read this: http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html Thanks, Kalpak Hi, In my application, if I gi

Dependency Scope -- Provided

2010-04-29 Thread leelaram.tenneti
Hi, In my application, if I give scope as compile for a dependency, the jar / dependency is a part of war file generated and If I give scope as provided , then it is not a part of war file. My question is if the scope is compile, why will be the dependencies part of war file generated ? Regards,

RE: Configure jetty port in profiles

2010-04-29 Thread subir.sasikumar
Use properties in settings. Subir -Original Message- From: darniz [mailto:rnizamud...@edmunds.com] Sent: Thursday, April 29, 2010 10:57 PM To: users@maven.apache.org Subject: Re: Configure jetty port in profiles Any update guys. i know if i am in a hurry darniz wrote: > > Hi All > I fi

Re: Configure jetty port in profiles

2010-04-29 Thread Kalpak Gadre
I would recommend that you define properties for port and credentials like, 443 c:/xxx-ssl.keystore xxx xxx and in your configuration refer to them like, ${https.port} 6 ${keystore} ${password}/password> ${keyPassword} If you only need to change values for these on your machine, then I

Re: Embedding Maven. I'm a newbie, please point me in the right direction....

2010-04-29 Thread Wayne Fay
> Google only shows MavenEmbedder, a class the was deleted as of > maven-embedder-3.0-alpha-3. > I can't find any howtos/guides for this. > JavaDoc is... well... not so informative when it comes to use cases. If you search this list for "embedder" and espcially look at Jason van Zyl's comments, yo

Re: Apache Snapshots Index broken?

2010-04-29 Thread Brian Fox
That would be me. I'll take a look at the index over there. On Thu, Apr 29, 2010 at 2:32 PM, Andreas Kollegger wrote: > Thanks, I will try the nexus list to see if there is a work-around. The > download index > option is initially enabled. Since the remote index is broken, I tried > disabling t

How do I get rid of the compile phase in site:site

2010-04-29 Thread Benson Margulies
I run mvn site:site, and, the next thing I know, things like checkstyle and one of my own plugins are running. my plugin has an @phase of compile declared in the plugin descriptor. I do have a defaultGoal of compile specified, but that shouldn't matter for mvn site:site, should it?

Cannot create collection; intermediate collection does not exist error

2010-04-29 Thread Pepe Perez
Hello, When doing mvn site:deploy I have following msg in the logs No such file or directory: Cannot create collection; intermediate collection does not exist Is there any way to direct mvn to create the intermediate collections in the repo if they don't exist?

Re: Apache Snapshots Index broken?

2010-04-29 Thread Andreas Kollegger
Thanks, I will try the nexus list to see if there is a work-around. The download index option is initially enabled. Since the remote index is broken, I tried disabling that to see if a local index would be built up instead. No luck. But, it's an admin problem for the repository.apache.org maint

Re: Configure jetty port in profiles

2010-04-29 Thread Nick Klauer
Profile activation is fine by environment, but if you're using maven, just use the explicit profile activation -P profile-name. mvn jetty:run -P build-profile-id Towards the bottom of the page (way past the build activation portion of profiles) is a section devoted to what you can put in a profil

Re: Apache Snapshots Index broken?

2010-04-29 Thread Anders Hammar
You should post this question to the nexus users list. /Anders PS. Have you enabled download index for this repo in Nexus? On Thu, Apr 29, 2010 at 19:45, Andreas Kollegger wrote: > Hi, > > I decided to set up a local Nexus server on my to share artifacts on my > local network. Setting up proxi

Apache Snapshots Index broken?

2010-04-29 Thread Andreas Kollegger
Hi, I decided to set up a local Nexus server on my to share artifacts on my local network. Setting up proxies was very easy, but I can't seem to get snapshots from the Apache Snapshot repository at https://repository.apache.org/content/repositories/snapshots . Browsing directly I can see the e

Re: Configure jetty port in profiles

2010-04-29 Thread darniz
Any update guys. i know if i am in a hurry darniz wrote: > > Hi All > I figured out how to start jetty on default port on 80 with http and > https. > > org.mortbay.jetty > maven-jetty-plugin > 6.1.16 > >

doubt in maven-deploy plugin : deploy-file goal

2010-04-29 Thread srinivasa raghavan
Hi, have a doubt in maven-deploy plugin 2.5 version. For deploy-file goal , they make a sanity check to see whether the file to be deployed is present in the local repository and if so they fail the deploy goal. I believe 2.4 version didn't do that. So why is it illegal to deploy artifact from the

Profile activeByDefault behavior

2010-04-29 Thread David Hoffer
As I understand it, activeByDefault is not inherited by child poms so it must be repeated in all poms (that care about this profile behavior).  However in the past the properties section of this profile was inherited by child poms.  However for some reason that isn't working anymore, I find I have

dependency:unpack handling of overwrite for individual items in the archive

2010-04-29 Thread Marshall Schor
The documentation for dependency:unpack [1] says that the default is to overwrite (only) if newer. But it seems to apply to the entire archive being unpacked, meaning that the check is on whether the archive file itself is "newer" or not, using what the plugin calls "marker files", and perhaps not

Re: Release Plugin and local working copy changes

2010-04-29 Thread Tim O'Brien
I just tested this with mvn 2.2.1 + 2.0-beta-9. It refused to run release:prepare with the following error message: [INFO] Cannot prepare the release because you have local modifications : [pom.xml:modified] What version of the release plugin are you using? On Wed, Apr 28, 2010 at 8:35 PM, M

Check urls?

2010-04-29 Thread Benson Margulies
Is there any plugin which will check the consistency of the scm URLs, at least for svn, with the actual status of the tree?

Re: configuring dependencies by JRE version

2010-04-29 Thread Nina Jeliazkova
Thanks for the quick reply! subir.sasiku...@wipro.com wrote: > How do you invoke profiles and which version of maven you use? > > >mvn -v Apache Maven 2.2.0 (r788681; 2009-06-26 16:04:01+0300) Java version: 1.5.0_17 Java home: C:\Program Files\Java\jdk1.5.0_17\jre Default locale: en_US, platfor

Re: configuring dependencies by JRE version

2010-04-29 Thread Nina Jeliazkova
subir.sasiku...@wipro.com wrote: > Ah you have set a activation property. Which is not what you want. > Hm, I thought this is the way to switch between JREs - which would be the correct way? Thanks, Nina > You may need this. For example: > > > JRE5 > > 1.

Re: configuring dependencies by JRE version

2010-04-29 Thread Nina Jeliazkova
Yes, it works - many thanks - this is the fastest help I ever got by writing to a mailing list ! Best regards, Nina subir.sasiku...@wipro.com wrote: > Activation property is necessary to switch between JREs. > But on activation of a JRE you want to set a property, and you can see > how that is d

RE: configuring dependencies by JRE version

2010-04-29 Thread subir.sasikumar
OK, goodyou may also want to see [1] since you are using maven 2.2.x. Older discussions [2] about JDK activation. Subir [1] http://jira.codehaus.org/browse/MNG-4517 and http://jira.codehaus.org/browse/MNG-4512 [2] http://www.mail-archive.com/users@maven.apache.org/msg77303.html

RE: configuring dependencies by JRE version

2010-04-29 Thread subir.sasikumar
Activation property is necessary to switch between JREs. But on activation of a JRE you want to set a property, and you can see how that is done in the example I wrote below. Subir -Original Message- From: Nina Jeliazkova [mailto:n...@acad.bg] Sent: Thursday, April 29, 2010 5:38 PM To: S

Re: configuring dependencies by JRE version

2010-04-29 Thread Jörg Schaible
Nina Jeliazkova wrote: > Dear All, > > I would like to ask if it is possible to define dependencies in Maven2 > POM file to reflect the JRE version. For example, I would like to use > commons-dbcp-1.3 in JRE 1.5 and commons-dbcp-1.4 in JRE 1.6. > > Defining the corresponding profiles doesn't wo

RE: configuring dependencies by JRE version

2010-04-29 Thread subir.sasikumar
Ah you have set a activation property. Which is not what you want. You may need this. For example: JRE5 1.5 1.3 Subir -Original Message- From: Nina Jeliazkova [mailto:n...@acad.bg] Sent: Thursd

RE: configuring dependencies by JRE version

2010-04-29 Thread subir.sasikumar
How do you invoke profiles and which version of maven you use? Subir -Original Message- From: Nina Jeliazkova [mailto:n...@acad.bg] Sent: Thursday, April 29, 2010 5:22 PM To: users@maven.apache.org Subject: configuring dependencies by JRE version Dear All, I would like to ask if it is p

configuring dependencies by JRE version

2010-04-29 Thread Nina Jeliazkova
Dear All, I would like to ask if it is possible to define dependencies in Maven2 POM file to reflect the JRE version. For example, I would like to use commons-dbcp-1.3 in JRE 1.5 and commons-dbcp-1.4 in JRE 1.6. Defining the corresponding profiles doesn't work - I am most probably missing someth

[maven-release-plugin] using definition in parent pom for all project

2010-04-29 Thread nodje
Hi, we've been using a definition of located in our company parent pom: scm:svn:${svn.root}/trunk/${artifactId} scm:svn:${svn.root}/trunk/${artifactId} ${svn.root}/trunk/${artifactId} This used to work for all projects, even though we'd to manually re-establish this after each r

Re: Release plugin and dependencyManagement for modules - changes in last version?

2010-04-29 Thread Kumar Ampani
Did you try using ${project.version} in the dependency management section ? On 4/29/10, Kaiser, Nils wrote: > Hello, > > In our multi-module project we included the module dependencies in the > dependencyManagement of the parent POM to be able to leave out versions in > the module POMs. Here a s

Re: Copy Dependencies into target/lib

2010-04-29 Thread grm
thank you very much, you're my hero. it works great :) Kalpak Gadre wrote: > > I tried your configuration and noted one thing, > > It did not work for me when the plugin definition is done under > section in > > but it does work if the plugin definition is done in section > in > > I am

Re: Copy Dependencies into target/lib

2010-04-29 Thread Kalpak Gadre
I tried your configuration and noted one thing, It did not work for me when the plugin definition is done under section in but it does work if the plugin definition is done in section in I am using Maven 2.2.1 Could you try defining your plugin under ? Here is the my config org.ap

Re: Copy Dependencies into target/lib

2010-04-29 Thread grm
but this can't be really the problem, because my maven version allready knows the command prepare-package, my version is 2.2.1 after changing the phase to package und running mvn package - gues what, still nothing happens I'm gettint more and more frustrated because of this bug / error / wrong co

Re: Copy Dependencies into target/lib

2010-04-29 Thread Jörg Schaible
Hi Nathan, nsowatsk wrote: > The plugin will be called in the prepare-package phase. Beware, this phase is quite new (don't know when it was introduced, it might have been M2.2 or M3 actually). > There is no asdf > phase, so that won't work. In older versions it is therefore ignored like "asd

Embedding Maven. I'm a newbie, please point me in the right direction....

2010-04-29 Thread Lars Borg
What I'd like to do is to run the Maven process within my own process. Simply, embedding Maven. But how do I achieve it? Google only shows MavenEmbedder, a class the was deleted as of maven-embedder-3.0-alpha-3. I can't find any howtos/guides for this. JavaDoc is... well... not so informative when

Re: Copy Dependencies into target/lib

2010-04-29 Thread grm
ok, this is my plugin config: org.apache.maven.plugins maven-dependency-plugin 2.1

Re: Copy Dependencies into target/lib

2010-04-29 Thread nsowatsk
The plugin will be called in the prepare-package phase. There is no asdf phase, so that won't work. Try without the includeGroupIds and see what happens. Also run Maven with debug turned on. Regards Nathan On 29/04/2010 11:54, "grm" wrote: > > I tried it, but didn't had really a luck ...

Re: Copy Dependencies into target/lib

2010-04-29 Thread grm
I tried it, but didn't had really a luck ... for a test, I set the value to asdf, but no error has been thrown, is it possible, that the dependency-plugin is never called??? nsowatsk wrote: > > > > > maven-dependency-plugin > 2.1 > > > xxx > prepare

Re: Copy Dependencies into target/lib

2010-04-29 Thread nsowatsk
maven-dependency-plugin 2.1 xxx prepare-package copy-dependencies com.xxx target/lib prepare-package copy-dependencies com.xxx.xxx tar

RE: Copy Dependencies into target/lib

2010-04-29 Thread grm
I also tried this many times, but it doesn't copies the dependencies, I think, I allready tried every possible configuration you can find on the internet, so my question ist, could the dependencies be defined wrong??? but i can compile the program, so i think, if the dependencies were wrong define

Re: [ANN] Apache Maven 3.0-beta-1 Released

2010-04-29 Thread Arnaud Héritier
Yes i began to study this issue I discovered two days ago The issue was introduced in 2.4 and is in all 2.4.x releases. I think it is enough critical to try to fix it quickly (And we can loose many time before finding it and applying the workaround - myself 30 min) I'm studying plexus-interpolator

Re: Using Ant script in Maven

2010-04-29 Thread Antonio Petrelli
2010/4/29 Anders Hammar : > Please explain exactly what you want to do (what do the ant tasks do), so we > can help you do that in a correct Maven way. Very likely, there are maven > plugins that do this so that you can remove the dependency to ant. Moreover, since you are a newbie, I suggest to r

Re: Using Ant script in Maven

2010-04-29 Thread Anders Hammar
Please explain exactly what you want to do (what do the ant tasks do), so we can help you do that in a correct Maven way. Very likely, there are maven plugins that do this so that you can remove the dependency to ant. /Anders On Thu, Apr 29, 2010 at 10:47, Partha Maitra wrote: > Hi Kalpak, > Tha

Re: Using Ant script in Maven

2010-04-29 Thread Antonio Petrelli
2010/4/29 Partha Maitra : > Thanks for your reply, actually I would want to perform some additional ant > tasks, but instead of calling an additional goal as "antrun:run" I would want > to use normal "mvn clean install". When I call this "mvn install" I would > expect to run the ant task. Can yo

RE: Using Ant script in Maven

2010-04-29 Thread Partha Maitra
Hi Kalpak, Thanks for your reply, actually I would want to perform some additional ant tasks, but instead of calling an additional goal as "antrun:run" I would want to use normal "mvn clean install". When I call this "mvn install" I would expect to run the ant task. Can you please help? Can you

Re: Using Ant script in Maven

2010-04-29 Thread Kalpak Gadre
Hi Partha, If you just need to copy the properties file so that it gets embedded in the jar file, Maven conventionally uses src/main/resources/ directory for this. So you could simply place your properties file under src/main/resources and it will automatically get embedded in the jar file.

Re: Using Ant script in Maven

2010-04-29 Thread Antonio Petrelli
2010/4/29 Partha Maitra : > Thanks for your quick reply, but in order to run this I would have to use the > goal as "antrun:run" if I am not woring(as I am very new to Maven) , but I > need to run the ant command that will just copy 1property file from one > location to the source directory of t

RE: Using Ant script in Maven

2010-04-29 Thread Partha Maitra
Hi Antonio, Thanks for your quick reply, but in order to run this I would have to use the goal as "antrun:run" if I am not woring(as I am very new to Maven) , but I need to run the ant command that will just copy 1property file from one location to the source directory of the project when I gi

RE: Using Ant script in Maven

2010-04-29 Thread Partha Maitra
-Original Message- From: Antonio Petrelli [mailto:antonio.petre...@gmail.com] Sent: Thursday, April 29, 2010 1:53 PM To: Maven Users List Subject: Re: Using Ant script in Maven 2010/4/29 Partha Maitra : > I am very new to Maven, and would like to know how to add an "ant" task as a > per

Re: Using Ant script in Maven

2010-04-29 Thread Antonio Petrelli
2010/4/29 Partha Maitra : > I am very new to Maven, and would like to know how to add an "ant" task as a > pert of my "install" goal, i.e. if I use mvn install it should first run that > ant task. AntRun plugin: http://maven.apache.org/plugins/maven-antrun-plugin/ However I think you should che

Using Ant script in Maven

2010-04-29 Thread Partha Maitra
Hi All, I am very new to Maven, and would like to know how to add an "ant" task as a pert of my "install" goal, i.e. if I use mvn install it should first run that ant task. Can you please help me in this regard? Thanks & Regards, Partha Maitra. SASKEN BUSINESS

Release plugin and dependencyManagement for modules - changes in last version?

2010-04-29 Thread Kaiser, Nils
Hello, In our multi-module project we included the module dependencies in the dependencyManagement of the parent POM to be able to leave out versions in the module POMs. Here a snippet extracted from the master POM: ... notif-platform pom 1.3.1-SN

Re: [ANN] Apache Maven 3.0-beta-1 Released

2010-04-29 Thread Frederic Camblor
For you information, Because of http://jira.codehaus.org/browse/MRESOURCES-104, there will be regressions in 3.0-beta1 on filtering of ressources files containing a "@" inside it (like urls or datasources) if you relies on the super pom definition of the maven-resources-plugin (aligned from 2.3 to

RE: Copy Dependencies into target/lib

2010-04-29 Thread subir.sasikumar
Try this configuration ${project.build.directory}/lib Subir -Original Message- From: Peter Grman [mailto:peter.gr...@grman.at] Sent: Thursday, April 29, 2010 6:26 AM To: users@maven.apache.org Subject: Copy Dependencies into target/lib Hallo, I'm allready trying for about 2 hours to