Hi
Use the MavenEmbedder to this.
Hermod
-Original Message-
From: Matt Wheeler [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 12, 2006 5:00 PM
To: users@maven.apache.org
Subject: Calling mvn commands from Java
I was wondering if there is a Java API for Maven, from which to call
Check here for the API:
http://maven.apache.org/guides/mini/guide-embedding-m2.html
I got this from a search, I still don't know what all jars I need to have in
the classpath to use this...
- Subhash.
On 9/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi
Use the MavenEmbedder to this.
maven embedder must be very popular, one question, 5 answers pointing to the
same reference; -)
On 9/12/06, Subhash Chandran [EMAIL PROTECTED] wrote:
Check here for the API:
http://maven.apache.org/guides/mini/guide-embedding-m2.html
I got this from a search, I still don't know what all jars
Hi
Just add the dependency on MavenEmbedder in your pom, and then Maven will
handle the rest for you through transitive dependencies.
Hermod
-Original Message-
From: Subhash Chandran [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 13, 2006 8:59 AM
To: Maven Users List
Subject: Re:
Hello,
I'd like to use confluence syntax for my project documentation, but
doesn't find any doc for configuring doxia.
I tried addind a stc/site/confluence/test.confluence file, but it is not
translated.
Can someone give me some help ?
Nico.
This message contains information that may
and e.jar. I tried to create a master script in A with modules for b
and e and then master scripts in B and E with modules of c,d and f,g,h,
respectively. However, C, D, and F,G,H don't have targets, so I wasn't
sure how to proceed at that level. Thanks for reading through this.
You should
Hi again!
When I'm using the ear-plugin, the same issue as with the ejb-plugin arises.
It doesn't have support for the classifier tag. In my webapp, I configure my
profile like this:
plugins
plugin
artifactIdmaven-war-plugin/artifactId
executions
execution
I have attached a patch to this jira issue that solve the problem is somebody
else need this functionality.
Seb
_Seb_ wrote:
Here is a JIRA issue about this problem : does somebody knows a workaround
? This bug prevent us for using maven to do a release, we would like to
have some
This problem is due to some limitation in the core of maven. Here is a jira
about this :
http://jira.codehaus.org/browse/MNG-2398
I submitted a patch with this issue that solve the problem. There is some
limitation with test jars. You need to define these jars with classifier
tests and not
Hi Emmanuel,
I am trying to see if there is any activity what so ever, be it cvs or
continuum. I am having a problem with constant timeouts and am trying to
indentify any possible errors.
Regards,
Garrick
-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sent: 12
John?
On 31/08/06, Brett Porter [EMAIL PROTECTED] wrote:
was this behaviour only in previous snapshots of the current release,
or was it that way in the previous release?
On 31/08/06, John Casey [EMAIL PROTECTED] wrote:
Hi everyone,
I just wanted to send a quick note to let you know that
I don't know if it helps you with your problem, but I will post my Qalab
configuration from my POM. Maybe you can compare it and see what the
problem might be:
build
plugins
plugin
groupIdnet.objectlab/groupId
Hi,
I added a Maven2 project with several moduels, and the M2 POM Url is right.
But an error thrown
Could not download file:/E:/path/pom.xml:
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\continuum\path\pom.xml (cann't find the
specific system path)
But I'm so puzzled that I added another simple Maven2
Emmanuel Venisse wrote:
thanks a lot for your answer. A ClearCase dynamic view looks like a
normal
filesystem, so I think scm-local in principle is a fine solution. I think
there wouldn't be much what a dedicated dynamic-view support in the
Clearcase SCM provider could add.
Maybe it
I still cant find any real clues about this. I've found some other instances
of this IAE and the error message on standard public dependencies that have
been treated as bugs and fixed.
I'm still suspicious that the dependency in question is in the maven 1
repository, and hence there isn't a v4
Nicolas De Loof [EMAIL PROTECTED] writes:
Hello,
I'd like to use confluence syntax for my project documentation, but
doesn't find any doc for configuring doxia.
I tried addind a stc/site/confluence/test.confluence file, but it is
not translated.
Hello,
Normally, you should use the
Hello,
Does anybody has experience in literate programming with maven ? Some
experimental plugin for transforming input into site sources and code
sources ?
Thx for pointers,
--
OQube software engineering \ génie logiciel
Arnaud Bailly, Dr.
\web http://www.oqube.com
Hi
How can I trigger that from a set of profiles exactly one is active?
One of the should be active by default unless another one is specified
via a -D property...
Examples:
- per default we want jdk 1.4 compiler settings, unless a property is
given on the command line to change to 1.5
- per
Thanks a lot !
It makes it work ... but I get the bad suprise that smileys are not
converted in the rendered HTML... I use them a lot in my doc to document
implemented (/), in progess (+) or planned (i) features.
I'll have to change my documentation strategy.
Arnaud Bailly a écrit :
Orford, Ian-2 wrote:
I still cant find any real clues about this. I've found some other
instances
of this IAE and the error message on standard public dependencies that
have
been treated as bugs and fixed.
I'm still suspicious that the dependency in question is in the maven 1
Hi
Looking at the errormessage something strikes me:
java.lang.IllegalArgumentException: Can't find a valid Maven project in the
repository for the artifact [drkw-cpds-proxy-common:pr oxy-common:4.01].
Note the space between pr and oxy - Is it so in your pom or is this just the
mail
Hello,
I'm trying to write a plugin (maven-jet-compiler) that uses some
eclipse jars. As they are not available on ibiblio, I first tried to use
a systemPath to point ot my {eclipse.home} :
dependency
groupIdorg.eclipse.core/groupId
artifactIdruntime/artifactId
Hi,
The build report from continuum contains url to the report, for example
Online report :
http://localhost:8080/continuum/servlet/continuum/target/ProjectBuild.vm
/view/ProjectBuild/id/1/buildId/248
Is there any setting so that the url contains host machine name instead
of localhost?
On 9/13/06, Kapil Gupta [EMAIL PROTECTED] wrote:
Hi,
The build report from continuum contains url to the report, for example
Online report :
http://localhost:8080/continuum/servlet/continuum/target/ProjectBuild.vm
/view/ProjectBuild/id/1/buildId/248
Is there any setting so that the url
Hi,
Does anyboy know http://www.maven.org/ ?
I just came across this site, it has nothing but a donation link on
it, no description what it should be and who is responsible for it.
Are they in any way connected to maven, or are they trying to get
donations which are orginally meant to go to the
This worked.
Thanks very much.
Try deleting those artifacts from your repo and let maven download them
again :-)
The information contained herein is confidential and is intended solely for the
addressee. Access
On 13.09.2006, at 13:33, Henning Sprang wrote:
Hi,
Does anyboy know http://www.maven.org/ ?
I just came across this site, it has nothing but a donation link on
it, no description what it should be and who is responsible for it.
Are they in any way connected to maven, or are they trying to get
Are you sure it isn't possible to checkout sources in a specific folder with
cleartool?
Emmanuel
ArneD a écrit :
Emmanuel Venisse wrote:
thanks a lot for your answer. A ClearCase dynamic view looks like a
normal
filesystem, so I think scm-local in principle is a fine solution. I think
No, it isn't possible because for the moment, we don't know if a project site
exist.
In a future version, you'll can customize the mail template.
Emmanuel
Jeff Mutonho a écrit :
Is there a way to include in the build report e-mail a line that says :
Project website
On 9/13/06, Emmanuel Venisse [EMAIL PROTECTED] wrote:
No, it isn't possible because for the moment, we don't know if a project
site exist.
In a future version, you'll can customize the mail template.
Emmanuel
:) .My question should have been , Is it possible to customize the mail
Hi,
I have an EJB with some dependencies that are not included in the EJB
jar file because I use the maven-ejb-plugin. When I generate the ear
with the maven-ear-plugin these dependencies are in the ear file but a
class not found exception is thrown at runtime. How can I say to maven
to
The mail template is in continuum-core jar, it's a velocity template. You'll probably won't have all
infos you need about the project site location.
Emmanuel
Jeff Mutonho a écrit :
On 9/13/06, Emmanuel Venisse [EMAIL PROTECTED] wrote:
No, it isn't possible because for the moment, we don't
On 9/13/06, Emmanuel Venisse [EMAIL PROTECTED] wrote:
The mail template is in continuum-core jar, it's a velocity template.
You'll probably won't have all
infos you need about the project site location.
Emmanuel
I know where I'm deploying to (as I do this with maven's mvn site-deploy).So
I
Jeff Mutonho a écrit :
On 9/13/06, Emmanuel Venisse [EMAIL PROTECTED] wrote:
The mail template is in continuum-core jar, it's a velocity template.
You'll probably won't have all
infos you need about the project site location.
Emmanuel
I know where I'm deploying to (as I do this with
On 9/13/06, Emmanuel Venisse [EMAIL PROTECTED] wrote:
I'm sure you know ;)
The pb is that the template is totally independent of projects, so,
without the project site
location in the context, you can't print the correct one in the template
unless you have only one
project in your continuum
I am experiencing a similar problem when using entity beans in the form of
annotated classes: the tests run fine under Eclipse but fail under Maven
with the same Unknown entity message. A quick look at the Hibernate logs
shows that the entities are recognized under Eclipse but not under Maven.
I've been looking at Maven 2 as a replacement to a current ANT-based build
system and I'm looking for ideas on how I might be able to translate one of
the features it currently provides. The code base supports multiple J2EE
containers. Sometimes we have to build two different versions of the
Ronald, I have a very similar setup in my projects where ANT was used based
on an if clause. In fact I wound up actually using ant-contrib to give me
if/else type logic to make the builds more readable.
Have you looked into Maven2 style PROFILES? A profile allows you to define
a number of
On 13 Sep 06, at 1:33 PM 13 Sep 06, Henning Sprang wrote:
Hi,
Does anyboy know http://www.maven.org/ ?
It's where the central repository is now. I'll put more of a
description there. Thanks for watching out for us but that's a
friendly site :-)
I just came across this site, it has
Mark Crocker wrote:
As far as I can tell, Maven is not compatible with the Eclipse ALF project
(http://www.eclipse.org/alf/). Is that correct? If so, are there any
plans to integrate Maven with ALF or provide an ALF/Maven plugin?
I suppose that I should have provided a definition.
Mark Crocker wrote:
Mark Crocker wrote:
As far as I can tell, Maven is not compatible with the Eclipse ALF
project
(http://www.eclipse.org/alf/).
I suppose that I should have provided a definition. ALF is the Eclipse
Application Lifecycle Framework.
Sorry for the repost
Hi,
I've been trying to setup continuum to build my maven 2 project from
clearcase. It took me a while to work out how get it working and I'm
not quite there yet. The last hurdle is the error Could not find Maven
project descriptor which I believe is because continuum in looking for
a pom.xml
The Simian report I generated recently with MAVEN 2 shows the following
numbers:
Similarity threshold (lines) 6
Total number of duplicate lines 53472
Total number of duplicate blocks 1574
Total number of files with duplicates 212
Total number of processed lines 41026
Total number of processed
Ah! Got it, it was obvious after all.
I edited the build definition in the continuum web interface and changed
the POM filename to myVob\myProject\src\pom.xml
Sorry to bother you.
Continuum looks great by the way! :)
On Wed, 13 Sep 2006 15:23:35 +0100, [EMAIL PROTECTED] said:
Hi,
I've
Please address to the maven group rather thru me directlty.
Your configuration can be shorter with you are using MSVC6EnvFactory.
There is a fix in latest SVN to support this feature for both resource and
message compiler
check out the snapshot
You shoule move your resource file inside
Hello all,
How does Maven resolve the lifecycle of a project when you have multiple
plugins listed in your build section that each have a components.xml for the
packaging type of the project being built? If there is no overlap between
phases in the lifecycle is it possible to have one plugin
I did try cargo:undeploy. undeploy works fine. But
when I use deploy again, it fails with an error,
something like ..Application with that name already
exists..
thanks
--Prashanth
--- Wayne Fay [EMAIL PROTECTED] wrote:
Did you try cargo:undeploy? I don't currently use
Cargo, but I'd
expect
that was really helpful. thanks!
On 6/6/06, John Casey [EMAIL PROTECTED] wrote:
mvn help:describe -Dplugin=plugin-prefix -Dfull=true
or
mvn help:describe
-Dplugin=plugin-groupId:plugin-artifactId[:plugin-version]
-Dfull=true
--
http://valerioschiavoni.blogspot.com
Well, as a shameless self-promotion, I did write an article about this
recently (mostly about the concept, but it may help... I could only have
2500 words!)
http://www.devx.com/Java/Article/32386
Eric
On 9/13/06, Ronald Kurr [EMAIL PROTECTED] wrote:
I've been looking at Maven 2 as a
Emmanuel Venisse wrote:
Are you sure it isn't possible to checkout sources in a specific folder
with cleartool?
It is possible with snapshot views. My ClearCase know-how is limited, but I
am quite sure it is not possible with dynamic views.
Do you think the suggested enhancement for
Hi
``JAVAWUG'' (The Java Web User Group) is holding the twenty second
Birds-of-Feather 22 at the Sun's London Office on Wednesday,
20th September 2006 from 18:30 onwards.
For more information
http://www.jroller.com/page/javawug?entry=announcement_javabof_xxii_jaso
n_van
The confirmed
On Wed, Sep 13, 2006 at 11:21:02AM -0500, Eric Redmond spake thus:
Well, as a shameless self-promotion, I did write an article about this
recently (mostly about the concept, but it may help... I could only have
2500 words!)
http://www.devx.com/Java/Article/32386
Eric
I, for one, do not
On Wed, Sep 13, 2006 at 10:14:21AM -0700, Carlos Sanchez spake thus:
There's a list here
http://maven.apache.org/articles.html
Hi Carlos,
I'm aware of the list on the maven site, but I only check it when I find
myself rummaging around there. On the other hand, I sit in my email
client all day,
With Maven 1 I was able to create a Macintosh application using Ant
tasks in my maven.xml. A Macintosh application is particular
directory structure that is blessed by setting an attribute on the
directory. I've been able to duplicate everything in Maven2 except
for the copying of the
I've not been able to find out the cause of this issue, but under Maven
1.0.2 and a project set up as a master project and several subprojects
built with the multiproject plugin, the subprojects do not include all
the dependencies specified in project.xml. Specifically, they are
missing in the
There's a list here
http://maven.apache.org/articles.html
On 9/13/06, Alan D. Salewski [EMAIL PROTECTED] wrote:
On Wed, Sep 13, 2006 at 11:21:02AM -0500, Eric Redmond spake thus:
Well, as a shameless self-promotion, I did write an article about this
recently (mostly about the concept, but it
Hi all
to use maven-proxy with maven 2, should I configure the maven2 repository?
the original configuration in the maven-proxy.properties points to
http://www.ibiblio.org/maven:
#www.ibiblio.org
repo.www-ibiblio-org.url=http://www.ibiblio.org/maven
Plugins under o.a.m.p are generally named maven-xyz-plugin.
Other plugins are generally named xyz-maven-plugin.
This is what you want:
groupIdorg.codehaus.mojo/groupId
artifactIddependency-maven-plugin/artifactId
Taken from:
I need to determine the dependencies of each dependency in my project. I
need to do some weird packaging and I need to process the dependencies of
each dependency listed in the project. I know that if I use
project.getArtifacts(), I will get all of the dependencies for a project
(including
Totally...
However, I think I might check out the tag, edit the pom then, tag the working
copy.
D-
-Original Message-
From: Yann Le Du [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 12, 2006 5:11 PM
To: Maven Users List
Subject: Re: releasing a tag
Maybe you could :
-
Jeff,
After using the new repository, my test is running fine. Thank you.
Sincerely,
Ming Cheung
WebSphere Web Services Developer
Address: IBM, Inc. 11501 Burnet Road, Austin, TX 78758
Tie Line: 678-0733
Email: [EMAIL PROTECTED]
Jeff Jensen [EMAIL PROTECTED]
Jeff Jensen [EMAIL
If you are define a plugin in your pom that isnt binded to a lifecyle
phase, and then add executions to the plugin.
When will this execute?
I was thinking that it would be great if you can define 2 executions
with separate configs and then somehow instruct the commandline to run
the
What kink of problem do you see?
An exception comes up, that there is no setter for option in Native
Sources.
Regards,
Thorsten
-Ursprüngliche Nachricht-
Von: dan tran [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 13. September 2006 17:32
An: Düvelmeyer, Thorsten; Maven Users List
please post your pom + -X log
Thanks
-Dan
On 9/13/06, Thorsten Düvelmeyer [EMAIL PROTECTED] wrote:
What kink of problem do you see?
An exception comes up, that there is no setter for option in Native
Sources.
Regards,
Thorsten
-Ursprüngliche Nachricht-
Von: dan tran
move options outside of source
http://mojo.codehaus.org/maven-native/native-maven-plugin/resource-compile-mojo.html
-Dan
On 9/13/06, dan tran [EMAIL PROTECTED] wrote:
please post your pom + -X log
Thanks
-Dan
On 9/13/06, Thorsten Düvelmeyer [EMAIL PROTECTED] wrote:
What kink of
Do you have similar local repositories too? I'd check the your
${user.dir}/.m2/repository/org/apache/maven/plugins/maven-ear-plugin
directories for differences (specifically the pom and maven metadata files).
If they are similar, then check maven-archiver and so on until you find a
difference.
Thanks, that helped.
I notice that you have the checkstyle merge goal changed to the pre-site
phase. How do you ensure that checkstyle has run at that point. I have a
bootstrapping issue when I use that setting where qalab can't find the
checkstyle results file. I changed mine to post-site.
I want to add the DOCTYPE tag to our xdocs so we can use a smart editor to
create these documents. But, I don't want the url to point to
http://maven.apache.org/dtd/xdoc_1_0.dtd;. There is a significant delay
while maven site tries to validate these xdocs with the DOCTYPE tag.
!DOCTYPE
I checked it today, does not work.
I can use properties in the same pom.xml file, but not in the assembly
descriptor.
What is the problem?
dan tran wrote:
yes, assembly descriptor supports interpolation.
-D
On 6/20/06, Claus Myglegaard Vagner [EMAIL PROTECTED] wrote:
Hi,
I have
Please make sure this issue is listed in JIRA, under:
http://jira.codehaus.org/browse/MASSEMBLY
and I'll try to take a look at it before the 2.2 release. I agree that this
would be useful, though...fwiw.
-john
On 9/13/06, leonid_ilyevsky [EMAIL PROTECTED] wrote:
I checked it today, does
Currently, Maven doesn't offer much support for traversing sub-graphs of
dependencies. If you cannot simply subtract the direct dependency artifacts
from the project.getArtifacts(), then you'll have to get involved with the
ArtifactResolver from maven-artifact/maven-artifact-manager, and track
I have two projects: commons and app.
Commons is a parent pom for all the commons
subprojects. At the end it creates about 10 jars.
App is dependent on these 10.
When working, we modify both code (commons and app).
So we need to use dependency on snapshots. However
when releasing, we can not
If your smart editor supports the use of
com.sun.resolver.tools.CatalogResolver
use rewriteURI and rewriteSystem mechanism to resolve the http DTD
references to your local copies.
!-- catalog.xml --
?xml version=1.0 ?
catalog xmlns=urn:oasis:names:tc:entity:xmlns:xml:catalog
[snip]
!-- Use
Can you send us a little test case please ?
Arnaud
On 9/13/06, Barrow, Zach [EMAIL PROTECTED] wrote:
I've not been able to find out the cause of this issue, but under Maven
1.0.2 and a project set up as a master project and several subprojects
built with the multiproject plugin, the
I recently modified the maven-war-plugin source to accomodate some changes
that I needed to support axis2. I submitted this code for inclusion into
the next version of the plugin, but until that time I need to distribute the
plugin to everyone on my development team. I can install it into the
I *think* the sources/ tag was in the 2.1 release. I'm guessing I'll have
to put support back in for backward compat...but I need to check out when
this element was added to the model first.
As for the .svn files, I believe this is a shortcoming of the underlying
scanner implementation's default
Ohh, I just observed that even in the commons project,
if one jar had a dependency on another jar after the
release now they are including version 1.0, instead of
1.1-snapshot for their dependency. Will I have to go
through all pom-s and update them manually? That's
going to hurt.
Ex:
A/pom.xml -
The standard pattern there is to have a useDefaultExcludes / tag
that is by default true. If you turn it off, you have to exclude all
the ones you don't want.
I think it needs to do that, especially if it did in 2.1. Backwards
compat is key.
- Brett
On 14/09/06, John Casey [EMAIL PROTECTED]
My project was using a modified version of the war plugin for a while. I
decided that the best solution was to make the plugin another module in
our project. This solution seemed easier than managing a release process
for the modified plugin separately, or requiring team members to do
Just re-running it now: I can see the Surefire report running (i.e.,
running my tests), as well as the Corbetura report. I think Javadoc is
smart enough not to run.
On 9/4/06, Brett Porter [EMAIL PROTECTED] wrote:
So it doesn't work at all under site? That's a bug report, as it
should and I
On 9/13/06, Morgovsky, Alexander (US - Glen Mills) [EMAIL PROTECTED]
wrote:
Thanks. What I am looking for is a way to iterate over the files in a
directory. For example, if I have the structure:
A
-src
-A.java
-B.java
I had install the plugin 1.0-SNAPSHOT in my own repository and
when I cleared my .m2 directory, and try to run the plugin,
it goes to the central site instead, eventhough I had set the
pluginRepositories
in my setting.xml of M2_HOME/conf.
Any idea?
On 9/5/06, Carlos Sanchez [EMAIL PROTECTED]
My IT department just started requiring my repository to use https.
However they didnt install a signed cert.
Maven is now failing with the error: Error transferring file
Could this be because the cert isnt signed?
Is there anything else that I need to consider when using https for the
Not sure if this is the recommended approach but I got it to work by using
scp://
-Original Message-
From: Douglas Ferguson
Sent: Wednesday, September 13, 2006 10:51 PM
To: users
Subject: maven repositories https
My IT department just started requiring my repository to use https.
84 matches
Mail list logo