Cool, so i should throw away my print version of
Using+Maven+in+a+corporate+enviro.
Thanks!
Maven Users List users@maven.apache.org schrieb am 30.01.06 23:32:03:
-Original Message-
From: Fredy [mailto:[EMAIL PROTECTED]
Sent: Monday, 30 January 2006 11:02 PM
To:
Brett Porter [EMAIL PROTECTED] wrote on 30-01-2006 22:22:47:
On 1/30/06, David Sag [EMAIL PROTECTED] wrote:
so my questions:
1) could someone with a working (with maven 2.0.2) cobertura plugin
please
send it to me with the correct pom.xml - jason z only sent me the
compiled
plugin
Hmmm.. thats weird, I think you got it right. Could you paste the
stacktrace and your directory layout ?
Regards,
-allan
Edgar Silva wrote:
Hi Allan,
Thanks to help me, but it doesn't work yet. I am not doing nothing really HARD,
is just a simple test using just one class, my folders as
Maciej Mastalarczuk wrote on Tuesday, January 31, 2006 3:39 AM:
Hi,
Has anyone had any luck with using Maven 2 with Eclipse? It
can be easily
integrated through external launch configuration, but Eclipse
build paths
are pain. I know there is a plugin for Eclipse
Brett Porter [EMAIL PROTECTED] wrote on 31-01-2006 10:44:57:
On 1/31/06, David Sag [EMAIL PROTECTED] wrote:
I'll deploy a snapshot, so you can follow the instructions on the
maven
website to use it.
Okay that would be great. Will you announce it to this list when you
do
Hi,
the last weeks, I often test to deploy an axis webapp depending on an jar and
have always the following error:
SCHWERWIEGEND: Error in dependencyCheck
java.io.IOException: invalid header field
Today I have searched for the error and found the Problem in my Manifest.mf of
the jar.
Maven
Hello,
I'm a little desesperate with this m2 eclipse plugin while everything
works so good with configuring externa tools like indicate on maven
sit guide http://maven.apache.org/guides/mini/guide-ide-eclipse.html
I never succeed to build anyone with.
I get error below on compile or package.
I
Hi,
Layout:
/pom.xml-- no dependencies
/A/pom.xml -- no dependencies (Versions 1.0.2 and 1.0.3-SNAPSHOT)
/B/pom.xml -- Depends on A-1.0.2
/C/pom.xml -- Depends on A-1.0.3-SNAPSHOT
Here's the problem:
When building all modules using the reactor: / mvn clean package
B
Hi,
I have a project with several modules in it. The entire project is
stored in one SVN repository, in the following layout:
myproject
|
+-- module A
|
+-- module B
|
+-- .
The root pom has a scm url like http://svn.myserver/.../trunk/;,
and each sub module also has its
The best practice is to define scm url in parent pom if modules are in a sub-directory. maven will
calculate the correct url for submodules.
File an issue for 2.
Emmanuel
Arik Kfir a écrit :
Hi,
I have a project with several modules in it. The entire project is
stored in one SVN repository,
I would appreciate your help to troubleshoot the following error. I can't
figure out why it is not working. I have try in several ways with the same
result.
Command:
mvn release:prepare -
Thanks for your quick answer! ;)
Regarding the space before -DtabBase, you know... issues of copy paste
from command line. :$
Do you know whether best practices information about Maven 2 integration
with SCM exist somewhere?
Regards,
Alex
On 1/31/06, Emmanuel Venisse [EMAIL PROTECTED] wrote:
Brett Porter [EMAIL PROTECTED] wrote on 31-01-2006 11:16:29:
On 1/31/06, David Sag [EMAIL PROTECTED] wrote:
Either way I probably need to bind checkstyle, pmd, findbugs etc to a
phase other than compile then, perhaps verify. Hmm will ponder this.
The reports, or the checks? The reports
Hi,
I've seen maven-checkstyle-plugin 2.0 is available since yesterday, which is
good news !
http://www.ibiblio.org/maven2/org/apache/maven/plugins/maven-checkstyle-plugin/
Though, I'm still retrieving 2.0-beta-1, even with plugin update.
maven-metadata still contains release2.0-beta-1/release
Hi all,
how did you handle the automatic profiling of code in Maven 2?
I was looking for a plugin that does these kind of things, but it seems
there isn't one.
If I had to resort to making my own plugin, which tool could be
suitable? Or maybe someone has experience using ANT tasks for that?
I don't think some docs exists somewhere about it, sorry.
Emmanuel
Alejandro Nicolas Mascarell a écrit :
Thanks for your quick answer! ;)
Regarding the space before -DtabBase, you know... issues of copy paste
from command line. :$
Do you know whether best practices information about Maven 2
I have a question in regards to this. Is there a way to build the
projects as a whole, as you say? As of now, I have to run maven on each
individual child, and I'm not sure if there is one way to call maven to
run the parent and all children at once.
Does anyone know if this is doable?
Frank
If your parent project POM lists modules, then those projects will be
built when the parent is built.
Richard Allen
Frank Russo wrote:
I have a question in regards to this. Is there a way to build the
projects as a whole, as you say? As of now, I have to run maven on each
individual child,
Don't worry. I would like to prepare some docs about the subject (Maven 2
and Subversion) for beginners. I'll make you know if I finally complete it.
Another question... where is the SCM user password provided when using SCM
url? As from the specification (and checked on svnScmProviderRepository
Do you or anyone else know where (if it exists) the documention is for
this? The pom descriptor only shows modules/.
If anyone knows how to use this, please pass along.
Thanks...
Frank Russo
Senior Developer
FX Alliance, LLC
-Original Message-
From: Richard Allen [mailto:[EMAIL
See How do I build more than one project at once? here:
http://maven.apache.org/guides/getting-started/index.html
If you are using Eclipse, this can be useful:
http://maven.apache.org/guides/mini/guide-ide-eclipse.html
Otherwise, search the mail: http://www.nabble.com/Maven---Users-f178.html
Hi,
I would like some advice of how to customise the site maven2 generates.
I have seen one blog which suggests taking a copy of the default velocity
template, modify that and then override the template directory.
http://blogs.sun.com/roller/page/wilfred?entry=customing_maven_2_site_layout
I
Okay I have changed my build so that
the checkstyle etc all happen on the verify phase, and have updated to
use the latest snapshot version of cobertura plugin.
[mvn install] works fine - all is as
expected.
but [mvn site] continues to break as
follows:
(disco-davesag) [15:59:16]
You have to use the antrun plugin and write ant tasks to do it.
Search the web for the ant tasks. There are example scripts here and there.
The only information IBM seems to provide on it is in the Websphere docs.
Here are the version 6 docs. Look for the same class names:
For websphere 6 I've found that bypassing the IDE integration and using
Websphere Rapid Deploy is the most reliable process so far. My ear
build just copies the EAR to the WRD directory and it is auto-reloaded.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Hello,
I'm trying to upgrade to maven 1.1-beta2.
My project uses commons-attributes and it's maven plugin
When I run a maven war:install on my web sub-project, attributes
classes are generated by plugin.
When I run a multiproject:install, everything SEEMS good, but
attributes classes are not
I have the same thing as Kristof in my parent POM in the
reportingplugins section. There is no reference in the child POM.
I removed the checkstyle plugin from my repository.
But I get version 2.0-beta-1 downloading like Yann. This happens if I put no
version in the POM (as Kristof) or if I put
Now, I may just be going blind, but I can't find up to date Eclipse
components on Ibiblio. If my Maven project depends on the SWT widgets,
or Jface, or any other component, is there an alternative to creating my
own objects? I found Eclipse 2.1.0 versions in
http://www.ibiblio.org/maven2/eclipse/,
Hi,
When I execute mvn install on a web project, I get a build error stating
that The plugin 'org.apache.maven.plugins:maven-war-plugin' does not
exist or no valid version could be found. I tried googling for this but
came up with nothing. Why is it not checking the central repository for
Hi Nicolas,
Why do you talk about inherited properties ?
can it be related to http://jira.codehaus.org/browse/MAVEN-1691 ?
Arnaud
On 1/31/06, Nicolas De Loof [EMAIL PROTECTED] wrote:
Hello,
I'm trying to upgrade to maven 1.1-beta2.
My project uses commons-attributes and it's maven
Is there a way to turn on the WRD without human interaction? Such as from an
ant script within Maven.
Do you have a source of information on using it? The IBM docs are totally
fragmented with no unified example. (Well ... that I have found)
How about disabling it. How is that done?
Thanks.
--
If you have a proxy you will need to put some things in the settings.xmlfile.
http://maven.apache.org/guides/mini/guide-proxies.html
It is also possible that ibiblio is running really slow. You might try again
and see if it does any better. I have had to try 3 times to get things
downloaded on
I have no proxy. Further, I've downloaded something from the central
repository for another project just now but the war plugin does not work.
When I execute mvn install, it just doesn't seem to even try to connect to
the internet. It instantly gives me the build error. Is there a command
Sory for this stupid subjet : I was thinking this comes from a
properties failure...
created [http://jira.codehaus.org/browse/MAVEN-1741] for this with a
minimalist test-case
Hello,
I'm trying to upgrade to maven 1.1-beta2.
My project uses commons-attributes and it's maven plugin
When I
I was first thinking about org.apache.commons.attributes.enable not
beeing correctly set, but I've was wrong.
I've created http://jira.codehaus.org/browse/MAVEN-1691
I've attached a minimalist multiproject to demonstrate the bug.
(war) maven war:install generates the attributes classes
(jar)
I just start WRD when I know I am going to be going through the
deployment process and leave it running. I have an add-app.bat which
runs this command:
set WAS_HOME=C:\dev\IBM\Rational\SDP\6.0\runtimes\base_v6
%WAS_HOME%\bin\wrd-config.bat -project %1 -style AutoAppInstall
so you would just run
Did you set the maven.multiproject.type property for each subproject?
-Lukas
Nicolas De Loof wrote:
I was first thinking about org.apache.commons.attributes.enable not
beeing correctly set, but I've was wrong.
I've created http://jira.codehaus.org/browse/MAVEN-1691
I've attached a
Does anyone know if the following is doable? I have a project where I
build two different artifacts off the same project base. One is a war
file, which we use to deploy to a tomcat server. The other is a jar
file, which is just an api snapshot of our code for other internal
projects to share. The
FYI
I found some clues on how to deal with branches based on the code of the
PerformReleaseMojo and the PrepareReleaseMojo.
1) release:prepare works on a checked out project. This allows for
tagging to be made on the correct branch.
2) release:perform works by checking out the project
There is a war plugin. I am using it in my build. I just ran the build and
it worked fine.
Perhaps someone else has more insightful help for you.
Sorry.
-- Lee Meador
On 1/31/06, Mang Jun Lau [EMAIL PROTECTED] wrote:
I have no proxy. Further, I've downloaded something from the central
So if I see right, the only way to process multiple Files is the multi project
thing.
But than the submodules must have a reference to the parent. that is really
only nice, if the submodules not referenced from other modules.
In the case that is right:
I miss a possibility to define
You can use -U to force an update.
On 2/1/06, Mang Jun Lau [EMAIL PROTECTED] wrote:
I have no proxy. Further, I've downloaded something from the central
repository for another project just now but the war plugin does not work.
When I execute mvn install, it just doesn't seem to even try to
Only the order they are declared in the POM.
- Brett
On 1/31/06, David Sag [EMAIL PROTECTED] wrote:
Brett Porter [EMAIL PROTECTED] wrote on 31-01-2006 11:16:29:
On 1/31/06, David Sag [EMAIL PROTECTED] wrote:
Either way I probably need to bind checkstyle, pmd, findbugs etc to a
phase
You need latest cobertura built from sources
On 1/31/06, David Sag [EMAIL PROTECTED] wrote:
Okay I have changed my build so that the checkstyle etc all happen on the
verify phase, and have updated to use the latest snapshot version of
cobertura plugin.
[mvn install] works fine - all is
Thanks so much. It worked out :)
_Mang
Brett Porter [EMAIL PROTECTED]
01/31/2006 12:25 PM
Please respond to
Maven Users List users@maven.apache.org
To
Maven Users List users@maven.apache.org
cc
Subject
Re: [m2] Cannot find maven-war-plugin
You can use -U to force an update.
On
Hi,
I created a remote repository for a bunch of jars
we use in our application. The way I did is manually
created the library.pom as :
pre
project
moduleVersion4.0.0/noduleVersion
groupIdlibName/groupId
artifactIdlibName/groupId
version1.0/version
/project
/pre
When I compile the
What happens if you replace the /noduleVersion by
/moduleVersion?
-Lukas
Ashish Srivastava wrote:
Hi,
I created a remote repository for a bunch of jars
we use in our application. The way I did is manually
created the library.pom as :
pre
project
moduleVersion4.0.0/noduleVersion
The first technique should work, but is limited. The second is
implemented in SVN, but not released. That can be expected in
February.
- Brett
On 2/1/06, Mikael Andersson [EMAIL PROTECTED] wrote:
Hi,
I would like some advice of how to customise the site maven2 generates.
I have seen one blog
My mistake. I will correct the metadata.
On 2/1/06, Lee Meador [EMAIL PROTECTED] wrote:
I have the same thing as Kristof in my parent POM in the
reportingplugins section. There is no reference in the child POM.
I removed the checkstyle plugin from my repository.
But I get version 2.0-beta-1
On 2/1/06, Richard Allen [EMAIL PROTECTED] wrote:
Am I doing something wrong or is this a bug?
I can't see anything from here, but regardless of whether something is
wrong, a NullPointException is a bug. Please file it in JIRA.
Thanks,
Brett
On 2/1/06, David Sag [EMAIL PROTECTED] wrote:
Okay I have changed my build so that the checkstyle etc all happen on the
verify phase, and have updated to use the latest snapshot version of
cobertura plugin.
[mvn install] works fine - all is as expected.
but [mvn site] continues to break
Hello,
Well, I'm quite new to maven and specially maven2. I would like to use xdoclet2
with maven2. After reading a few docs, I still cannot make it work.
I followed what is written on http://xdoclet.codehaus.org/Maven2+Plugin :
downloadding the jar and then mvn install blahblah ... It seems
When I run maven genapp I get the following error:
Attempting to download commons-jelly-tags-interaction-1.0.jar.
Error retrieving artifact from
[http://www.ibiblio.org/maven/commons-jelly/jars/commons-jelly-tags-inte
raction-1.0.jar]: java.net.
ConnectException: Connection timed out: connect
Hi,
WAR POM
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-war-plugin/artifactId
configuration
warSourceDirectorywebApplication/warSourceDirectory
warSourceExcludes
Hi
On 1/31/06, Hines, John [EMAIL PROTECTED] wrote:
When I run maven genapp I get the following error:
Attempting to download commons-jelly-tags-interaction-1.0.jar.
Error retrieving artifact from
[http://www.ibiblio.org/maven/commons-jelly/jars/commons-jelly-tags-inte
raction-1.0.jar]:
I have been trying to find a way to get Maven to produce a jar artifact
that includes (some of) its dependent artifacts, without much luck. I
have seen a few ways that promise this, but none panned out in the ways
that we need. If anyone can suggest a way to do this, I'd be much
obliged. I
Hi,
I'm writing a small mojo, and I need to invoke an external process.
That process needs some of the plugin's dependencies - how do I get
the equivalent of project.getRuntime...() for the *plugin* itself
(rather than the project it is currently building)?
Regards,
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Brett Porter wrote:
fixed in SVN.
Thanks Brett, great.
On 1/31/06, Joerg Hohwiller [EMAIL PROTECTED] wrote:
Hi there,
it seems that the projectinfo plugin does not take care of the offline-mode.
If I run mvn -o site it fails with the Error
Here's a maven 101 question:
I need help setting up a transitive dependency. I have project A, which
is properly set up and building using maven. Now I need to configure
project B to depend on project A. How do I configure this in my pom.xml
to refer to another project?
Thanks for your
Add a section in project B's pom.xml:
dependencies
dependency
groupIdmy-group/groupId
artifactIdproject-A/artifactId
version1.0-SNAPSHOT/version
scopecompile/scope
/dependency
...
/dependencies
You might need to
Hi all,
I am trying continuum. I am having problems getting it to work with a
project under tigris. Does anyone have experience with this?
thanks is advance
works. thanks
On 1/31/06, Brett Porter [EMAIL PROTECTED] wrote:
My mistake. I will correct the metadata.
On 2/1/06, Lee Meador [EMAIL PROTECTED] wrote:
I have the same thing as Kristof in my parent POM in the
reportingplugins section. There is no reference in the child POM.
I removed
Dov,
Thanks for the reply. Ok, so this isn't going to trigger a build of
project A, its just going to pull project A from the repository as it
would any other dependency. Is this correct, or am I still missing
something? How do I get project B to automatically pull all of project
A's
What type of projects are A and B? Jars? War and jar? Jar is not meant
to be deployed, so it doesn't grab it dependent projects, it just
references them for compiling (or testing). A war is meant to be
deployed on its own, so its dependencies are pulled into it's
WEB-INF/lib directory along with
Dov,
Thanks for the reply. That sort of explains things. I think what I am
really getting at is this: when a project (call it project B) has a
dependency that is another one of your own projects (call the
dependency A) , rather than a third party library (jar), is the
dependency (A)
Hi,
I have a small mojo which I want to bind to the 'process-classes'
phase. I've read
http://maven.apache.org/developers/mojo-api-specification.html which
indicates I should add a @phase process-classes to the class
comment, and I did:
/**
*
* @goal generate
* @phase process-classes
*
@phase xyz means you dont have to define phase in your plugin execution (
use default phase defined mojo). But you still need to define
your plugin executions.
However if you want hardwire to a phase when mojo is invoked from command
line use @execute. See maven-assembly-plugin for example.
-D
Look at it the other way. You've told maven that you are interested in
having this plugin execute at some point during your lifecycle but you
haven't defined which GOAL to execute. Remember a plugin can have N
goals. Maven should use the goal's default phase if you don't specify
the phase
Hi Dan,
Actually, what I want is the first option - I want that users of the
plugin *won't* have to define 'executions' - only specify my plugin in
their plugins section (along with optional configuration) and rely
on me to know at which phase to invoke.
Perhaps I'm getting it all wrong: as I
Hi Mike,
I'm not sure I follow - I specify the @phase inside my mojo (which
is basically a goal, right?) so as-far-as-I-understand maven should
know which goal to invoke...
On 2/1/06, Mike Perham [EMAIL PROTECTED] wrote:
Look at it the other way. You've told maven that you are interested in
Can someone point me to some doco that explains a phase, goal and mojo
and lists the available phases. I thought I vaguely understood, but have
become confused by the thread on binding mojos to lifecycle.
William
-
To
A mojo is a goal, yes. What's to stop you from having two mojos, each
with the same default phase?
-Original Message-
From: Arik Kfir [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 31, 2006 6:02 PM
To: Maven Users List
Subject: Re: [m2] binding mojos to lifecycle
Hi Mike,
I'm not
Best I know of:
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycl
e.html
-Original Message-
From: William Ferguson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 31, 2006 6:12 PM
To: users@maven.apache.org
Subject: [m2] phases and goals
Can someone point me to
What's more, when I add @execute phase=compile it still doesn't work...
On 2/1/06, Arik Kfir [EMAIL PROTECTED] wrote:
I see...but I still don't understand then, how I can bind my mojo to a
specific phase in the lifecycle, without triggering a parallel
lifecycle run (which is @execute, right?).
It only works if you run the mojo on command line ;-)
-D
On 1/31/06, Arik Kfir [EMAIL PROTECTED] wrote:
What's more, when I add @execute phase=compile it still doesn't work...
On 2/1/06, Arik Kfir [EMAIL PROTECTED] wrote:
I see...but I still don't understand then, how I can bind my
Thanks all for the help!
Brad
Stephen Duncan wrote:
A needs to be built, and installed in the local repository. It does
not have to be deployed to any remote repository.
-Stephen
On 1/31/06, Brad O'Hearne [EMAIL PROTECTED] wrote:
Dov,
Thanks for the reply. That sort of explains
Hi, I have a Junit test class, mytest and I am executing maven test. In
mytest, I am executing multiple threads, when I execute maven test, the
threads starts and close down automatically. I have set
maven.junit.fork=true(in maven-test-plugin) but I still have the same
problem. I believe this is a
Hi Everyone,
I am trying to compile a project that uses Hibernate (3.1.1) with Maven 2.
It seems like there is a dependency missing at ibiblio
(http://repo1.maven.org/maven2/javax/transaction/jta/1.0.1B/).
Is it a known issue or I'm doing something wrong?
Regards,
Maciej
Hello,
AFAIK, javax.transaction:jta:1.0.1B is a Sun jar that can't be redistributed
in ibiblio. You'll have to manually install that in your local repository (
http://maven.apache.org/guides/mini/guide-installing-3rd-party-jars.html).
You can download it here: http://java.sun.com/products/jta/
Thanks,
I also discovered that you can exclude it from download (if say this jar is
already available on the server)
You can do the following:
dependency
groupIdorg.hibernate/groupId
artifactIdhibernate/artifactId
version3.1.1/version
exclusions
Does anyone know where is the SCM user password provided when using SCM url?
As from the specification (and checked on svnScmProviderRepository class)
the password is not gathered for the URL, as in the case on CVS. I have
checked whether the password was taken from settings.xml file but it seems
Are you talking about SVN password or SCM password?
The SCM will be picked up from settings.xml assuming you use the reporitory
id that matches the server defined in settings.xml. The SVN credentials can
be cached in your home directory under .svn.
Regards,
Maciej
-Original Message-
82 matches
Mail list logo