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
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
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
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,
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
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
> 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
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
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?
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?
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
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
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
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
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
>
>
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
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
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
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
Is there any plugin which will check the consistency of the scm URLs, at
least for svn, with the actual status of the tree?
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
ok, this is my plugin config:
org.apache.maven.plugins
maven-dependency-plugin
2.1
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 ...
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
maven-dependency-plugin
2.1
xxx
prepare-package
copy-dependencies
com.xxx
target/lib
prepare-package
copy-dependencies
com.xxx.xxx
tar
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
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
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
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
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
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
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.
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
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
-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
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
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
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
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
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
55 matches
Mail list logo