There's currently a discussion on the dev list [1] about releasing the
next version of the war plugin. I posted there yesterday that this bug
should be fixed before a release, you can express your opinion there as
well. Additionally, you can vote on the bug report in jira, to make it
more visib
As Wendy told you on the Dev list, Maven2 does not use files named
build.xml but rather files named pom.xml.
Thus, it seems like you do not have a Maven project at all, but rather
some Ant build script (I guess?). Where did this build.xml file come
from -- you should probably ask that person how y
I was referring to profiles in your POM, not in the settings - sorry
for the misunderstanding.
- Brett
2008/5/17 Eric White <[EMAIL PROTECTED]>:
>
> Thanks for the response!
> I think profiles might help. But this would mean defining the latest
> version numbers in my settings.xml. Which means
I have downloaded apache-maven-2.0.9-bin.tar.gz and
extracted to dir: C:\apache-maven-2.0.9
I have added C:\apache-maven-2.0.9 to the path. When I
run "mvn --version" at cmd prompt, I got the
following results:
C:\Work\GettingStartedWithHibernate3>mvn --version
Maven version: 2.0.9
Java version:
Hi,
We switched from Maven 2.0.7 to Maven 2.0.9 and started observing the
following warnings for our projects that we could not understand:
[WARNING] Attempting to build MavenProject instance for Artifact
(com.tvworks.tva.common:tva-common-util:3.3-20080513.211757-64) of type:
jar; constructing
There is a patch provided in http://jira.codehaus.org/browse/MWAR-133.
How can I contact the maintener for a fix ?
2008/5/16 Henri Gomez <[EMAIL PROTECTED]>:
> I tested with 2.1-alpha and same problem ;(
>
> 2008/5/16 Tim Kettler <[EMAIL PROTECTED]>:
>> It's a bug in the war plugin. The resource
I tested with 2.1-alpha and same problem ;(
2008/5/16 Tim Kettler <[EMAIL PROTECTED]>:
> It's a bug in the war plugin. The resource filtering is seriously borked
> there, see here [1] for a bug report back from Nov 2007. The obvious and
> simple workaround would be to filter web.xml as a normal re
It would certainly be nice if Oracle would copy similar moves by Sun,
JBoss, etc and make their own repository where they could host various
artifacts such as these. (Assuming of course their own licensing etc
would permit such an approach.)
Of course, Sun and JBoss are just hosting open source ja
I wished the pom should never have been there at the first place. Too
many repeated discussions of this matter and
no results :-)
-D
On Fri, May 16, 2008 at 1:38 PM, mfs <[EMAIL PROTECTED]> wrote:
>
> yeah..thats what i plan to do, but i wish oracle (being such a big share
> holder in the indust
yeah..thats what i plan to do, but i wish oracle (being such a big share
holder in the industry) realize that exposing these as maven-ized jars would
really save the extra effort people have to put in, in maintaining these
jars locally.
I wish they had given more weight to the problem.
Farhan.
Additionally, you can use the "attach" option to make it part of the
regular build rather than having an extra step...
-Original Message-
From: matthew sporleder [mailto:[EMAIL PROTECTED]
Sent: Friday, May 16, 2008 4:02 PM
To: Maven Users List
Subject: Re: second zip artifact from the sa
I disagree with you on accessing the resources my way, but that is for
another post.
Anyways, I was able to upgrade to maven 2.0.8 and surefire plugin 2.4.3 and
things worked as expected. The only unfortunate thing is that now it won't
work on maven 2.0.7, but oh well.
Clifton wrote:
>
> I hav
On Fri, May 16, 2008 at 3:16 PM, ziprman <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a typical war webapp which I deploy to tomcat. At the same time I
> have the typical static content (images, js, css) that needs to go to my
> webservers. It is easy enough to exclude the static content from my war
Hi,
I have a typical war webapp which I deploy to tomcat. At the same time I
have the typical static content (images, js, css) that needs to go to my
webservers. It is easy enough to exclude the static content from my war, but
I would like to zip up the static content and also deploy it to my repo
I have a couple of observations... First off I see you're writing you unit
tests in Groovy! That's a good thing of course for far too many reasons.
It's also an important detail to pay attention to. There are a hole host of
other details to look at as well. Secondly it appears you are trying to
qu
Thanks for suggestion!
I found my problem: shouldn't use a variable like "project.release.version".
Maven must try to look that value under node. When I replace with
a uncommon name like "fancyBuild.version", then everything works as
expected.
On Fri, May 16, 2008 at 1:12 PM, Clifton <[EMAIL PR
Guillaume Boucherie wrote:
I have a strange behavior with my junit tests.
I have a project with multi-modules.
When I run the tests individually for module (mvn test) everything is ok.
But when I run the tests from the parent pom (mvn test) I have always an
error when my program try to parse an
jlo_gestalt wrote:
When trying to access test resources in my unit tests, maven 2.0.8 and above
are returning the wrong directory.
Here is my basic code to access the folder
def file = new JmblXsltDriverTest().getClass().getResource("/")?.file
println file
On 2.0.7 this would print
/workspace
It's a bug in the war plugin. The resource filtering is seriously borked
there, see here [1] for a bug report back from Nov 2007. The obvious and
simple workaround would be to filter web.xml as a normal resource in a
custom invocation of the resource plugin. But unfortunately there is a
bug in
You want to use the release plugin with a multi module project. Setup a super
pom with packaging = pom and artifactId set to whatever (eg. artifactId:
MyProj) and include projects A and B as sub modules. When your ready to cut
a release just run
mvn release:prepare release:perform
on the cmd lin
No, it wasn't until 2.0.9 that we started providing defaults in the
superpom. I wrote about it here:
http://blogs.sonatype.com/brian/2008/04/10/1207873624557.html
-Original Message-
From: Ryan Moquin [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 15, 2008 12:58 PM
To: Maven Users List
Subj
Thank you for asking this question. I had the very same problem and I'd love
to hear a best practices approach. My workaround, not the best, is to define
them separately in profiles. Then you can use cmd line properties to
activate one or the other in the activation section of the profile. It may
On Fri, May 16, 2008 at 7:53 AM, rossputin <[EMAIL PROTECTED]> wrote:
> Has anyone successfully deployed with any recent version of maven over
> webdav? One of the books I have on it suggests using it. I have not seen
> much on the mailing list though.
Yes, it works for me with wagon-webdav as
On Thu, May 15, 2008 at 8:06 PM, mfs <[EMAIL PROTECTED]> wrote:
>
> Any follow up on this ?
AFAIK, no one is working on it. The Oracle client/driver jars are
unlikely to be available in a public repository any time soon, unless
Oracle changes the license to make it possible to distribute them
wit
Hi,
I have two projects: projectA and projectB, projectB depends projectA. In
Release, I want to increase their version together. So I define the version
as property "project.release.version" and set it in pom.xml.
After the build, I see projectA-6.0.0.jar and projectB-6.0.0.war. But in
projectB-
Any other suggestions on this?
-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 15, 2008 2:13 PM
To: Maven Users List
Subject: RE: Bug in maven 2 -
Ah yes, when the resources are processed, there are some scripts that
have ${some.property} in them.
T
Hi,
I am using maven 2.0.9, and everything is working great except for site
deployment with webdav. I have not tried any other kind of deployment yet,
as I do it manually, so it may not be just site deployment that is not
working for me. I have an apache webdav setup in place, and can access it
Thanks for the response!
I think profiles might help. But this would mean defining the latest
version numbers in my settings.xml. Which means my component builds would
have to parse settings.xml and replace their version numbers when they
build. Doable but not elegent.
One question, is this c
shinjan sen wrote:
Hi Dennis,
Thanks so much for the mail.
Yes after trying out the approach you said, I could verify that this in fact
was due to some version problem.
I then tried using the version 2.0-alpha-2 and it worked.
This is what I currently have:
org.apache.maven.plugins
mav
When trying to access test resources in my unit tests, maven 2.0.8 and above
are returning the wrong directory.
Here is my basic code to access the folder
def file = new JmblXsltDriverTest().getClass().getResource("/")?.file
println file
On 2.0.7 this would print
/workspace/checkout/weather/trun
This may not work for you, but I use Eclipse with the Maven plugin (
http://m2eclipse.codehaus.org/) which will automatically do what you are
asking with other dependent projects open in the workspace.
On Fri, May 16, 2008 at 10:34 AM, BenDave <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I am working o
If you are using Eclipse, this is allready supported by the
maven-eclipse-plugin : project dependencies are set as workspace project
dependencies in place of jars, so that you can code and test under eclipse
with no jar to install.
I also use the sysdeo-tomcat-maven-plugin from mojo to avoid creat
Why don't you simply checkout the two projects and make a Eclipse dependency
between them ? Just for dev purpose of course, keep the maven dependency
configuration) ..
Manuel
On Fri, May 16, 2008 at 4:34 PM, BenDave <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I am working on 2 projects, one is Depend
Hi,
I am working on 2 projects, one is Dependant on the other. The usual way of
dealing with this is to add a dependency to a jar file located in the
repository. This works fine but the source project (on which the target
project depends) is constantly evolving, as we are doing some iterative
dev
L.S.,
Would it be possible to add a role-hint to the components.xml for the
ArchetypeGenerationQueryer to allow replacing it with another implementation
(providing better defaults for users)? I guess there is no other way to
plug in my own implementation without that (cfr.
http://jira.codehaus.o
Hi all,
I have a strange behavior with my junit tests.
I have a project with multi-modules.
When I run the tests individually for module (mvn test) everything is ok.
But when I run the tests from the parent pom (mvn test) I have always an
error when my program try to parse an xml file.
See the sta
Hi,
I'm trying to override a parent pom's distribution management through
the child's pom. (Deploy the artifacts in different directories). When I
tried adding a element in the child pom, it is
still picking up the details from the parent's pom. Please help me
resolve this issue.
Thanks and Rega
Interesting topic. I've been having trouble with Idea's native Maven support
and would like to consider using the Idea Maven plugin again. The problems I
have is synchronizing a single module. When I hit the synchronize button it
synchronizes all of the modules and I have one non-standard module t
AM I confused or does Maven override command line properties with profile
properties in the pom and profiles.xml? Shouldn't command line properties
always take precedence? Could somebody explain the priority order of
properties in Maven? I've been trying to do things like have a switch in one
prof
Hi Dennis,
Thanks so much for the mail.
Yes after trying out the approach you said, I could verify that this in fact
was due to some version problem.
I then tried using the version 2.0-alpha-2 and it worked.
This is what I currently have:
org.apache.maven.plugins
maven-checkstyle-plugin
Yeah, I was going to run yourkit over it myself - but be my guest :)
http://svn.apache.org/repos/asf/archiva/trunk/
Build with mvn clean install -Dmaven.test.skip=true (just to be faster
to analyse, it still occurs)
It fails in the webapp module on 2.0.9.
In the past, I tried commenting out var
I tried with maven 2.1-620417 and 2.1-655675 from command line, and same problem
2008/5/16 Henri Gomez <[EMAIL PROTECTED]>:
> I can build jar projects using the jaxws wsgen mojo (1.9) under maven
> 2.0.x but it failed under m2eclipse (0.9.3) when using maven 2.1
> embedded (it works if I switch m2
I can build jar projects using the jaxws wsgen mojo (1.9) under maven
2.0.x but it failed under m2eclipse (0.9.3) when using maven 2.1
embedded (it works if I switch m2eclipse to use the maven 2.0.9 on my
system).
I tried with various JVM (Sun and IBM 5 and 6) but still got the
problem with maven
Hello,
I don't find any facility in eclipse to deploy an artifact in a remote
repository. Is not included this feature in the maven integration with
eclipse? have I to do it in command line?
Thank you
I suspect something weird in maven-war plugin (2.0.2) since I get the
same error from m2eclipse which use maven 2.1 embedded
2008/5/16 Henri Gomez <[EMAIL PROTECTED]>:
> *.version => pom.version
>
> *.name => pom.name
>
> 2008/5/16 Henri Gomez <[EMAIL PROTECTED]>:
>> Problem in maven-war 2.0.2 or
*.version => pom.version
*.name => pom.name
2008/5/16 Henri Gomez <[EMAIL PROTECTED]>:
> Problem in maven-war 2.0.2 or in maven 2.0.9 ?
>
> 2008/5/16 Tim Kettler <[EMAIL PROTECTED]>:
>> Strange, indeed.
>>
>> Looks like a bug to me. I tried with this in web.xml and no filter property
>> files:
>>
Problem in maven-war 2.0.2 or in maven 2.0.9 ?
2008/5/16 Tim Kettler <[EMAIL PROTECTED]>:
> Strange, indeed.
>
> Looks like a bug to me. I tried with this in web.xml and no filter property
> files:
>
> pom.name: ${pom.name}
> user.name: ${user.name}
> name: ${name}
> foo.name: ${foo.name}
>
>
2008/5/16 SchneiderR <[EMAIL PROTECTED]>:
>
> Hi Arnaud,
> I have a similar concern and a few questions how you did it:
> 1.) Do you use a predefined assembly or a custom one?
> 2.) Do you somehow generate the config.ini?
>
FYI, there are two other solutions you might want to look into if you wa
Strange, indeed.
Looks like a bug to me. I tried with this in web.xml and no filter
property files:
pom.name: ${pom.name}
user.name: ${user.name}
name: ${name}
foo.name: ${foo.name}
pom.version: ${pom.version}
os.version: ${os.version}
version: ${version}
foo.version: ${foo.ve
Hi Arnaud,
I have a similar concern and a few questions how you did it:
1.) Do you use a predefined assembly or a custom one?
2.) Do you somehow generate the config.ini?
Thanks in advance,
Roland
Arnaud Vandyck-2 wrote:
>
> Solved by using maven-assembly-plugin, many thanks.
>
> ...
>
>>
>>
Strange.
I could get thru filter ${user.home} or ${java.version} but not ${user.name}
Any idea ?
2008/5/16 Henri Gomez <[EMAIL PROTECTED]>:
> Many thanks Tim.
>
> I was using the same thing, excepted WEB-INF
>
> It works now !
>
> 2008/5/16 Tim Kettler <[EMAIL PROTECTED]>:
>> Hi,
>>
>> I do it l
Thanks, any idea when 2.2 will be released?
Regards,
..kace
--
View this message in context:
http://www.nabble.com/running-mvn-idea%3Aidea-tp17232616p17270683.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---
Hi, I'm trying to make Cobertura plugin to skip XML-beans classes in its
instrumentation, like this:
com.xyz.abc.protocol.*
com.xyz.abc.gateway.cache.*
com/xyz/abc/protocol/**/*
Many thanks Tim.
I was using the same thing, excepted WEB-INF
It works now !
2008/5/16 Tim Kettler <[EMAIL PROTECTED]>:
> Hi,
>
> I do it like this:
>
>
>
>
>org.apache.maven.plugins
>maven-war-plugin
>
>
>
> ${basedir}/src/m
Hi, I'm trying to make Cobertura plugin to skip XML-beans classes in its
instrumentation, like this:
com.xyz.abc.protocol.*
com.xyz.abc.gateway.cache.*
com/xyz/abc/protocol/**/*
IIRC artifacts of type plugin are not added to the runtime classpath (if
you run with -X you should see a corresponding message). You have to
deploy/install the plugin as a jar and declare a dependency of a jar type.
HTH,
-Lukas
christo wrote:
Hi All,
I've read the docs, googled, read maili
Hi,
I do it like this:
org.apache.maven.plugins
maven-war-plugin
${basedir}/src/main/webapp/WEB-INF
web.xml
WEB-INF
true
57 matches
Mail list logo