Petr,
If it makes any difference, I have Maven 2.0.7 and the antrun plugin
with Junit combination works for me. I am, however, using the 3.8.1
version of Junit, but i don't think it matters.
Maven-antrun-plugin page also has a writeup on how to use optional tasks:
remove foot from mouth
Appears that I spoke too soon - i can indeed run the maven/ant/junit
combo from inside a sub-modules but it doesn't work for me in the
top-level package with child modules.
oh well. any other suggestions on how to workaround this problem until
the aforementioned bug is
Wayne, I am able to resolve this issue but got some other issue. I guess this
issue is due to differnent class loaders. See the following pom file. When I
was putting junit dependency at pom level which is now commented out, I was
having issue but now what I did I added this dependency for
I found a bug about this issue.
http://jira.codehaus.org/browse/MNG-1323?page=com.atlassian.jira.plugin.system.issuetabpanels:changehistory-tabpanel
Has this been fixed. I am using maven 2.0.5 . The second last row says that fix
version is 2.0.x and it was changed from 2.0.6 so was that
The bug status is REOPENED. So most likely, they thought they have
fixed this in 2.0.6, but then found out it was not actually fixed, so
they moved the fix version back to 2.0.x (which means not yet fixed)
and reopened the bug.
So no, this is not fixed, its still a bug in all 2.0.x series. And
Thanks Wayne for your help. You have been great help. I thought 2.0.x meant it
was fixed in all 2.0.x projects.
Thanks again.
Petr.
Wayne Fay [EMAIL PROTECTED] wrote: The bug status is REOPENED. So most
likely, they thought they have
fixed this in 2.0.6, but then found out it was not actually
Greetings,
I have simple ant file that has junit task and it executes fine using ant 1.6.2.
Now I am trying to call that ant script via pom file and I am getting an error
that junit task is not found.
C:\ncp\ncp\main\component\ClientTests\build\client\build.xml:117: Could not
create task or
I added one more dependency
dependency
groupIdorg.apache.ant/groupId
artifactIdant-junit/artifactId
version1.6.2/version
/dependency
and still seeing the same results. Any pointers ??
Thanks,
Petr V. [EMAIL PROTECTED] wrote: Greetings,
I have simple ant
You probably want the ant-nodeps artifact.
groupIdant/groupId
artifactIdant-nodeps/artifactId
version1.6.5/version
Wayne
On 5/1/07, Petr V. [EMAIL PROTECTED] wrote:
I added one more dependency
dependency
groupIdorg.apache.ant/groupId
artifactIdant-junit/artifactId
Thanks Wayne for your reply. I added your suggested artifact too though I guess
it was not required because junit task is included in ant-junit artifcat but I
am still facing same issue. On researching on google, I found that many people
have asked about this problem with different ant tasks
I'm curious... why you can't just use Maven Surefire plugin to run
your JUnit tests? Why are you doing this junit via ant thing at all?
Wayne
On 5/1/07, Petr V. [EMAIL PROTECTED] wrote:
Thanks Wayne for your reply. I added your suggested artifact too though I
guess it was not required because
Actually I am trying to set framework to test web services. Our all projects
are in compliance with maven except this one.We use sure fire for all other
components.
In this ant script, we deploy the web server , generates wsdl, generates
clients and then run the tests via junit. I can try to
12 matches
Mail list logo