Hi there,
I have a project with two modules (A and B). Module B has a dependency
of module A. Everything works fine when I perform mvn compile or mvn
package in parent project directory. But mvn site failed with the
following error:
[INFO]
Hi Franz,
I have an abstract class which my other mojo inherit from (if that makes
a difference) which has the host parameter on it along with the
getter/setter combo.
/**
* Host.
* @parameter default-value=127.0.0.1
*/
private String host;
Then in my POM which uses the plugin
plugin
Hi,
is it possible to change the configuration of one Mojo from another Mojo
which runs earlier in the build process?
What I want to do is to set the bootclasspath of the compiler Mojo
dynamically for the J2ME plugin, using the Unified Emulator Interface
(UEI) to determine the current
Hi franz,
Thanks in advance.
Your instructions have general purpose.
I'll check it.
a cup of Java, cheers!
Sha Jiang
franz see wrote:
Good day to you, Sha Jiang,
Maven2 handles dependencies by searching for versionless artifact keys
from the dependency tree and chooses the version which
Hi guys,
I'm using the following scripts for checkouting from CVS,
scm
connection
scm:cvs:pserver:user:[EMAIL PROTECTED]:port:repository:module
/connection
/scm
then I run mvn scm:checkout.
But the approach only checkouts one module.
Now I want to checkout several ones?
How can I
Trevor Torrez wrote:
What is the best way to have all subprojects use the same checkstyles
file?
Hi Trevor,
I do not know what the best way is, but this is how it works for me:
I have a parent POM to all POMs of my subprojects. In this I declare my
checkstyle configuration as an
Hi,
is it possible to change the configuration of one Mojo from another Mojo
which runs earlier in the build process?
What I want to do is to set the bootclasspath of the compiler Mojo
dynamically for the J2ME plugin, using the Unified Emulator Interface
(UEI) to determine the current
I have a parent POM using the pluginManagement element for configuring
plugins for sub modules. The plugin configuration contains instructions for
which goals to execute.
The parent POM is supposed to use the same plugin. Therefore I have added
the plugin to the plugins element as well. But for
On 11/30/06, Trevor Torrez [EMAIL PROTECTED] wrote:
What is the best way to have all subprojects use the same checkstyles file?
Robert's suggestion of using a separate module as a build extension is
preferable.
Another option is to point checkstyle at a URL for its config file.
This has the
On 12/1/06, Kenny Cheang [EMAIL PROTECTED] wrote:
Does anyone know what the problem might be? I mentioned that the mvn
compile and mvn package works fine when I execute these commands in
parent project directory. But if I execute them in module B directory, I
will get the same error. Any help
Petar,
If I understand yoy correctly ModuleB and ModuleC are two artifacts
both dependent on ModuleA. If so then you can create two projects for
B and C which have a dependency on A. For replacing contents of files
you can use filtering (see
On 02/12/06, lars vonk [EMAIL PROTECTED] wrote:
Petar,
If I understand yoy correctly ModuleB and ModuleC are two artifacts
both dependent on ModuleA. If so then you can create two projects for
B and C which have a dependency on A. For replacing contents of files
you can use filtering (see
On 12/1/06, Petar Tahchiev [EMAIL PROTECTED] wrote:
how to merge the two source-trees from moduleA and one of these:
moduleB or ModuleC?
You could build a jar from module A, then use the dependency plugin to
unpack the contents of it where you want them as you build modules B
and C.
--
Wendy
On 02/12/06, Wendy Smoak [EMAIL PROTECTED] wrote:
On 12/1/06, Petar Tahchiev [EMAIL PROTECTED] wrote:
how to merge the two source-trees from moduleA and one of these:
moduleB or ModuleC?
You could build a jar from module A, then use the dependency plugin to
unpack the contents of it where
Hi,
There seems to be many Maven users using TestNG, so I was quite surprised
that the latest version of TestNG available in central repo is 5.1, when the
latest version of TestNG is 5.3.
What do I have to do for it to be added to the central repo?
Regards,
Jimisola
--
View this message in
On 12/2/06, Petar Tahchiev [EMAIL PROTECTED] wrote:
That really is an option but it seems time consuming(my project is very big)
and not so ellegant. I hope someone suggests something else.
Just curious: is there a maven goal for copying source files from one
directory(module) to another?
P.S.
Did you know? The APT documentation format has a snippet macro! (I
didn't. Jason mentioned it on IRC the other day.)
If you're familiar with the Confluence wiki snippet macro, it works
the same way.
Add specially formatted comments to your source code, then use the
macro to include the
Thanks for your reply. I did 'mvn install' and 'mvn deploy' already. The
dependency jar file has been installed in my local repository and
internal repository. Any other ideas? Thanks!
Kenny
On 2006.12.02 08:36:10 -0700, Wendy Smoak wrote:
On 12/1/06, Kenny Cheang [EMAIL PROTECTED] wrote:
On 12/2/06, kcheang [EMAIL PROTECTED] wrote:
Thanks for your reply. I did 'mvn install' and 'mvn deploy' already. The
dependency jar file has been installed in my local repository and
internal repository. Any other ideas? Thanks!
Your original error message had:
1)
LOL. I followed an exmaple in the Maven book by Mergere. They had the
typo project-version instead of the project.version. Everything
works now. Thanks for your help!
Kenny
On 2006.12.02 14:46:22 -0700, Wendy Smoak wrote:
On 12/2/06, kcheang [EMAIL PROTECTED] wrote:
Thanks for your reply. I
Hi,
I'm working on a mojo that will analyze a build's
poms and come up with structuring recommendations.
For dependencies I had a simple rule in mind.
Keep them either on the parent or the child, unless
one of the children has to override the parent's
version setting...so this would only happen
Hello again,
We were discussing this on the Apache directory dev
list as well, and Greg Duffy provided some
clarification.
So I attempted to come up with a best practice around
it.
If you have a chance it would be great to hear more
feedback on this. Here is my answer to Greg.
OK - I think
OK - I'm hijacking my own thread.
I think I have a simple rule / best practice
now for structuring dependencies.
I would love feedback on this before I begin coding
the mojo that checks conformance.
Here are the rules:
Keep all dependencies specified in the top
level pom's
On 12/2/06, Ole Ersoy [EMAIL PROTECTED] wrote:
I'm leaning toward this as a best practice, because we
could have a build that has 3 modules and then we add
a 4th one, and if the parent had dependencies included
in the pom, the 4th module automatically gets them,
and maybe it didn't really want
I did exactly that in my ~70 projects tree.
one more rule, nail down all plugin versions in the pluginManagement
section too.
-D
On 12/2/06, Ole Ersoy [EMAIL PROTECTED] wrote:
OK - I'm hijacking my own thread.
I think I have a simple rule / best practice
now for structuring
On 12/2/06, Dan Tran [EMAIL PROTECTED] wrote:
I did exactly that in my ~70 projects tree.
one more rule, nail down all plugin versions in the pluginManagement
section too.
Hmmm... does that work for plugins that you don't 'declare' in child poms?
If you're using the default config for a
Hello,
I want to delete a directory by maven-antrun-plugin,
I'm using the scripts below,
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
version1.1/version
executions
execution
You may want to bind your antrun execution to a phase.
-D
On 12/2/06, jiangshachina [EMAIL PROTECTED] wrote:
Hello,
I want to delete a directory by maven-antrun-plugin,
I'm using the scripts below,
plugin
groupIdorg.apache.maven.plugins/groupId
Hello dan,
Exactly, I don't know which phase would be bined :(
I used
idinitialize/id
phaseinitialize/phase
but the result was the same.
a cup of Java, cheers!
Sha Jiang
dan tran wrote:
You may want to bind your antrun execution to a phase.
-D
On 12/2/06, jiangshachina [EMAIL
I just want to delete directory,
the work isn't related to compile, package, or others.
a cup of Java, cheers!
Sha Jiang
jiangshachina wrote:
Hello dan,
Exactly, I don't know which phase would be bined :(
I used
idinitialize/id
phaseinitialize/phase
but the result was the same.
a
30 matches
Mail list logo