Hi Barrett,
Yes, that is correct. You should edit the parent POM. I can see that you've
specified the false in
. Try adding this in the
instead.
The inherited tags are used to merge the parent pom and the child pom
(though no actual pom file is created, the pom object is created). The
resulting
On 11/10/06, franz see <[EMAIL PROTECTED]> wrote:
Good day to you, Sebastien,
No problem ;-)
Wow..thanks for the information. :-)
Would any of this be appropriate for the 'Mojo Developer Cookbook' on the wiki?
http://docs.codehaus.org/display/MAVENUSER/Mojo+Developer+Cookbook
If it's somet
Good day to you, Sebastien,
No problem ;-)
Wow..thanks for the information. :-)
Thanks a bunch,
Franz
Sebastien Brunot wrote:
>
> Thanks for your help franz, it's nice to have the kind of support you
> provides.
>
> In fact, I've adopted the strategy I've seen in the
> maven-dependency-plug
hehehe :-) my bad :-)
Andrew Williams-5 wrote:
>
> It is a rhetorical question - meaning that it is impossible to build
> such a system, thus Maven does not support it :)
>
> A
>
> franz see wrote:
>> Good day to you, Andy,
>>
>> I'm not sure if any are build at all, that's because your whol
Good day to you, Mark,
Nice. Thanks for the link :-) Hmm..maybe I should try digging up plexus in
the future to understan that better :-)
Cheers,
Franz
Mark Hobson wrote:
>
> On 10/11/06, franz see <[EMAIL PROTECTED]> wrote:
>> Good day to you, Mark,
>>
>> Curious, which docs are you referrin
Thanks for the example. That saved me a lot of time!
Re: phase for appc, I'm trying to take the approach having one project
create the ejb-jar and a separate project create the web services using
servicegen. Currently I run appc in the package phase. I thought it might
be better to decompose t
Hi Kelvin,
I did mvn javadoc:javadoc (with 2.1) on tuscany trunk:
https://svn.apache.org/repos/asf/incubator/tuscany/java
No error here. Are you sure that commonj is correctly included as dependency?
Cheers,
Vincent
2006/11/9, kelvin goodson <[EMAIL PROTECTED]>:
I have a build failure that's
I have a pom with several modules. I'd like to exclude some of the modules
from the site.
I have tried the excludeModules optin as mentionned in the doc. It seems
not to works. Modules are still in the generated site.
org.apache.maven.plugins
maven-site-plugin
Hi Allan,
Add these lines to you pom.xml:
maven-compiler-plugin
1.5
1.5
Julio
On 11/10/06, Allan Valeriano <[EMAIL PROTECTED]> wrote:
Hi all,
I'm having problems setting up a new jre to run mvn install.
My default java
Hi all,
I'm having problems setting up a new jre to run mvn install.
My default java version is 1.4.2_11, but I need maven to use jre 5 for it.
I've read the FAQ, but I must say the example for it is not really helpful.
Could somebody give me a hand on this sending a complete example?
thanks i
Hi,
I've been having too much problems with m2eclipse... Besides the
"update source folder", that I have to select every time I change some
dependency version writing directly in pom.xml, it doesn't have a pom
editor like maven 1 has.
So I guess that it's "normal"... unfortunately.
Julio
> "Tom Huybrechts" <[EMAIL PROTECTED]>:
> On 11/10/06, Steinar Bang <[EMAIL PROTECTED]> wrote:
>> Now, I need to find out if I can make maven pull in the eclipse
>> bundles neccessary for the runtime, as well. This would avoid this
>> as a copying step.
> Declare them as runtime dependencie
> Martin van den Bemt <[EMAIL PROTECTED]>:
> Steinar Bang wrote:
>>> Martin van den Bemt <[EMAIL PROTECTED]>:
>>> I am working on a m2 eclipse plugin, but that is not public yet..
>> Will it be better than m2eclipse? :-)
> Definitely :) I'll post on that later when there is a usable ver
Thanks just is what I was looking for.
> -Original Message-
> From: Barrett Nuzum [mailto:[EMAIL PROTECTED]
> Sent: 10 November 2006 17:30
> To: Maven Users List
> Subject: RE: [m2] List of All Dependencies for any project X
>
> Peter:
>
> mvn project-info-reports:dependencies should
This was on trunk, correct?
rahul, this might be an issue in the notifier actions
jesse
On 11/7/06, Emmanuel Hugonnet <[EMAIL PROTECTED]> wrote:
Hi,
I have edited my build definition since I have to pass some parameters
via -D. After that my notifier which was imported from my POM was
removed
On 11/10/06, matthewadams <[EMAIL PROTECTED]> wrote:
1. Is the "argLine" property a Surefire-specific property or a Maven-global
property?
2. Where is the "argLine" property documented (and all other properties for
that matter)?
3. Where do I set the surefire "forkMode" property?
http://mave
yep, that will do it, glad you got it working :)
cheers!
jesse
On 11/9/06, Martin Testrot <[EMAIL PROTECTED]> wrote:
Hallo Jesse, hallo Shankar,
many thanks for your fast replys.
Right now our subversion doesn't work with the apache module (has to be
configured by our admins).
So I can't add P
what version of continuum are you using?
trunk?
jesse
On 11/10/06, ETIENNE Olivier <[EMAIL PROTECTED]> wrote:
Hi,
I'm trying to compile a Java project based on a CVS repository and ant
builds scripts. When the project build is launch, the files are
retrieved from CVS but the build command doe
Dan Fabulich-2 wrote:
>
> Probably what's happening is Maven is launching a second JVM to run your
> tests.
>
> If so, you can use -DargLine="=-Xdebug -Xnoagent -Djava.compiler=NONE
> -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=4657" to pass
> those arguments to the launched JVM.
>
Morgovsky, Alexander (US - Glen Mills) wrote:
I have a parent POM which has two modules. Module A's sites get
deployed to host/A/. Module B's sites get deployed to host/B/. What do
I need to do in the parent POM so that I can have these modules show up
in the modules section of the parent pom
Declare them as runtime dependencies ?
On 11/10/06, Steinar Bang <[EMAIL PROTECTED]> wrote:
> Steinar Bang <[EMAIL PROTECTED]>:
[snip!]
>> But I still got the same error message when doing "mvn install".
> That's because "mvn dependency:copy-dependencies" pulled in the
> dependency-maven-p
Hi all,
I have some problems using the maven2 plugin for eclipse (version 0.0.9).
First, when adding a new depency in the pom.xml file, it only works if I use
the "update source folder" command of the Maven2 menu. But it is very very slow
because all dependencies are reloaded!! Is it "nor
Your wish...
http://docs.codehaus.org/display/MAVENUSER/Mojo+Developer+Cookbook
On 11/10/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
This is the kind of stuff that needs to land in a Maven Plugin
Developers doc/wiki/etc somewhere...
Wayne
On 11/10/06, Sebastien Brunot <[EMAIL PROTECTED]> wrot
On 10/11/06, Sebastien Brunot <[EMAIL PROTECTED]> wrote:
Mark Hobson seems to have authored mojos that does this:
http://jira.codehaus.org/browse/MNG-2654
Yep, that's the prerequisite to provide a patch for
http://jira.codehaus.org/browse/MPH-14, which is the cleanest
solution. Although as Bar
Hi,
Mark Hobson seems to have authored mojos that does this:
http://jira.codehaus.org/browse/MNG-2654
Hope it helps,
Sebastien
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, November 10, 2006 6:27 PM
To: users@maven.apache.org
Subject: [m2] List of
dependency plugin or "mvn site" with latest project-info reports plugin
On 11/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi Jason, Brett et al
How do you get a list of all dependencies (transitive or declared) for
any M2 project?
Basically I want to find out the list so I can cross r
Peter:
mvn project-info-reports:dependencies should give you what you want.
Barrett
Barrett Nuzum
Consultant, Skill Development
[EMAIL PROTECTED]
T: +1 (918) 640 4414
F: +1 (972) 789 1340
Valtech
5080 Spectrum Drive Suite 700 West
Addison, Texas 75001
USA
T: +1 (972) 789 1200
__
Hi Jason, Brett et al
How do you get a list of all dependencies (transitive or declared) for
any M2 project?
Basically I want to find out the list so I can cross reference against
an in-house
repository here at UBS.
The idea is to tell the administrator here with the in-house what
dependencies
Hi Dawn (and all).
We have 20-30 projects that share one, single parent POM.
Each project has usually 7 modules in it.
To clarify:
ParentPom (1)
\-- ProjectPom (1..30)
\-- ModulePom (1..7, each)
I did specify false in pluginManagement in the Parent
POM, but it did not seem
Or in the javadoc (the closer from the code, the better) !!!
Sebastien
-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED]
Sent: Friday, November 10, 2006 5:45 PM
To: Maven Users List
Subject: Re: Resolving project dependencies
This is the kind of stuff that needs to land in
This is the kind of stuff that needs to land in a Maven Plugin
Developers doc/wiki/etc somewhere...
Wayne
On 11/10/06, Sebastien Brunot <[EMAIL PROTECTED]> wrote:
Thanks for your help tom, I now have all the information I needed.
Sebastien
-Original Message-
From: Tom Huybrechts [mail
Hi,
I'm trying to compile a Java project based on a CVS repository and ant
builds scripts. When the project build is launch, the files are
retrieved from CVS but the build command doesn't work (Error at the end
of the mail).
But if I open a shell and go in the corresponding working directory,
Thanks for your help tom, I now have all the information I needed.
Sebastien
-Original Message-
From: Tom Huybrechts [mailto:[EMAIL PROTECTED]
Sent: Friday, November 10, 2006 5:26 PM
To: Maven Users List
Subject: Re: Resolving project dependencies
This works for me:
Artifact pomArtifa
This works for me:
Artifact pomArtifact = this.factory.createArtifact( groupId,
artifactId, version, "", "pom" );
MavenProject pomProject = mavenProjectBuilder.buildFromRepository(
pomArtifact, this.remoteRepos, this.local );
Set artifacts = pomProject.createArtifacts( this.factory, null, null);
Hello,
I am :)
yes found problems, you already mention solutions.. :)
in my case, maven classpath was not enough so i had to add also external jar
files (i m using jbossws with xdoclet for J2EE 1.3 beans)
additionally, for anyone who might find same problems, if you have a
multiproject and in
Definitely :) I'll post on that later when there is a usable version
Mvgr,
Martin
Steinar Bang wrote:
Martin van den Bemt <[EMAIL PROTECTED]>:
I am working on a m2 eclipse plugin, but that is not public yet..
Thanx for the information!
Will it be better than m2eclipse? :-)
What I'm doing exactly is as following:
1) I create an Artifact object using groupId, artifactId and version
provided in the plugin configuration (the type is always "pom")
2) Using this artifact, I create a MavenProject object (with the
buildFromRepository(...) method of a MavenProjectBuilder ins
On 10/11/06, Sebastien Brunot <[EMAIL PROTECTED]> wrote:
I'm not sure I undestand your question, but I want to get a list of all
the artifact that correspond to a dependency declared in the
MavenProject POM, with or without transitivity depending on a parameter
set in my plugin configuration. Wit
Hello Remy,
Thank you for this post.
I have exactly the same problem as you. I wonder if anybody else use xdoclet
and maven 2 with antRun ...
I've tried your solution and I would like to add that we must use
the "maven.dependency.classpath" as xdoclet classpath.
I agree with you that is not v
I'm not sure I undestand your question, but I want to get a list of all
the artifact that correspond to a dependency declared in the
MavenProject POM, with or without transitivity depending on a parameter
set in my plugin configuration. Without transitivity is mandatory, with
transitivity is option
On 10/11/06, Sebastien Brunot <[EMAIL PROTECTED]> wrote:
how do you programmaticaly resolve the dependencies of a MavenProject
object ?
Are you trying to resolve: the project's declared dependencies; all
the project's transitive dependencies; or traverse the project's
dependency tree?
Mark
--
Hi all,
how do you programmaticaly resolve the dependencies of a MavenProject
object ?
I've got a MavenProject object in my mojo (that i've created from an
Artifact object), and i now want to resolves its dependencies in ordre
to get them as artifacts using the getArtifactDependencies() method.
On 11/10/06, Timo Wolf <[EMAIL PROTECTED]> wrote:
I got build errors when no modules are in the local repository and
getting to module2
After jar:jar of module2, the assembly plugin is invoked and somehow
the poms of the later modules
get evaluated and try to resolve the jar artefact of module2
On 10/11/06, franz see <[EMAIL PROTECTED]> wrote:
Good day to you, Mark,
Curious, which docs are you referring to?
I was looking at:
http://maven.apache.org/developers/mojo-api-specification.html#The
Descriptor and Annotations
See the third table in that section, the @component annotation:
Hi All,
I created a reactor project with a super pom and with many modules
and module dependencies.
To some modules I added the assembly plugin (2.1) to the package
phase to build the executable
application including scripts, jars, properties, etc.
mainproject
|-module1
|-mo
The main purpose of "add-source" goal is to add additional directories to
maven compilable directory list. Out of the
box, maven only allows one directory ( build.sourceDirectory ). So you
tried to use it for the wrong purpose.
-D
On 11/9/06, jiangshachina <[EMAIL PROTECTED]> wrote:
Hi Dan,
Thanks for your help franz, it's nice to have the kind of support you
provides.
In fact, I've adopted the strategy I've seen in the
maven-dependency-plugin :
1) I've included in my plugin a java bean PomArtifact that declares
three String attributes : groupId, artifactId and version. Public
gette
You can view the source here
https://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/weblogic-maven-plugin/
but it is defined to run during the package phase. Do you have it defined
in an execution? How are you executing the command to run the entire
process?
Scott Ryan
Chief Technology Officer
So
Good day to you, Rahamim,
If my assumption before that dependencies are resolved first before
filtering, then using MavenEmbedder won't be any different.
MavenEmbedder is the generic entry point to Maven. From there, it can be
extended to be an IDE Plugin, or to be integrated in another system,
Good day to you, Mark,
Curious, which docs are you referring to?
AFAIK, @components and @parameter take their values from different
"sources".
"@component" mojo parameters are injected values which comes from the
component.xml (or some other plexus component configuration).
while
"@parameter
Good day to you, Sebastien,
Note: I don't know everything about mojo parameters but i'll show what i
know so far
Here's the break down of a mojo parameter:
/**
* @parameter expression="${merge-jar-dependencies.sourcePom}"
default-value="${project.artifact}"
*/
private Aritfact sourcePom;
ex
On 10/11/06, Sebastien Brunot <[EMAIL PROTECTED]> wrote:
I tried it the first time but it throws an exception and indicates it
can't find org.apache.maven.project.MavenProjectBuilder in "the
component repository".
Using @component instead of @parameters raises no errors. I don't know
if it do t
Good day to you, Arnaud,
If you can somehow put the contents of your file inside a property, then you
would be able to do that with maven-resources-plugin.
However, I can't think of a way how.
Furthermore, I don't think there exists a apache maven plugin for that.
Cheers,
Franz
Arnaud Baill
Hi all,
i have a mojo that defines a parameter names sourcePom which type is
Artifact :
/**
* The POM where jar dependencies are declared.
*
* @parameter expression="${merge-jar-dependencies.sourcePom}"
default-value="${project.artifact}"
*/
private Artifact sourcePom;
I don't know ho
Good day to you, Kelvin,
You may want to ask this in the Maven Dev List.
But as for now, so that you can continue without those build errors, you may
want to define the version to use for your javadoc plugin in the
pluginManagement section of your parent pom ([1]).
[1]
http://maven.apache.org/r
Good day,
Although the problem has been solved already (with the proper solution), I
would just like to add some information about the maven-resources-plugin for
other readers of this thread.
The maven-resources-plugin takes only the encoding parameter from the
configuration of the plugin secti
I tried it the first time but it throws an exception and indicates it
can't find org.apache.maven.project.MavenProjectBuilder in "the
component repository".
Using @component instead of @parameters raises no errors. I don't know
if it do the job yet...
Sebastien
-Original Message-
From:
Hi, i want to publish a project into continuum using XML-RPC client.
But when i try to publish one it doesn't assign the build definition.
--
Lic Matias Urbieta
On 10/11/06, Sebastien Brunot <[EMAIL PROTECTED]> wrote:
what is the expression to use for injection of an
org.apache.maven.project.DefaultMavenProjectBuilder instance as the
value of a pojo parameter:
Use:
/**
* @parameter
expression="${component.org.apache.maven.project.MavenProjectBuilder}
A recent mail from franz see gives me the answers (use @component
instead of @parameter).
Sorry for the annoyance.
Sebastien
-Original Message-
From: Sebastien Brunot [mailto:[EMAIL PROTECTED]
Sent: Friday, November 10, 2006 1:58 PM
To: Maven Users List
Subject: MavenProjectBuilder inj
Good day,
I'd just like to add that the performRelease property in itself is not
documented. But you can take a look at [1] about the Super POM.
Furthermore, the thing that actually adds the source codes is
maven-sources-plugin which Bram mentioned. For more info about that plugin,
kindly take a
Hi all,
what is the expression to use for injection of an
org.apache.maven.project.DefaultMavenProjectBuilder instance as the
value of a pojo parameter:
/**
* A MavenProjectBuilder instance
*
* @parameter expression=""
* @readonly
* @required
*/
private MavenProjectBuilder projectBu
Good day to you, andreas,
[1] shows a list (view my comment) about the list of properties I know so
far. Kindly add the properties that you know that are not in the list.
Furthermore, code-wise, you can use
org.codehaus.plexus.util.introspection.ReflectionValueExtractor to access
the getters of
Good day to you, Jonas,
The way I see it, you have 4 choices here:
1. Instantiate a MavenProject and set all properties you need from it.
2. Use MavenProjectStub (but this is for testing only as Maria has
indicated)
3. Do something like:
/**
* The maven project.
*
* @parameter
Good day to you, Alexander,
In addition to what Dan mentioned, you may want to use those expressions as
a default:
/**
* @parameter default-value="${project.artifactId}"
*/
pivate String my_artifact_id;
Cheers,
Franz
dan tran wrote:
>
> did you anotate your "my_artifact_id"
> like
> /**
Good day,
If im not mistaken, Java (the programming language behind maven) does
differentiate the System and Environment Variables. Both are retrieved via
System.getProperties(). So as to which takes precedence over the other,
probably depends on the JVM.
Anyway, if im not mistaken, the proper
It is a rhetorical question - meaning that it is impossible to build
such a system, thus Maven does not support it :)
A
franz see wrote:
Good day to you, Andy,
I'm not sure if any are build at all, that's because your whole build will
fail.
Cheers,
Franz
Andrew Williams-5 wrote:
If t
i don't know if it already exists or , but it shouldn't be difficult to
write such a mojo...
On 11/9/06, Arnaud Bailly <[EMAIL PROTECTED]> wrote:
Anyone ?
Maybe some explanations would help:
Project layout:
src/main/resources/File1:
menuen til højre finder du en oversigt over de emner, vi ha
Good day to you, Andy,
I'm not sure if any are build at all, that's because your whole build will
fail.
Cheers,
Franz
Andrew Williams-5 wrote:
>
> If two projects depend on each other which gets built first?
> In this situation either one must be optional or they must be in the
> same artif
> Steinar Bang <[EMAIL PROTECTED]>:
[snip!]
>> But I still got the same error message when doing "mvn install".
> That's because "mvn dependency:copy-dependencies" pulled in the
> dependency-maven-plugin from org.codehaus.mojo, and not the
> maven-dependency-plugin from apache.
> This FAQ en
Hello,
I made a simple test with Eclipse just now.
Eclipse doesn't allow project dependency cycle.
Then I think Maven does the same.
Assumes project A depends on project B, then B must produces artifact and
installs the artifact to repository firstly, then A could depend on it.
But B depends on A
Good day to you, Sebastiaen,
I don't think there's a documentation about it. But you can check out the
code at [1]. Or rather, checkout the modello descriptor (maven.mdo).
Maven uses modello (a codehaus project...see [2]) in several places, one of
which is the maven-model. The modello descripto
If two projects depend on each other which gets built first?
In this situation either one must be optional or they must be in the
same artifact.
Andy
franz see wrote:
Good day to you Sha Jiang,
Maven can not handle cyclic dependencies. It will give you a cyclic
dependency error
Cheers,
Fran
Good day to you Sha Jiang,
Maven can not handle cyclic dependencies. It will give you a cyclic
dependency error
Cheers,
Franz
jiangshachina wrote:
>
> Hello guys,
> I suddenly have a virtual case just in mind.
> There are two projects, A and B, each of them depends on the other one.
> How do
> Steinar Bang <[EMAIL PROTECTED]>:
> I have trouble getting it to work.
> I tried using it by putting
>
> ...
>
> ...
>
> org.apache.maven.plugins
> maven-dependency-plugin
[snip!]
> into the top level pom.xml file. That gave me the following error
>
On a different note, what execution phase are you executing the
weblogic:appc? I'm doing it in a pom which first generate sources using
XMLbeans, compiles some aspects, create ejb-jar, ejb-client-jar and then run
weblogic:appc which is in the package phase. The problem is, when appc is
started, it
> Steinar Bang <[EMAIL PROTECTED]>:
> "Tom Huybrechts" <[EMAIL PROTECTED]>:
>> The maven dependency plugin is your friend:
>> http://maven.apache.org/plugins/maven-dependency-plugin/resolve-mojo.html
> Hm... interesting. This URL was more clarifying for me:
> http://maven.apache.or
maven-antrun-plugin
1.0
package
http://my.company.com";
ejbJar="${basedir}/path-to-ejb-jar/your-ejb.jar"
includeEJBs="service name" serviceName="service name"
There is nothing new on mvn -X console when the big pause happens. Its just
the normal debug statements like
[DEBUG] adding some-file ...
Big Pause here -- The last file to be added is are the pom.xml file
[DEBUG] preparing weblogic:appc
Sebastien Brunot wrote:
>
>
> On my side, I di
Hello guys,
I suddenly have a virtual case just in mind.
There are two projects, A and B, each of them depends on the other one.
How do Maven to deal with the dependency cycle?
a cup of Java, cheers!
Sha Jiang
--
View this message in context:
http://www.nabble.com/Dependency-cycle--tf2606748s17
Hi,
Where can i find reference documentation regarding the mapping of maven
model object into XML (for mojo parameters) ?
Thanks for your help,
Sebastien
Hi,
Thanks for the note, I tried this but still don't have any luck, for
example, I'm using the convention main/src/java and main/src/test for my
source trees, so adding an src/aspectj folder doesn't really fit in, if I
add it to main/src/aspectj, I get the same problem (and just for
completness,
On my side, I did not observe substantial timing differences adding classpath
entries (automatically regarding the dependencies or "manualy" providing my own
manifest.mf file) to the EJB jar. Perhaps you could send the output of mvn -X
package to the list as an attached file ?
Sebastien
-
Hi Alexander,
I think site aggregation isn't supported yet.
Dawn
Morgovsky, Alexander (US - Glen Mills) wrote:
>
> I have a parent POM which has two modules. Module A's sites get
> deployed to host/A/. Module B's sites get deployed to host/B/. What do
> I need to do in the parent POM so th
84 matches
Mail list logo