Hi,
I would like to run both unit tests and integration tests in the same project.
I don't want to create a separate module for integration tests (unlike Better
Builds With Maven book).
With only one project (and one pom), I want the following lifecycle:
Phase |Action
On 27/11/06, Julien HENRY [EMAIL PROTECTED] wrote:
I would like to run both unit tests and integration tests in the same project.
I don't want to create a separate module for integration tests (unlike Better
Builds With Maven book).
You can achieve this, but it's not too pretty. See:
See http://jira.codehaus.org/browse/MRM-212 and attached patch.
I'm using a patched archiva with no more bad checksum issue.
Nico.
Brett Porter a écrit :
I think this is a known bug (both the broken metadata, and the
inability to work with broken metadata).
We need to add a strict flag on
I'm trying to check in an ear file into CVS .When I run the command
'mvn scm:checkin' , the check in is failing with the following message
:
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-scm-plugin:1.0-SNAPSHOT
:checkin' --
[DEBUG] (f) basedir = D:\MAVEN-WORK\eportal-ear
[DEBUG]
You can't commit a file if you aren't in a working copy directory.
Emmanuel
Jeff Mutonho a écrit :
I'm trying to check in an ear file into CVS .When I run the command
'mvn scm:checkin' , the check in is failing with the following message
:
[DEBUG] Configuring mojo
OK, so I'll have to wait for Maven 2.1 ;)
Thanks
- Message d'origine
De : Mark Hobson [EMAIL PROTECTED]
À : Maven Users List users@maven.apache.org
Envoyé le : Lundi, 27 Novembre 2006, 10h33mn 07s
Objet : Re: Running both unit and integration tests in the same module
On 27/11/06,
On 11/27/06, Emmanuel Venisse [EMAIL PROTECTED] wrote:
You can't commit a file if you aren't in a working copy directory.
Emmanuel
Thanks Emmanuel.The log says [INFO] Working directory:
D:\MAVEN-WORK\eportal-ear .Do you mean I should run this from the
directory where the actual ear file is
A working copy directory is the directory where you done the checkout. For CVS,
it must contains a CVS directory.
Emmanuel
Jeff Mutonho a écrit :
On 11/27/06, Emmanuel Venisse [EMAIL PROTECTED] wrote:
You can't commit a file if you aren't in a working copy directory.
Emmanuel
Thanks
On 11/27/06, Emmanuel Venisse [EMAIL PROTECTED] wrote:
A working copy directory is the directory where you done the checkout. For CVS,
it must contains a CVS directory.
Emmanuel
Thanks.Seems sorted now.
-
To unsubscribe,
Hi guys,
I must write some resource files related to localization.
On develop time, I have to write natural local language; on runtime,
application must use ASCII codes.
So I have to convert the native resource files to ASCII files before
deploying.
Now, I use maven-antrun-plugin to execute Ant
I'm using maven-eclipse-plugin-1.10. When calling 'maven eclipse' an
uncomplete .project file in created. The .classpath file is missing at
all.
In the .project file the entries for javanature and javabuilder are
missing. The generated .project file is here:
?xml version=1.0 encoding=UTF-8?
Hi
I'm trying to use maven with my projects but I found every jar file I
need is totally older in maven repositories.
For example, activemq (and everything related to this project),
springframework, iBatis
Is ibiblio.org and older repository, am I making a mistake or just
nobody actualize
Hi,
Thank you for the reply. I tried changing the scope to provided for the
resin jar, but it still seems to be used in the test classpath. What would
be nice is if I could actually remove it completelt from the test classpath
- is there a way to do this with Maven?
thanks
--
View this
Maybe you are looking at the wrong groups. There is a newer convention
to use your domain name as group.
So the newest version of the Springframework is in org.springframework
(http://www.ibiblio.org/maven2/org/springframework/spring/2.0.1/)
Maybe the same for your other dependencies. Take a
Hi
Archiva appears to creating a database under my home directory on UNIX
e.g
/home/pilgripe/database
/home/pilgripe/derby.log
Instead of under catalina.home, where is this setting controlled
contrary to the information at
http://maven.apache.org/archiva/guides/getting-started/index.html ?
On 27/11/06, rking999 [EMAIL PROTECTED] wrote:
Thank you for the reply. I tried changing the scope to provided for the
resin jar, but it still seems to be used in the test classpath. What would
be nice is if I could actually remove it completelt from the test classpath
- is there a way to do
Hi,
I started a wiki page to document the best-practises on using
Sourceforge.net with Maven:
http://docs.codehaus.org/display/MAVENUSER/MavenAndSourceforge
It is based on my experience with Maven2 and sourceforge for the development
of the vigilog project (http://vigilog.sourceforge.net)
I know that for the iBATIS project, we are just starting to use maven,
so are just getting ready to start publishing it.
Larry
On 11/27/06, Javier Leyba [EMAIL PROTECTED] wrote:
Hi
I'm trying to use maven with my projects but I found every jar file I
need is totally older in maven
You can use the property derby.system.home to put the db files somewhere
else.
Arnaud
Peter.Pilgrim wrote:
Hi
Archiva appears to creating a database under my home directory on UNIX
e.g
/home/pilgripe/database
/home/pilgripe/derby.log
Instead of under catalina.home, where is
I have the jars ready to upload. It is just a matter of getting the
jars into place. I had originally submitted all the necessary
artifacts for upload to the codehaus JIRA. They kicked it back to me
saying i needed to use the apache way of getting it to them. Of course
it adds an additional set
URL Name was introduced to make the repository snippets make sense.
consider the following
repository
idsnapshots/id
urlhttp://archiva.corporate.com/repository/snapshots/url
/repository
vs
repository
idcorporate.snapshots/id
urlhttp://archiva.corporate.com/repository/snapshots/url
In some issues on Nabble I read that it is default to get the
committer's name in the build report. I'm using 1.0.3 but I do not see
the name of the committer in the build report. Is there something I can
set or reset to get this working?
THNX.
Hi,
I'm experiencing trouble with the generation of ejb-jar.xml by ejbdoclet
(xdoclet).
It does not seem to include at the top of the file a DOCTYPE directive.
I don't know if this is strictly required by the standard, but my Weblogic
server tells me it is not valid for that reason.
Any idea of
Make sure to overwrite filePermissions and directoryPermissions
if you want to allow other team mates to ever manage the site too.
servers
server
idshell.sourceforge.net/id
usernamexxx/username
passwordxxx/password
I'm doing a clean 'mvn install cvs archiva-webapp mvn jetty:run'.
Archiva as expected allows me to create an admin user, but having logged
in with this admin user, it is as if the 'admin' user does not actually
have admin rights! I've seen this on two different computers now - has
anyone else
Hi,
It seems to me that maven 2.0.4 filter corrupts UTF-8 files. I have a XML
file with UTF-8 encoding that doesn't contain any replacement strings, but
it is filtered. The resulting file is not the same as source file, UTF-8
characters are wrong. Why maven modifies the file? I suspect, that the
hello,
i've just sync this morning and i've got funny behavior
it's possible to create user
but it's not possible to grant role to user / edit user / delete
it complains about an empty user
:(
--
View this message in context:
You need to have an english output from your scm and developers defined in your
pom.
Emmanuel
Ronald Pieterse a écrit :
In some issues on Nabble I read that it is default to get the
committer's name in the build report. I'm using 1.0.3 but I do not see
the name of the committer in the build
On 11/27/06, Max Bowsher [EMAIL PROTECTED] wrote:
I'm doing a clean 'mvn install cvs archiva-webapp mvn jetty:run'.
Archiva as expected allows me to create an admin user, but having logged
in with this admin user, it is as if the 'admin' user does not actually
have admin rights! I've seen this
On 11/27/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Archiva appears to creating a database under my home directory on UNIX
e.g
/home/pilgripe/database
/home/pilgripe/derby.log
Instead of under catalina.home, where is this setting controlled
contrary to the information at
Wendy Smoak wrote:
On 11/27/06, Max Bowsher [EMAIL PROTECTED] wrote:
I'm doing a clean 'mvn install cvs archiva-webapp mvn jetty:run'.
Archiva as expected allows me to create an admin user, but having logged
in with this admin user, it is as if the 'admin' user does not actually
have admin
hi,
wild guess... have you specified the ejb version you are using?
here's what i m using
ejbdoclet
destDir=${project.build.directory}/generated-sources/xdoclet
excludedTags=@author,@version
ejbSpec=2.1
deploymentdescriptor
ObjectLab is proud to announce release 1.0 of QALab for Java 1.4+
Furthermore, we are very pleased to announce that QALab was selected
by Borland and is also supported/integrated in JBuilder 2007 as part of
the new TeamInsight team-RAD feature.
We are really excited at the collaboration
Hi,
Thanks for the tip, but it doesn't seem to work in my case. I always had it,
and the generated ejb-jar.xml does not include DOCTYPE.
Do YOU have it generated in your case ?
By the way, I use the following piece of Pom :
ejbdoclet ejbSpec=2.1 ejbClassNameSuffix=Impl force=true
This wasn't working for me either, but I assumed it was just a ClearCase
SCM maven plugin issue. I did have english output and all the
developers defined in the pom.
Would you expect the clearcase plugin to work this?
Thanks
David
On Mon, 27 Nov 2006 16:06:10 +0100, Emmanuel Venisse
[EMAIL
Normally, the scm output parser in clearcase maven-scm provider works fine, but
maybe the output in different between each clearcase version.
Emmanuel
David Roussel a écrit :
This wasn't working for me either, but I assumed it was just a ClearCase
SCM maven plugin issue. I did have english
On 11/27/06, Max Bowsher [EMAIL PROTECTED] wrote:
The problem is that the admin user doesn't seem to have access to any of
the administration webpages! So, I can't create a repository, and I
can't edit user rights.
I can't reproduce it with a clean build (r479651). Startup, creation
of the
Where should I put this piece of xml? Is this part of the pom or the
settings.xml?
regards,
Wim
2006/11/27, Geoffrey De Smet [EMAIL PROTECTED]:
Make sure to overwrite filePermissions and directoryPermissions
if you want to allow other team mates to ever manage the site too.
servers
On 11/27/06, Wim Deblauwe [EMAIL PROTECTED] wrote:
Where should I put this piece of xml? Is this part of the pom or the
settings.xml?
settings.xml, because it's developer specific (it has your userid and password.)
Then the id needs to match the one used in pom.xml so Maven will
know to use
Hi all,
the other day I found this statement inside commons-logging-1.1.pom
(http://repo1.maven.org/maven2/commons-logging/commons-logging/1.1/commons-logging-1.1.pom):
urlhttp://jakarta.apache.org/commons/${pom.artifactId.substring(8)}//url
I tried the same substring-thing in my poms, but
Hello,
apologies. i talked without checking what was generated (all the
deployment - on jboss - went fine so i was assuming that everything was fine
too)
no i don' thave doctype, howerver the ejb-jar refers to the schema location
for the ejb jar
?xml version=1.0 encoding=UTF-8?
ejb-jar
I'm not sure empty password is supported
Emmanuel
Ali Hisham Malik a écrit :
Hi,
The svn repository I'm using requires an empty password to be passed
even for anonymous access. I have experiment with several ideas to make
it work with no success. Can anyone tell me what I need to do exactly?
Hi there
I'm generating the maven site from cruisecontrol.
When i try to generate manually i get the error:
...
...
...
xdoc:generate-from-pom:
[echo] Generating xdocs from POM ...
BUILD FAILED
File..
/subversion/users/svnclient/.maven/cache/maven-xdoc-plugin-1.8/plugin.jelly
Thanks Chris,
I also want to be able to run the web-app with mvn jetty:run so I had to
set it up like this...
=== in my top-level pom ===
dependency
groupIdlog4j/groupId
artifactIdlog4j/artifactId
version1.2.13/version
scopeprovided/scope
/dependency
=== in my web-app's pom
we have identified a number of key areas that need some work in the
performance area...never fear, we'll get them ironed out pretty soon I
hope. I personally know of a couple of improvements that we can make
in the plexus-security side of things, specifically in the speed of
the authz
What is the simplest / preferred way to run maven from ant?
My maven project is being integrated with a larger project that uses
ant. I want the process to be painless to ant lovers, if possible.
Thanks in advance
,chris
-
To
Hey All,
This may be a dumb question. But, I have a aggregate pom with three
modules. One of the modules makes use of the webstart plugin. The
webstart plugin fails when using 'mvn install'. It is necessary for me
to call 'mvn webstart:jnlp' when building this module without calling
'install'.
Hi.
Is there something like the mavenrun plugin?
I'm building an assembly of one of the modules. After that I'd like to check if
this assembly is buildable. That is, I'd like to extract the resulting zip into
some folder and run maven with it (during the integration-test phases). I know
how
Hi,
I have a slightly unusual situation where I have shared overlay webapps
that are assembled into standalone webapps and into larger aggregate
webapps. The httpunit (junit) integration tests are contained within
the overlay (component) project. However, I'd like to execute the same
Hi,
Is having multiple artefacts for a single project not allowed within
Maven 2? I have a number of projects which produce 2 related artefacts:
1) jar file containing hibernate pojos, hbm mappings etc.
2) sql script to create tables required by 1.
I'd rather not have 2 projects as all of
See attach-artifact in the build-helper-maven plugin:
http://mojo.codehaus.org/build-helper-maven-plugin/howto.html
tom
On 11/27/06, Nathan Coast [EMAIL PROTECTED] wrote:
Hi,
Is having multiple artefacts for a single project not allowed within
Maven 2? I have a number of projects which
rtfm to self :)
http://maven.apache.org/plugins/maven-assembly-plugin/
Nathan Coast wrote:
Hi,
Is having multiple artefacts for a single project not allowed within
Maven 2? I have a number of projects which produce 2 related artefacts:
1) jar file containing hibernate pojos, hbm mappings
Is this issue considered a bug, or a known limitation? (I didn't find
anything in Jira)
It seems like if Maven is able to handle projects with child atrifactIds
that != directory names, Continuum should support that too.
It's definitely a deal-breaker for me personally, and I suspect it would
You may change the testSourceDirectory in the surefire plugin to point
to the source directory of the other project in case you can achive a
relative path to it (e.g.
${basedir}/../../OTHER_PROJECT_NAME/src/test/java )
Nir
-Original Message-
From: Nathan Coast [mailto:[EMAIL PROTECTED]
Hi Nir,
yes I was thinking that, but then there's a problem if the aggregator
project has tests of its own, or if the aggregator project aggregates
more than one overlay webapp.
I'm thinking copying all test sources into a single folder may be the
only solution.
cheers
Nathan
Nir Feldman
Seems to me as well,
You may plugin a simple ant task to do the copy for you in the
generate-sources phase.
Hope I helped..
-Original Message-
From: Nathan Coast [mailto:[EMAIL PROTECTED]
Sent: Monday, November 27, 2006 9:46 PM
To: Maven Users List
Subject: Re: executing junit
You might want to checkout the maven-invoker-plugin. It's SVN at:
http://svn.apache.org/repos/asf/maven/sandbox/plugins/maven-invoker-plugin
and IIRC has a snapshot deployed to the snapshot repository:
pluginRepositories
pluginRepository
idapache.snapshots/id
Sorry this was a misinterpreted need. For some reason after my modules
complete install they start again. I research this and see if there is
any information regarding it.
Brandon
On 11/27/06, Brandon Goodin [EMAIL PROTECTED] wrote:
Hey All,
This may be a dumb question. But, I have a
Ok, thanks.
I've had a look on the archives of the xdoclet users, which did not help
much very much, but I'll post on that list.
And keep this list informed if I get a solution.
2006/11/27, Marco Mistroni [EMAIL PROTECTED]:
Hello,
apologies. i talked without checking what was generated
I have a 3 module project with an aggregate pom. When i run 'mvn install'
from the aggregate pom it tries to run install on all of the modules twice.
This is causing one of the installs to fail. Has anyone had an experience
like this?
Brandon
On 11/27/06, Brandon Goodin [EMAIL PROTECTED] wrote:
I have a 3 module project with an aggregate pom. When i run 'mvn install'
from the aggregate pom it tries to run install on all of the modules twice.
This is causing one of the installs to fail. Has anyone had an experience
like this?
It wasn't a bug but a known limitation in maven inheritance in child pom. I
implemented a workaround in continuum and will be available in 1.1
Emmanuel
idallas a écrit :
Is this issue considered a bug, or a known limitation? (I didn't find
anything in Jira)
It seems like if Maven is able to
One future feature for archiva is to manage the pom internal
repositories to point to itself.
In other words, if archiva is told to proxy central, and a pom gets
pulled down pointing to a new repository of say ...
repository
idsf.net/id
urlhttp://projfoo.sourceforge.net/maven2//url
I think it was a mevenide issue in netbeans 5.5. I can consistently clean
and install from the command line. In Netbeans 5.5 it works once and then
any clean and install following that will try to run things twice.
The second build failed because i have the webstart plugin that signs the
jars.
Hi!
I have written an ant mojo I want to bind to a phase. This mojo should be
configured (I currently only want to specify the version) in a parent POM
and inherited to a POM used for a jar project.
So I define in the *.mojos.xml
...
pluginMetadata
mojos
mojo
callnative2ascii/call
So far, using the exec task seems to work.
target name=install
exec dir=. executable=C:/java/maven-2.0.4/bin/mvn.bat
arg line=install /
/exec
/target
This is in a build.xml next to my pom.
,chris
On 11/27/06, Christofer Jennings [EMAIL PROTECTED] wrote:
What is the simplest /
Hi
I have maven 2.0.4, using Surefire 2.0 to run TestNG unit tests.
The report generated by the maven-surefire-report-plugin is not ideal - I
wonder if there is anything I can do.
Under the 'Test Cases' heading, I have a list of method names that are not
prefixed with the package / class names.
Hi,
My team is developing a maven plugin that generates Java source code. User
can then compile these Java sources using standard maven compiler plugin.
However, the compilation needs some jars that's installed locally on user's
machine (not present in maven repository). The compilation fails
Hi,
In my particular project settings, it's sometimes desirable to prevent the
maven's default compiler (maven-compiler-plugin) from running during the
compile phase. Instead, we want to do the compilation using an Ant build
file.
Has anyone tried this -- preventing the maven-compiler-plugin
Hi Jiang!
This task is a bit tricky, since the antrun plugin
does come with almost no dependencies in the default
pom. This is basically a good idea, since you don't
have jars lying around which you do not use.
Specially the native2ascii is a bit dirty, since this
is a special part provided by
On 11/27/06, Yan Zheng [EMAIL PROTECTED] wrote:
In my particular project settings, it's sometimes desirable to prevent the
maven's default compiler (maven-compiler-plugin) from running during the
compile phase. Instead, we want to do the compilation using an Ant build
file.
You can use a
If 'aggregated POM' means POM inheritence, this may
also be a situation like this one:
http://jira.codehaus.org/browse/MNG-2297
try using
$mvn help:effective-pom
If you get two nearly identical plugin sections then
you have to wait for maven-2.0.5 or merge the pach
back to 2.0.4 .
lg,
strub
Btw, you may remove the antlr dependencies since this
has nothing to do with ant.
antlr: ANother Tool for Language Recognition
read more at:
http://www.antlr.org/
Some ant dependencies which (in other common
scenarios) would make sense are:
ant/ant-nodeps
ant/ant-stylebook
Use scope system in your dependency to use them via pom...
I don't know how to set them programmatically in your plugin code.
Wayne
On 11/27/06, Yan Zheng [EMAIL PROTECTED] wrote:
Hi,
My team is developing a maven plugin that generates Java source code. User
can then compile these Java
Hi struberg,
Thanks for your help.
I had a try with your instructions, but didn't get good result.
The following is my snippet of scripts
dependency
groupIdcom.sun/groupId
artifactIdtools/artifactId
version1.5.0_09/version
scopesystem/scope
systemPath
Did you put the dependency node inside plugin, as suggested, or
just directly to the project?
Wayne
On 11/27/06, jiangshachina [EMAIL PROTECTED] wrote:
Hi struberg,
Thanks for your help.
I had a try with your instructions, but didn't get good result.
The following is my snippet of scripts
Oki, i looked at all jars. You have to add the
ant-nodeps to your dependencies also.
This contains the optional ant taskdef for
native2ascii.
dependency
groupIdant/groupId
artifactIdant-nodeps/artifactId
version1.6.5/version
scoperuntime/scope
/dependency
lg,
strub
--- jiangshachina
Hi,
It's in
buildpluginsplugindependency/dependencyplugin/plugins/build.
a cup of Java, cheers!
Sha Jiang
Wayne Fay wrote:
Did you put the dependency node inside plugin, as suggested, or
just directly to the project?
Wayne
On 11/27/06, jiangshachina [EMAIL PROTECTED] wrote:
Hi
I have been looking to call a Maven build from Ant as well. Has anyone tried
using the Embedder,
http://maven.apache.org/guides/mini/guide-embedding-m2.html? Looks like it
may provide a nice API that could be used to write Ant tasks for different
goals.
On 11/27/06, Christofer Jennings [EMAIL
OK, that's right!
Thanks very much!
a cup of Java, cheers!
Sha Jiang
struberg wrote:
Oki, i looked at all jars. You have to add the
ant-nodeps to your dependencies also.
This contains the optional ant taskdef for
native2ascii.
dependency
groupIdant/groupId
All,
I hope this question hasn't been asked a million times already, but I
have been playing around with this issue for quite a while now and I
think it is time to ask for some professional help. I am working on
setting up an enterprise Java application. I am trying to get a basic
project
Jarret,
Try this:
1. Run 'mvn eclipse:eclipse' from your Common directory.
2. Starting with an empty workspace in Eclipse, setup the M2_REPO
classpath variable.
3. Use the File - Import - Existing projects into workspace feature.
Choose the root directory of your project (NOT Common, but
On 11/28/06, Jarret R [EMAIL PROTECTED] wrote:
All,
I hope this question hasn't been asked a million times already, but I
have been playing around with this issue for quite a while now and I
think it is time to ask for some professional help. I am working on
setting up an enterprise Java
Hello,
Now I have another troubles.
executions
execution
idcompile/id
phasecompile/phase
configuration
tasks
native2ascii encoding=UTF8 src=src/java
Hi Brandon,
As far as I know, there's no way that the default goals bound in the Maven
lifecycle phases will not be executed. So even if you set mvn
webstart:jnlp as the default goal for a module, it will still execute
install.
Dawn
Brandon Goodin wrote:
Hey All,
This may be a dumb
You might get more information if you browse the TestNG user mailing
list. There are several threads discussing Maven Surefire with TestNG.
It depends also on the TestNG version that you use. I still use the 4.7
version which is compliant with the current Maven Surefire plug-in (I
think it is
Hi
I am running on the latest version of Maven (2.1-SNAPSHOT). Download it from
SVN, and build it.
Hermod
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 28, 2006 7:53 AM
To: Opstvedt, Hermod
Subject: RE: calling an archetype goal from
Hi
I have a Maven multimodule project that has a flat Eclipse structure. It seems
that Continuum has problems with this (not finding the parent). Does Continuum
support this type of project?
Hermod
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
This email with
Ok, thanks for the input. Can you elaborate some on what 775 means, I can
put that on the wiki then.
regards,
Wim
2006/11/27, Wendy Smoak [EMAIL PROTECTED]:
On 11/27/06, Wim Deblauwe [EMAIL PROTECTED] wrote:
Where should I put this piece of xml? Is this part of the pom or the
these are unix file permissions. The 3 digits are for the user, the
group and all users respectively, and you have 4 for reading, 2 for
writing and 1 for executing.
So 775 means read,write and execute for user and group, and read and
execute for others.
Not sure why you'd want the execute bit
Wim Deblauwe a écrit :
Ok, thanks for the input. Can you elaborate some on what 775 means,
I can
put that on the wiki then.
regards,
Wim
2006/11/27, Wendy Smoak [EMAIL PROTECTED]:
On 11/27/06, Wim Deblauwe [EMAIL PROTECTED] wrote:
Where should I put this piece of xml? Is this part of the
91 matches
Mail list logo