I'm not sure I can completely answer your question (relatively new user
myself), but I can tell you what we did here (we also develop in Eclipse
and deploy via Tomcat).
I have this plugin [1] to launch Tomcat via Eclipse and debug the
processes that are running in it. I haven't gotten Maven to
I'm not 100% sure (still new at Maven myself) but I believe that copying
files to webapp/* takes place in a different phase. So what I think is
happening is that you've excluded the context.xml file from your main
resources phase, but it gets included in the WAR packaging secondary
resource phase,
Does anyone know if it's possible to have Surefire run some tests but
not others, deciding based on a setting from the command line? My
situation is that some tests are working with Tibco Rendezvous, and the
daemon isn't always available. It would be nice to include
-Dskip.rv.tests=true on the
Hi, all.
I'm using Maven to automatically run my suite of unit tests, which are
made with JUnit 4.4, and I'm having some trouble with it. It runs the
tests successfully, but when one fails, it doesn't give me the message
that I used in the test case. That is, JUnit's TestCase class has the
method
To my knowledge, if you run the tests and there are failures you can't build,
although you can get something similar by including
-Dmaven.test.skip=true
on the command line. That skips the tests entirely.
-Original Message-
From: Tonté Pouncil [mailto:[EMAIL PROTECTED]
Sent: Tuesday,
Hi all.
I'm builing my project with Maven 2, and am wondering if there's a
plug-in that can download a file from the web as a resource. Basically,
my project is a web front end for someone else's project, and we'll be
sharing an XSD file that describes the format of our communications.
However,
Hi, all.
I feel like this must be a really obvious question, but I haven't found
an example yet. When I started my project from an archetype (struts 2,
specifically) my /test/resources folder got a file called
test.properties. It seems pretty clear that this is where properties
that my test cases
?
It will be on the classpath, so load that property file as a resource
from the cp.
-Original Message-
From: Allen, Daniel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 08, 2008 3:45 PM
To: Maven Users List
Subject: Accessing test.properties from within a test case class?
Hi, all.
I feel
Ok, so I know it's sort of an asinine thing to do. However, currently
mvn deploy is returning an HTTP 405 error from our repository, and I
don't really have control over our company repository (new employee
doesn't get permissions for a while), so I can only do a manual copy to
the appropriate
Something is set up wrong with the repository so that it's basically
read-only at present, and any attempt to use deploy gives an HTTP 405
error. The people who maintain it are on a different continent, and also
pretty busy, so it can be hard to get hold of them, and when I do I'm
often told to
What do you mean? Change it how?
-Original Message-
From: Brian E. Fox [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2008 2:49 PM
To: Maven Users List
Subject: RE: [m2] manually deploying?
If you have file or scp access to the repo, why not just change the
distMgt url in the
deploying?
Change your pom to use file:/// or scp:///
-Original Message-
From: Allen, Daniel [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2008 4:27 PM
To: Maven Users List
Subject: RE: [m2] manually deploying?
What do you mean? Change it how?
-Original Message-
From: Brian
team?) But anyway, I would still really like to package the
Javadoc into the same JAR as the classes, if that's possible.
~DVA
-Original Message-
From: Allen, Daniel
Sent: Friday, March 14, 2008 4:10 PM
To: Maven Users List
Subject: [m2] Javadoc packaged with deployed JAR
Hi, all.
I've
Hi, all.
I've created a small package of utilities that I'm deploying to the
company's local repository for reuse. However, a problem with that reuse
is that when we do our programming in Eclipse, the mouse-over javadoc
display doesn't work, so it's hard to tell what functionality I'm
actually
Hi all.
I have a general sort of question about writing POMs. When figuring out
what dependencies I need, I frequently come up against the fact that the
web at large refers to package names when talking about class usage,
whereas Maven refers to the name of the jar file that it comes in. So
Olivier:
I'm don't think those are quite what I'm talking about: I put
org.springframework.ejb into the search fields, and didn't get any
results (what I'm hoping this would return would be spring-remote.jar,
which is where that package is). Am I using it wrong?
Brian:
Do you have any idea
If you're talking about just properties and not any code or classes,
then perhaps you could just use variables and filtering in the
configuration files, and then have a profile that's used in both builds?
I would suggest perhaps a sort of token parent project whose POM doesn't
really contain
I don't actually know if dependency POMs look at their profiles'
activeByDefault elements or not. I guess not, from what you're
describing. Have you tried invoking the profile explicitly when you run
Maven? (e.g. mvn -P profileName deploy) The dependency POM's profiles
may still be available, even
Hi, all.
I'm using the war:exploded goal, it was working before, and then I
switched projects for a couple weeks, came back, and found that the same
POM results in this exception now. Does anyone know if there was a
non-backwards compatible update to the WAR plugin or to Maven itself
that might
Still getting the same result, but adding the -U didn't update the WAR plugin
(the only thing in the output that was listed as downloaded was a new version
of the Surefire plugin). I know using --version gives the Maven version, but
how can I check what version of a particular plugin I'm using?
It's building again--thanks, Olivier!
I'll add a version lock to the plugin delcaration too; that's a good
idea.
~Dan Allen
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Olivier Lamy
Sent: Wednesday, February 27, 2008 3:43 PM
To: Maven Users List
The idea is that some settings are not specific to a project
(settings.xml is just a file on your computer, not part of the build).
For example, one thing I have in settings.xml is settings for my local
web proxy. That doesn't make any sense to attach to your project, since
it's probably not
creating a settings.xml file.
I think it's a chicken or egg thing. In writing the book they talk about
things in chapter 1 than get covered for first time in chapter 2... %-|
Cheers for reply, Jeremy
Allen, Daniel wrote:
Not saying for sure that this is what's going on, but in my experience
Not saying for sure that this is what's going on, but in my experience
it seems like XP only makes that complaint if *you* try to name a folder
that, while automated processes can get away with it. That is, the check
is only part of the UI, not an actual file system rule. I'm developing
on XP, and
Hi.
I've been working with Maven and Struts2 to put together a web
application, and I noticed something odd. With the POM below, I end up
with two copes of tiles-def.xml and struts.xml. One is in
WEB-INF/classes where it needs to be, but the other is at the level
above, in WEB-INF. Have I done
Apologies for the mangled XML formatting... MS Outlook = :(
-Original Message-
From: Allen, Daniel
Sent: Tuesday, February 12, 2008 1:31 PM
To: Maven Users List
Subject: Includes override excludes? [war plugin]
Hi.
I've been working with Maven and Struts2 to put together a web
No idea from just what you've provided here. Perhaps you could upload
your POMs to the web and so we could take a look?
-Original Message-
From: Saloucious [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 12, 2008 11:02 AM
To: users@maven.apache.org
Subject: Re: Multi-Modules and
and we can all benefit.
Wayne
On 2/5/08, Allen, Daniel [EMAIL PROTECTED] wrote:
Hi all,
I've been using the war plugin to package up a web app. However, to
save
time, it would be great if the result had a consistent name so that we
could copy it directly into the Tomcat/webapps directory and have
be that an example
should be created for future people looking for this specific use
case, to make it more obvious:
http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html
Wayne
On 2/6/08, Allen, Daniel [EMAIL PROTECTED] wrote:
To answer my own question (for the archives and those searching them
control all request that maven will
make. For the default repos, have a look at conf/settings.xml in your
maven install directory. These are the master settings. You do know
about mavenproxy, archiva and the like?
Greetings,
Stefan
Allen, Daniel wrote:
Hi, all.
The systems security people
Hi all,
I've been using the war plugin to package up a web app. However, to save
time, it would be great if the result had a consistent name so that we
could copy it directly into the Tomcat/webapps directory and have it
startup with the proper context path.
In the call to the war plugin, I
On 2/1/08, Allen, Daniel [EMAIL PROTECTED] wrote:
I'm building a web application (packaging WAR), and I need to run the
web.xml file through a filter to set certain configutation values. I
tried adding it to a resource tag, but that causes Maven to make a
copy of it and put it in WEB-INF/classes
Nevermind about the overlays; I found a docs page on that.
-Original Message-
From: Allen, Daniel
Sent: Monday, February 04, 2008 11:08 AM
To: Maven Users List
Subject: RE: [m2] Filtering web.xml?
Wayne:
I thought having packagingwar/packaging in your pom.xml was a
shortcut to calling
to seriously contribute to the documents, but I can manage
small chores like cross-referencing. ;)
Anyway, thanks for the link, Wayne.
~Dan Allen
-Original Message-
From: Allen, Daniel
Sent: Monday, February 04, 2008 11:58 AM
To: Maven Users List
Subject: RE: [m2] Filtering web.xml
When I was doing profiles for the first time, I noticed that anything I
put in profiles.xml was active by default, and that my dev profile
overrode my live release profile. This may be your problem. Try adding:
activation
activeByDefaultfalse/activeByDefault
/activation
to the dev profile that
profiles
Currently i am not using any profile(tag) for sub modules, I am just
mentioning directory tag inside build tag. Do i need to have
separate profile to do that?
regards,
Amit
On Feb 4, 2008 1:03 PM, Allen, Daniel [EMAIL PROTECTED] wrote:
When I was doing profiles for the first time, I
There's also a sample settings.xml file in the directory that Maven
installs to, under the /conf subdirectory. It contains pretty much
everything you might need to put into your settings, in commented-out
generic form.
~Dan Allen
-Original Message-
From: amit kumar [mailto:[EMAIL
Hi, all.
The systems security people are being a bit of a pain in the ass about
Maven, as it calls out to the internet at large. So, I was wondering
where in the installation I can find a full listing of the repository
mirrors that Maven knows about and checks by default. Also, if there is
a way
like mvn -P int
Amit
On Feb 4, 2008 1:47 PM, Allen, Daniel [EMAIL PROTECTED] wrote:
So... you're saying that your profile (profile1, according to your
example command-line call below) is defined in/for the parent POM?
I think I'm not 100% understanding your setup. Could you give me a
more
profile
idint/id
build
directoryC:\Diff/directory
/build
/profile
/profiles
something like mvn -P int
Amit
On Feb 4, 2008 1:47 PM, Allen, Daniel [EMAIL PROTECTED] wrote:
So... you're saying that your profile (profile1, according to your
example command-line
/includes
/resource
/webResources
--
Olivier
2008/2/4, Allen, Daniel [EMAIL PROTECTED]:
Hi, all.
Thanks to everyone who helped me out with finding and configuring the
war plugin. I believe that I have the settings correct to do what I
need
now.
However, when I try and run mvn -P dev clean package
Hi, all.
Thanks to everyone who helped me out with finding and configuring the
war plugin. I believe that I have the settings correct to do what I need
now.
However, when I try and run mvn -P dev clean package, I get a null
pointer exception. The War plugin source is available only by
Hi.
I'm using Maven2, and without telling me, the company I'm at recently
put up a proxy between the office and the web. So, when I tried to use
Maven with a new plugin, it attempted to get that from the central
repository, failed because I hadn't set up the proxy settings, and then
blacklisted
My .m2 directory is actually totally empty except for the settings.xml
file (which I just now made, and which contains nothing except the
aforementioned proxy info), so maybe the blacklist isn't kept between
runs.
Anyway, I had been trying mvn dependency:resolve, which was crashing
out. I'm
I'm building a web application (packaging WAR), and I need to run the
web.xml file through a filter to set certain configutation values. I
tried adding it to a resource tag, but that causes Maven to make a
copy of it and put it in WEB-INF/classes subdirectory with all of the
rest of the resources.
It might be because you're using Maven 1. I get the impression that most
of the people on the User List have moved on to Maven 2. There is some
documentation around on WSDL and Axis in Maven 2. I believe the example
system in Better Builds With Maven (free PDF book) uses those, so if
you wanted to
(By the way, when I say it might be because, I mean maybe no one's
responding because, not that using Maven 1 might be your problem)
-Original Message-
From: Allen, Daniel
Sent: Monday, January 28, 2008 4:22 PM
To: Maven Users List
Subject: RE: Maven java2wsdl...
It might be because
I'm new to Maven, and have a couple questions that I've not been able to
answer from the documentation on the site so far, so I thought I'd put
them out here.
-What I'm trying to do
Basically, I have the Maven 1 maven.xml file copied below (which, as you
can see, actually does a lot of its work
Is there any possibility you could rename the development version to
something like beanRefFactory-dev.xml and put it in the same place as
the production version? If so, then you could refer to one or the other
by a token, and define it in properties in the profiles. Or you could
put the path into
tokens in Maven 2 loading
properties from files
Hi Dan,
This is a pretty good list of the 'tokens' or properties that are
available in Maven2:
http://docs.codehaus.org/display/MAVENUSER/MavenPropertiesGuide
Matt
-Original Message-
From: Allen, Daniel [mailto:[EMAIL PROTECTED]
Sent: 24
Do you have the required files on hand? You could set up your own local
repository.
-Original Message-
From: Arthur Rodrigues Stilben [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 24, 2008 2:00 PM
To: Maven Users List
Subject: Error ear
Hi,
I have a problem in my ear project. I
51 matches
Mail list logo