Is it possible to configure a plugin via code inside another plugin
where the plugin being configured executes later in the lifecycle?
Specifically I have a plugin that generates a bunch of source code, and
based on its output it needs to configure the manifest of the jar that
will be created.
Is it possible to configure a plugin via code inside another plugin?
Specifically I have a plugin that generates a bunch of source code, and
based on its output it needs to configure the manifest of the jar that
will be created. Thus my custom plugin basically needs to configure the
Looking at the ClearCase provider it doesn't implement the method:
AddScmResult add( ScmRepository, ScmFileSet, CommandParameters )
Is there any particular reason for this since elsewhere there is a
ClearCaseAddCommand class that appears to implement the logic to do the
add?
Do I just
Hrm, the remove command doesn't exist either.
MAR
-Original Message-
From: Russell, Mark [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 29, 2006 10:38 AM
To: Maven Users List
Subject: ClearCase provider doesn't implement add?
Looking at the ClearCase provider it doesn't implement
it to a phase when you call it in the
commandline.
The pom fragment doesn't look wrong at all. There must be something
wrong
in the code itself.
Cheers,
Nap
On 6/28/06, Russell, Mark [EMAIL PROTECTED] wrote:
I have a plugin that I will generally call directly from the
commandline
(though I don't
as well, and thus the plugin goal executes once for
each project (thus the 3 times)
Is there any way around this? IE prevent the child projects from
knowing anything about the plugin?
MAR
-Original Message-
From: Russell, Mark [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 28, 2006 8:52
are just trying to configure your plugin but will execute it by hand
via command-line, you want to use pluginManagement, not plugins.
-Original Message-
From: Russell, Mark [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 28, 2006 10:02 AM
To: Maven Users List
Subject: RE: Plugin
get this. I know maven looks for poms in the repositories, but
if cannot find one, it assumes a default pom and won't fail. So I don't
think you need a new repository handler for that.
What seems to be the problem?
Russell, Mark wrote:
Here is my scenario...
I'm in the process
I have a plugin that I will generally call directly from the commandline
(though I don't want to preclude putting it in the lifecycle).
Currently this plugin is configured inside a pom project (ie the project
itself uses pom for the packaging)
When I invoke the plugin from the commandline it
Here is my scenario...
I'm in the process of creating a new project (with some specialized
plugins). This new project needs to fetch some jars create in-house
from our existing repository which is similar in structure to maven 1.x
repositories (the structure is from the maven 1 alpha days).
:[EMAIL PROTECTED] On Behalf Of Carlos
Sanchez
Sent: Monday, June 26, 2006 3:21 PM
To: Maven Users List
Subject: Re: Custom Repository Handler?
Yep, implement a new RepositoryLayout and put it in the M2_HOME/lib
Check the LegacyRepositoryLayout
On 6/26/06, Russell, Mark [EMAIL PROTECTED] wrote:
Here
Someone else may correct me if I'm wrong, but I believe that plugin
dependencies are retrieved from the plugin repository which is a
different section in the pom. At least this looks like the behavior that
I have seen.
So you might try specifying a plugin repository as well that points to
your
Is it possible to define the location of the local repository in the
pom.xml (not the settings.xml)?
I'm pretty sure it was possible to do something similar with m1, but I
don't currently see a way to do it for m2
Thanks,
Mark Russell
- -Dmaven.repo.local=/path/to/repo. Putting the local repository in the
POM would break portability for that project. If, for example, I defined
the local repository as '/unix/local/repository/path' and you're on
Windows (or worse, vice versa), the build would break.
- -j
Russell, Mark wrote
maven-proxy.
- Brett
On 10/14/05, Arik Kfir [EMAIL PROTECTED] wrote:
Yes we need this too, for offline sites.
The way we did this for m1 is to hack the 'maven.jar' file in the
installation, and edit the 'default.properties' file. Is there a
better way?
On 10/14/05, Russell, Mark
Is it possible to configure a project (pom.xml) to use a repository
located on disk, without the build copying jars from that repository to
the local repository in the users profile?
Additionally, can this be done without pointing the pom.xml to the
local repository in the users profile.
Anyone have an idea on this?
I really do need this for a project I'm working on.
MAR
-Original Message-
From: Russell, Mark [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 12, 2005 11:41 AM
To: Maven Users List
Subject: RE: Using repositories defined in a profile... question
Is it possible, either in the pom.xml or the settings.xml, to tell maven
not to use the ibiblio repository?
Prefer a method of doing this in the pom.xml, but would consider one in
the settings.xml.
MAR
wrote:
Mark,
Try adding this:
activeProfiles
activeProfilemaster_build/activeProfile
/activeProfiles
-Original Message-
From: Russell, Mark [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 11, 2005 6:28 PM
To: Maven Users List
Subject: Using repositories defined
A very good sample project showing how this is done can be found at
http://jira.codehaus.org/browse/MNG-743
Basically you setup the project dependencies in the
dependencyManagement section and then reference those dependencies in
the child projects (minus the version number as it will get that
,
john
Russell, Mark wrote:
| I have a pom with a profile defined in that specifies a local
| repository, and disables the central repo. How can I get m2 to honor
| the profile? No matter what I try it seems to ignore the profile and
| goes and uses the central repo and ignores the local repository
Beyond
http://people.apache.org/~jvanzyl/maven2/guides/mini/guide-manifest.html
are there any docs for setting up the manifest of the jar?
I have a case where the resulting manifest needs to look similar to:
=MANIFEST.MF
Was the activationFile tag (part of activation) renamed? If so
where might I find out what it was renamed to?
MAR
Never mind...
The nice long example at
http://maven.apache.org/maven2/maven-model/maven.html shows
activationFile but the actual docs for activation show file as the
sub tag.
MAR
-Original Message-
From: Russell, Mark [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 11, 2005 3:15 PM
I have a pom with a profile defined in that specifies a local
repository, and disables the central repo. How can I get m2 to honor
the profile? No matter what I try it seems to ignore the profile and
goes and uses the central repo and ignores the local repository.
I have even tried passing -P
Whenever I try to use repositoryPolicy in a pom.xml I get the
following:
[INFO] Reason: Failed to parse model from file
'C:\DEV\MAVEN\fx_toolkit\pom.xml'. Error: 'Unrecognised tag:
'repositoryPolicy' (position: START_TAG seen ...repository\n
repositoryPolicy... @34:25) '
Was this tag maybe just
Users List
Subject: Re: Configuring pom.xml to use a local repo (rather than a
remote http repo) (m2)
Relative paths won't work - try including ${basedir} in the repository
URL.
- Brett
On 10/8/05, Russell, Mark [EMAIL PROTECTED] wrote:
A little further info...
When I try to use a local repo
dependency version in dependencyManagement section
in the parent, and then define the dependencies the subprojects use in
their pom.xml files, but dont' specify the version. This will pull
the verison from the dependencyManagement section.
-Stephen
On 10/6/05, Russell, Mark [EMAIL PROTECTED] wrote
Has anyone setup a repository for maven 2 containing the JWSDP stuff?
I'm trying to figure out how best to lay it out, and determine if I have
to append version numbers to all of the jar's in order for maven to pick
them up.
Additionally I'm curious about maybe setting up a .pom so that I only
repository.
What you need to do is to install them in your local repository (see
http://maven.apache.org/maven2/general.html#importing-jars for storing
external JARs in your local repo), or, setup a private remote
repository where you can host any JARs you want.
Good luck! :)
On 10/7/05, Russell, Mark
stuff)
MAR
-Original Message-
From: Mark Hobson [mailto:[EMAIL PROTECTED]
Sent: Friday, October 07, 2005 11:26 AM
To: Maven Users List
Subject: Re: JWSDP Maven 2 ?
On 07/10/05, Russell, Mark [EMAIL PROTECTED] wrote:
I knew it wouldn't/couldn't be in the central repo. Was more
the javax.xml groups for the individual artifacts, but my
invented 'top level'
pom that includes the artifacts as dependencies is in the jwsdp
group. After all
some of those jars included in the jwsdp download aren't specific to
jwsdp.
AW
On 7 Oct 2005, at 20:28, Russell, Mark wrote
At one point with maven 1.0 you could have the repository local and it
would fetch from there. How can you setup the pom.xml in maven 2 to do
something similar?
As an example, imagine the following directory structure:
fx_toolkit
pom.xml
projectA
pom.xml
projectB
pom.xml
fx_3p
the .pom for commons-logging
because it also attempts to get the dependencies listed in the .pom.
Am I doing something wrong or did I simply encounter a defect in maven
that hasn't been fixed yet?
MAR
-Original Message-
From: Russell, Mark [mailto:[EMAIL PROTECTED]
Sent: Friday, October 07
Does someone have a document/article on how to do this with Maven 2.0?
So far my flailing around hasn't got me anywhere.
If nothing else does someone have an example? I found this
(http://www.informit.com/articles/article.asp?p=411571) article but it
was for 1.0 and it doesn't seem to transfer
35 matches
Mail list logo