Hi
I have a set of Spring beans that I'd like to wrap them with maven
plugin's mojo. Any suggestion?
Thanks
-Dan
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail:
Hi all
We're trying to set up a set of maven projects which can be used with both
spring 2.5.x and spring 3.0.x. Mostly our applications are currently using
2.5.6 atm, but we'd like to gradually move them over to 3.0.x as time goes on.
Rather than have our libraries and apps hard-code the
Dunstan, Tom (SACE Board) wrote:
Hi all
We're trying to set up a set of maven projects which can be used with both
spring 2.5.x and spring 3.0.x. Mostly our applications are currently using
2.5.6 atm, but we'd like to gradually move them over to 3.0.x as time goes
on.
Rather than have
Profiles.xml is deprecated and IIRC not supported in M3.
D'oh. If there were a way to do it inside the pom that would definitely be
better (it really isn't an external setting) but I don't see any way to do
that...
Any suggestions gratefully accepted!
Active the profile directly in the
This type of solution is very bad! Please remember that the poms serve as
metadata for other Maven projects and any alteration of dependencies
depending on environment will break that.
You're going about this the wrong way, IMO. Your Maven projects should
declare its dependencies with GAVs. So if
This is a really bad plan.
Your dependencies should not depend on what profile is active.
IMHO it was a mistake to allow specification of dependencies from profiles.
The best solution is to have either:
1. A project for spring 3 and a project for spring 2.5 that defines the
You're going about this the wrong way, IMO. Your Maven
projects should declare its dependencies with GAVs. So if you
have a project (e.g. projectA) using Spring 2.5, that should
be declared in that Maven project. However, if you have some
other project (projectB) depending on projectA, it
The best solution is to have either:
1. A project for spring 3 and a project for spring 2.5 that
defines the dependencyManagement for each of the spring
versions and then use dependency scope import to pull in the
spring 3 or the spring 2.5 dependency version info (assumes
that the
The import solution that Stephen suggests is the way to go. Kind of a
pre-mixin support...
I use that a lot for defining different sets of depMgmt. Very useful when
you work with app servers of different versions to make it possible to work
and test against the exact same version of dependencies
Hi all,
i got a maven parent project with 2 child modules
1. The webapp project (webapp)
2. The maven module for integration test (test)
both modules runs without problem individually. but as i want to automate
them together. i would like to configure the test project pom.xml such that
in the
You might get somewhere using dependency:upack-dependencies to unpack the
webapp into your test module (or copy-dependencies and then jetty:run-war)
On 24 June 2010 10:26, ykyuen yingkity...@gmail.com wrote:
Hi all,
i got a maven parent project with 2 child modules
1. The webapp project
Thanks for your quick reply.
actually my case is a little bit complicated. the webapp project is not a
complete war project. it depends on some other maven modules under the same
parent pom.
so i cannot simply use the war since it is only part of the webapp.
Regards,
Kit
--
View this message
Dunstan, Tom (SACE Board) wrote:
Profiles.xml is deprecated and IIRC not supported in M3.
D'oh. If there were a way to do it inside the pom that would definitely be
better (it really isn't an external setting) but I don't see any way to do
that...
Any suggestions gratefully accepted!
spring-parent defines all dependencies
spring-2.5 pulls in spring-parent as parent (and re-declares only those
dependencies that changed for 2.5)
spring-3.0 pulls in spring-parent as parent (and re-declares only those
dependencies that changed for 3.0)
the 'shared dependencies' for spring
On 24/06/2010 4:39 AM, Anders Hammar wrote:
The import solution that Stephen suggests is the way to go. Kind of a
pre-mixin support...
I use that a lot for defining different sets of depMgmt. Very useful when
you work with app servers of different versions to make it possible to work
and test
Is there an easy way to run just the .apt -- .html portion of mvn site without
having to create a full Doxia book definition, etc. ??
I'd like a way to have quick turnaround on the documentation I'm writing while
I'm writing it without doing a full mvn site build.
Thanks,
Tom Halliley
mvn site:run ?
On 6/24/10 10:31 AM, Halliley, Tom wrote:
Is there an easy way to run just the .apt -- .html portion of mvn site
without having to create a full Doxia book definition, etc. ??
I'd like a way to have quick turnaround on the documentation I'm writing
while I'm writing it
Hello everyone,
I am pretty new to maven and i am trying to configure a spring app with
hibernate. Altough i have read a lot, i am not sure if my pom.xml is correct
or maybe it could be improved in anyway.
Can someone take a look at it and give me some advices?
Thanks a lot
Nice!
Actually, it does re-compile, etc., but in the end, the quick turnaround is
there.
Thanks,
Tom
On 06/24/2010 10:34 AM, Justin Edelson wrote:
mvn site:run ?
On 6/24/10 10:31 AM, Halliley, Tom wrote:
Is there an easy way to run just
I am pretty new to maven and i am trying to configure a spring app with
hibernate. Altough i have read a lot, i am not sure if my pom.xml is correct
or maybe it could be improved in anyway.
Are you having specific problems or does everything work OK? This list
works better as a problem-solver
Wayne Fay wrote:
I am pretty new to maven and i am trying to configure a spring app with
hibernate. Altough i have read a lot, i am not sure if my pom.xml is
correct
or maybe it could be improved in anyway.
Are you having specific problems or does everything work OK? This list
works
On 24/06/2010 12:20 PM, vector wrote:
Wayne Fay wrote:
I am pretty new to maven and i am trying to configure a spring app with
hibernate. Altough i have read a lot, i am not sure if my pom.xml is
correct
or maybe it could be improved in anyway.
Are you having specific
I'm trying to put links in my apt documents that link to javadoc:
{{{../apidocs/groovyx/net/http/ParserRegistry.html#parseText(org.apache.http.HttpResponse)}ParserRegistry}}
I've got the relative path (../) in front, so it should be picked up as a
local (not internal link). Apt still doesn't
Hello,
I've converted projects from M1 to M2 and now have just few decisions to
make.
I use parent pom.xml to hold all things that are shared like version,
groupId etc. Parent pom has modules and expects the module projects to be as
subdirectories of the parent pom location.
Every module has
On 24/06/2010 2:02 PM, D D wrote:
Hello,
I've converted projects from M1 to M2 and now have just few decisions to
make.
I use parent pom.xml to hold all things that are shared like version,
groupId etc. Parent pom has modules and expects the module projects to be as
subdirectories of the
all questions are fine.
1) Nexus installation is out of questions - I can't share specifics but
Stone Age approach is the best I can do at the moment.
2) No IDE involved - we use RAD (IBM's take on Eclipse) but it's on Windows.
A Unix box does all the builds through maven/shell scripts. CVS is
Thanks Wayne, i am new to the list and I apologize if this is not the right
way to use it. Things work ok, i am just not sure if i am skipping anything
important or having redundant dependencies and so on.
But how would you expect any of us to know what dependencies in your
project might be
I am open to all suggestions and best practices guidelines.
1) Nexus installation is out of questions - I can't share specifics but
...
3) I can't change existing projects; Besides IDE compiles the projects
Uhh these statements are totally contradictory, you realize that, right?
As for
I ask this because 10 years later when someone is forced to upgrade to M3 or
M4 (like I was recently) I would like them to have an M2 install that is not
total hack job. It's this pesky mentality of mine that strives to make the
best of whatever I work with. ;-)
And change in large enterprise
Hi,
How can Maven's package of war be speed up?
Currently, it is extremely slow - around 7 minutes or more.
I even set the following options
-DMAVEN_OPTS=-Xms64m –Xmx512m
(higher Xmx to see if it will increase speed - but, it does not)
Other options being set and command (invoked through
Please answer this: Are you allowed to change the structure of the projects
(i.e. refactor) or not?
If not, you will most likely be fighting Maven and you will run into issues
sooner or later. To be harsh, you would be on your own (this would be that
hack job you're talking about).
If you can
this has to do with what's in your WAR, perhaps analyze what dependencies
its using, and where they are coming from
Maven is just like any other program; you can throw hardware at it to speed
it up
On Thu, Jun 24, 2010 at 4:41 PM, Rajasekar Karthik karthik...@gmail.comwrote:
Hi,
How can
I guess you'll have to be give more details about what you want to do.
I don't understand: you want to create a jar containing spring beans? What
do you mean by spring beans (xml configuration, annotation, other...). Are
you writing a mojo where you want to use some part of spring, or even use
How can Maven's package of war be speed up?
Currently, it is extremely slow - around 7 minutes or more.
What makes you think throwing memory at what is generally a cpu-bound
or io-bound process any faster??
Wayne
-
To
It may also help to speed things up to install a local NEXUS repository
and use it as a mirror, if the slowness is due to accessing things over
the internet.
-Marshall
On 6/24/2010 4:43 PM, Shan Syed wrote:
this has to do with what's in your WAR, perhaps analyze what dependencies
its using,
basically i have all my spring beans wiring up thru an small initial
xml config file, the rest are thru annotation ( spring 3.0.x )
so if I want to wrap Spring Service with maven mojo, i guess i need to
start the the spring container from some where. Where is the right
place in the plugin?
-D
If you start the Spring container manually, it will return a context that you
can query for beans. Within that started context, the beans will have
obviously been wired according to your configuration.
There's no limitation on where you create the context, but to get beans from
the context,
Thanks to everyone who answered my questions! Import scope seems to be doing
exactly what I want.
Cheers
Tom
Tom Dunstan
Senior Analyst/Programmer
SACE Board of South Australia
P +61 8 8372 7543
-Original Message-
From: anders.g.ham...@gmail.com
Hi,
We have the war plugin configured in the POM to exclude a few select
files from the output war. We have a number of different profiles
defined, in this case only one profile should include the specified
files. I am trying to set the warSourceExcludes in the POM to the common
value
Is there a place where I can create spring context to be shared among
mojo's execution? Sound like I need to create a wrapper singleton to
create the context?
-D
On Thu, Jun 24, 2010 at 4:38 PM, Brian Topping topp...@codehaus.org wrote:
If you start the Spring container manually, it will return
40 matches
Mail list logo