Hi -
I'm doing some processing with a custom mojo that relies on the
dependency information to build an artifact, but the order of
processing is important. Because MavenProject.getArtifacts() returns a
set, this is unordered with respect to the pom.xml; I was wondering if
it's possible to add
the ${project.artifacts}. This is how the assembly plugin
works.
- Brett
On 11/14/05, Nigel Magnay [EMAIL PROTECTED] wrote:
The artifact being generated is effectively a merge of several other
artifacts of the same type - a WAR file. It's important to get the
ordering right as the overwriting precidence
A bit further into my experimenting with generating an m2 plugin - I
have successfully created my mojo and bound it to the bit of lifecycle
to do with packaging. My 'client' project has
packaginguberwar/packaging
To get hte right binding. However - because of this, the install mojo
assumes the
the relevance of the ordering is? There might be
something already available.
The suggestion of this tag is tricky, as how does dependencies brought
in transitively get ordered?
- Brett
On 11/14/05, Nigel Magnay [EMAIL PROTECTED] wrote:
Hi -
I'm doing some processing with a custom mojo
Hello - I have been trying to follow the configuration for
ArtifactHandlers - I have in my components.xml
component
roleorg.apache.maven.artifact.handler.ArtifactHandler/role
role-hintuberwar/role-hint
as your
packaging...
- -j
Nigel Magnay wrote:
| Hello - I have been trying to follow the configuration for
| ArtifactHandlers - I have in my components.xml
|
| component
| roleorg.apache.maven.artifact.handler.ArtifactHandler/role
| role-hintuberwar/role-hint
I have a project using the groovy maven plugin to do some scripting.
I can get access to my project, and its dependencies from a project
variable.
I can get access to the instance of the local repository by passing
${localRepository} in a property
What I want to do is, for a dependency, find
I could have sworn I'd read somewhere that it was possible to use dependency
versions of LATEST, RELEASE and SNAPSHOT in a pom dependency to not have to
specify which particular version I needed.
Did I just dream that? Or does it not apply to dependencies?
Hello
I have a war project (actually, a cargo uberwar project), which I want to
analyse using dependency:resolve / dependency:tree (and maybe even through
site reporting) in order to find dependency conflicts.
However - the dependency plugin does not show the jar files that are a part
of the
] commons-collections:commons-collections:jar:3.1:compile
Is this also the reason why my dependency convergence report looks OK, when
really there's a mismatch ?
On 26/10/2007, Nigel Magnay [EMAIL PROTECTED] wrote:
Hello
I have a war project (actually, a cargo uberwar project), which
the 3.1 set. Use mvn -X to
see the actual resolution, the tree mojo is still in progress.
I don't understand your question about the war files. Are you expecting
to see the dependencies inside the war or OF the war?
-Original Message-
From: Nigel Magnay [mailto:[EMAIL PROTECTED
I have a mojo building with groovy. In my pom I have
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-plugin-plugin/artifactId
version2.3/version
dependencies
dependency
Hi maveneers. I have an interesting problem which I'm not sure how to
solve, and I wonder if anyone else has met this before or has some
good ideas..
We have 2 products; Alpha and Beta, a CommonCode project, and a
SuperPom project (it's actually more complex than that, but this is
just to
be to acheive.
On 11/3/07, Brett Porter [EMAIL PROTECTED] wrote:
Is there a reason to always have common code in snapshot as a
dependency? Could it not be set to the latest release and only updated
when a change from the new one is needed?
- Brett
On 03/11/2007, Nigel Magnay [EMAIL PROTECTED
Hi
I have a big reactor project. In one project, there is a property set as
properties
commons-version2.2.1/commons-version
/properties
and in a later project, it is
properties
commons-version2.2.4-SNAPSHOT/commons-version
/properties
..
build
plugins
good ideas?
On Nov 7, 2007 4:34 PM, Nigel Magnay [EMAIL PROTECTED] wrote:
Hi
I have a big reactor project. In one project, there is a property set as
properties
commons-version2.2.1/commons-version
/properties
and in a later project, it is
properties
commons-version2.2.4-SNAPSHOT
I'd really (really really) try not to mess with the maven versioning - it's
a recipe for having to custom write loads of stuff, and it really is pretty
fundamental to the operation of maven. Without it, I'm not sure there's much
reason to change if it's currently working...
That said... Is there
they don't today)
Nigel Magnay skrev:
I'd really (really really) try not to mess with the maven versioning -
it's
a recipe for having to custom write loads of stuff, and it really is
pretty
fundamental to the operation of maven. Without it, I'm not sure there's
much
reason to change
You can do a jar containing all dependencies with the following descriptor.
However - the excludes doesn't work properly in the assembly plugin, so if
you have dependencies that are signed, you'll have to fix them afterwards
annoyingly.
You can also pack jars into the /lib and use something like
I have a pom.xml with various dependencies included in it.
I want, in the output JAR file, to include a directory that contains a
subsection of the repository from those dependencies.
I can nearly get there, by using the assembly descriptor (at the end), but I
have 2 problems
1) I want to use
Are you using the assembly plugin?
could be *MASSEMBLY-97 http://jira.codehaus.org/browse/MASSEMBLY-97 or
MASSEMBLY-102, *raised way back in May but don't look any closer to being
fixed.
On 04/10/06, SingleShot [EMAIL PROTECTED] wrote:
I have a master POM and many modules. For months we've
Hello listers
I am binding things like ant tasks into the lifecycle by using the
maven-antrun-plugin bound to the package phase.
The ant script usually overwrites the target/blah.jar file with something
new.
This works well, and I get what I expect in the target directory of my
build.
jars in the lib as
suggested in the Maven2 doc (Better Builds with Maven)...this on top of the
ant-plugins?
thanks.
Nigel Magnay [EMAIL PROTECTED] wrote:
Hello listers
I am binding things like ant tasks into the lifecycle by using the
maven-antrun-plugin bound to the package phase.
The ant
I've been trying to get maven(2) to use the eclipse compiler, which is
implied to be possible by fiddling with maven-compiler-plugin and
plexus-compiler.
However, I can't get it to work (in particular, I can't persuade it that the
project is java 1.5, even if I pass the right values in
I think your merge.xml is required to have a context params section
e.g :
webXml
contextParams
strategy name=ChooseByName
default
strategy name=Preserve/
/default
choice name=contextConfigLocation
strategy name=NodeMerge
context-param
In my multiproject, I use commons-lang. In my pom.xml (atend) I have the
dependency set (excluded once to avoid a conflict).
However, the build sometimes fails, but not always, trying to find a class
in commons-lang. Doing a mvn -X shows it isn't present
on the test classpath.
Is there some way
I think this is a bug in surefire. If I run my project with mvn -X I see in
the output :
[DEBUG] Retrieving parent-POM:
org.apache.myfaces.maven:myfaces-master::1.0.2 for project:
org.apache.myfaces.core:myfaces-core-project:pom:1.1. from the repository.
[DEBUG]
, repeat'.
I'll file a JIRA with full -X output; I've been testing with surefire
2.3-SNAPSHOT which may be better. As is always the case with these things,
turning on -X tends to make it work ;-S
On 08/12/06, Wendy Smoak [EMAIL PROTECTED] wrote:
On 12/8/06, Nigel Magnay [EMAIL PROTECTED] wrote
I actually had a related issue - our project is comprised of many jar
and war fragments and, good though the jetty plugin is, it's helpful
when debugging webapps in eclipse when hotswap fails (which is
always), to be able to have it automatically copy changed class files
into the running
I did something simple in .net (mostly because when I go near the
maven codebase, the vast array of poorly documented dependences like
plexus scares me and I don't have the time to figure it all out),
but
That's also what is refraining me ! I love using maven, I think the
people behind it
I've a recent version of archiva in tomcat (windows), and maven 2.0.5 on the
client; I'm having problems doing deploys.
With wagon-1.0-beta-2 it complains of insufficient storage - some files do
deploy however.
On the server logs, I get an error reported:
Unable to service DAV request due to
I'm seeing similar problems - there are artifacts that are in ibiblio that
are not in repo1
I added http://mirrors.ibiblio.org/pub/mirrors/maven2 into my topmost pom,
and most things then worked.
Depressingly, archiva currently refuses to proxy correctly for the above,
and is still failing to
My experience so far:
Archiva : Alpha; doesn't work (random webdav deployment failures), loads of
bugs, low rate of progress. Feels dead.
Proximity : Works; slightly confusing (don't like the separation of
metadata); lots of new releases constantly; hard to configure (hacking
around with spring
I have an annoying problem. I have an artifactory mirror running, and it
seems to be working correctly. I have various mirrors set up, one of which
is for the apache-m2-snapshots. This all works correctly, and files are
getting placed in the right repositories.
However
In my local repo, I'm
symlink usr/share/maven to whichever install you want to use.
On Nov 15, 2007 5:00 PM, Ryan Scott [EMAIL PROTECTED] wrote:
Does anyone know how to fix this? I tried using darwin ports to
upgrade but leopard keeps overlaying the install with 2.0.6 which does
not work for my application. What
Is this going to beta any time soon?
Our artifactory proxy has rotted and started serving 0 byte files
randomly (who knows if it's the underlying repo); I was never that
keen on proximity's 'configure me by hacking spring config xml',
particularly if it's about to be deprecated soon for something
The Mojo Developer Cookbook
(http://docs.codehaus.org/display/MAVENUSER/Mojo+Developer+Cookbook)
is great.
In it, there's a section on Resolving Transitively. This works great
- however, the artifact set that is resolved is based on Maven's idea
of which graph edges ought to be considered for
Hi
I use the standard bit of code to get all the transitively-resolved
artifacts from a project :
Artifact art2 = some artifact in the repository ...
resolver.resolve(art2, remoteRepositories, localRepository);
MavenProject pomProject = mavenProjectBuilder.buildFromRepository(
art2,
2.0.7, with local patches.
Because I've tried about 3 times to get someone to apply a fix for
MNG-3284 (or tell me if the attached patch won't work because of
something non-obvious), and it just never goes anywhere. :-/
On Fri, Mar 7, 2008 at 9:44 PM, Brian E. Fox [EMAIL PROTECTED] wrote:
I get
Not as far as I know. The Hudson CI tool claims to be able to parallel build
in the correct order, but I don't know how good it is at it.
IMHO it'd be a very powerful addition - if you've got something like an
8-core mac, it'd be nice to keep more of it busy. Even farming out builds to
separate
=truebody=true
Thanks a lot
Emerson
On 10/04/07, Nigel Magnay [EMAIL PROTECTED] wrote:
Not as far as I know. The Hudson CI tool claims to be able to parallel
build
in the correct order, but I don't know how good it is at it.
IMHO it'd be a very powerful addition - if you've got something like
I have a project that is buildig in Hudson, that uses the m2 assembly plugin.
In the project pom, it explicitly sets the version of that plugin to 2.1.
It builds correctly from the commandline, and it mostly builds
correctly in hudson, but occasionally (I suspect it might be an update
issue),
I have a multi-module project that works fine for everything, apart from
release:perform.
I think I know why, but I don't know how to fix it. Basically, I have a
project that is defined as packaginguberwar/packaging. This artifact is
built into a .WAR file. The dependency that includes it has
Hi
I've recently switched to using OS X. Our project that builds fine on
Windows displays some rather odd behaviour. When maven closes down (after a
BUILD FAILURE) message, the machine slows down. Observing the process in
activity monitor shows that the number of java threads leaps from about
Hi
I'm building a project with jar:install-snapshot goal, which works fine.
I need the file to actually have the extension .wsr when it is assembled
into an EAR file.
Should I do this with something like a rename repository:copy-jar, or
some kind of step
Before the ear:ear ?
--
Activiti
We have the following layout
/Proj - root
/Proj/Build - maven.xml that uses the reactor
/Proj/Hub/P1 - 1st project
/Proj/Hub/P2 - 2nd project
Our Build reactor calls an install goal in P1 and P2 which they define
in their own maven.xml fine.
I can go into either P1 or P2 directly,
For some reason, some of my projects crash in site:generate when it does
the linkcheck part.
I've attached the (rather large) exception - are there any ideas as to
what it could be and
How I might fix it?
--
BUILD FAILED
File.. file:/C:/Documents and
Message-
--From: Nigel Magnay
--Sent: 05 May 2004 14:44
--To: '[EMAIL PROTECTED]'
--Subject: problem with linkcheck:linkcheck
--
--
--For some reason, some of my projects crash in site:generate
--when it does the linkcheck part.
--
--I've attached the (rather large) exception - are there any
Is there any example of using the reactor to auto-generate a
navigation.xml to subprojects ?
I have
j:forEach var=reactorProject items=${reactorProjects}
echo${reactorProject.artifactId}/echo
/j:forEach
But I haven't looked at how to write out the navigation.xml file so I
was
I'm getting some very odd behaviour running Maven from CC.
It seems that every other build, my ${user.home}/build.properties file
is not being
read, so my build fails, thus 50% of them seem to fail all the time.
Is there any reason this file would not get read?
]
--Sent: 20 May 2004 00:16
--To: 'Maven Users List'
--Subject: RE: Maven with CruiseControl
--
--Works for me... Might be environmental?
--
--Is this on windows or unix?
--
--IS CC running as the user you expect?
--
--- Brett
--
-- -Original Message-
-- From: Nigel Magnay [mailto:[EMAIL PROTECTED
After upgrading to RC3, we have a problem with the clover plugin.
It complains in a lot of our projects that it can't get
maven.test.compile.src.set.
This is because we don't want to run any tests in that project, we are
merely instrumenting the classes
so that when they are run later (inside
Hello
I have a plugin where I have declared a taglib by doing
define:taglib uri=myuri
define:tag name=yadayada
etc etc
I can do plugin:install fine
However, when I try and use it in my script, with
project xmlns:mine=myuri ...
goal. ...
mine:yadayada /
I get
Tag library requested
Hi people
We're using CruiseControl and Maven quite happily for individual
project builds and larger 'continuous integration' type stuff.
Cruisecontrol gets launched with the cvs modificationset detecting
whether there have been any changes to a part of the cvs repo relevant
to that project.
It
Hi people. We've been using maven for a while now, with cruisecontrol,
very nicely indeed, for builds.
Some of us use maven to do our local box builds, but more don't than
do, and a part of that is probably our heavy additction to Eclipse.
Now, I've been using the IDE integration stuff, but I
from one place into multiple jars...
Eric
-Original Message-
From: Nigel Magnay [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 26, 2004 11:01 AM
To: [EMAIL PROTECTED]
Subject: maven with eclipse, mevenide et al
Hi people. We've been using maven for a while now
The issue isn't the number of source directories, it's the location.
product-ejb has in the project.xml sourceDir../product/source/src/sourceDir
This isn't allowed in eclipse.
I could set it to an absolute path, but that's nasty as it assumes
everyone checks out in the same location.
On Tue,
'?
Sorry, I'm a little confused.
- -j
Nigel Magnay wrote:
| Yep - I'm pretty sure it's reading it as there is also a
| LifecycleMapping which is being used correctly.
|
| Are the private member variables supposed to get read set by some
| persistence mechanism from the configuration node
I have a mojo which is pretty much like the Jar mojo.
I know I can set the main class for the manifest with something like
plugin
groupIdmygroup/groupId
artifactIdmyplugin/artifactId
configuration
archive
manifest
, as
stated in the docs).
On 11/18/05, Nigel Magnay [EMAIL PROTECTED] wrote:
I have an 'uberwar' mojo; it's components.xml has a lifecyclemapping
and an artifacthandler definition, both with the role-hint of uberwar.
My project that uses this mojo has a pom.xml with
packaginguberwar/packaging
and pieces as to what you really
have.
I'd suggest looking at the Plexus plugin and comparing the
components.xml to your own:
http://svn.plexus.codehaus.org/trunk/plexus-maven-plugin/
HTH,
Brett
On 11/24/05, Nigel Magnay [EMAIL PROTECTED] wrote:
Ah - I have found out why I'm having
I'm actively working on improving merging support in cargo for web.xml
and the container specific .xml files; also to support plugging in
strategies for merging other files that may be in your WARs (e.g.
struts-config.xml and other application specific items).
Some of it is committed to cargo,
Hi people
I'm trying to produce a fix for the cobertura mojo. When it instruments the
code, it adds cobertura as a dependency to the projects 'test' cycle by
doing
this.project.setDependencyArtifacts( set );
where the set has included the artifact cobertura-1.7 in the 'test' scope.
The
You need to svn-update the cobertura mojo and rebuild it - the bug has been
fixed for 2.0.2.,..
On 26/01/06, David Sag [EMAIL PROTECTED] wrote:
I have just updated my maven 2 to 2.0.2 and now the instrumentation of my
classes fails when using the cobertura plugin.
I get
I'm suffering from SUREFIRE-30, which is down to the fact that the cobertura
plugin uses
surefire-booter-1.5.2.jar - which has this problem.
I have tried adding a different booter into the plugin :
plugin
groupIdorg.codehaus.mojo/groupId
If you need to do merging of web.xml, you may want to look at cargo
http://cargo.codehaus.org/Merging+WAR+Files
On 19/04/06, Gwyn [EMAIL PROTECTED] wrote:
Hi,
I'd appreciate any suggestions as to the best way to do the above...
I've got some generated files (web.xml, weblogic.xml,
It's in the release note -
I try http://box:8080/continuum/repository but just get a 404 ?
Hmm.. I must be doing something wrong - are there any docs for this or
handy pointers? It sounds a really useful feature - 1.0.3 is really
nice.
On 25/04/06, Brett Porter [EMAIL PROTECTED] wrote:
It's not browsable, but it will work just fine when used from Maven.
- Brett
On 4/25/06, Nigel
define the deployment repository field in configuration screen?
It's empty by default.
Emmanuel
Nigel Magnay a écrit :
Hmm.. I must be doing something wrong - are there any docs for this or
handy pointers? It sounds a really useful feature - 1.0.3 is really
nice.
On 25/04/06, Brett
So, nothing to do with maven then?
On 27/04/06, Peter Pilgrim [EMAIL PROTECTED] wrote:
Hi All
I am very proud to announce that two video presentations are now downloadable
from Google Video Beta sites. These presentations were recorded on our
sixteenth
Java Web User Group meet-up that
Yes - but all these dependencies are calculable from the POM files. I
think about this every time my machine sits with 7 idle cores...
The biggest initial issue is that the local repo is not threadsafe (2
mvn instances running in parallel can crash in interesting ways).
That's the first thing to
FWIW, I used a slightly different approach in the cargo uberwar plugin
(which generates a War-of-Wars). I made it look at the WAR
dependencies, and create a 'phantom' pom projects in the repository,
which can then be passed to the normal maven dependency
reconciliation framework to work out what
There would be other ways to accomplish this -- for instance, if Maven were
aware of the license (if it were published in the POM), you could put
It is published in the pom.
You'd probably still have to cope with libraries that are (say) GPL,
but don't declare themselves in the pom as such.
However, even if you did assume that, it would be easy to work around if you
enforced a full build from scratch to delete the local repo. As a developer
you may decide to avoid doing a full build but our continuous integration
environment would certainly enforce it and would catch the problem
... and lo - I can't even read -
http://maven.apache.org/plugins/maven-enforcer-plugin/rules/bannedDependencies.html
On Mon, Jun 30, 2008 at 4:48 PM, Nigel Magnay [EMAIL PROTECTED] wrote:
However, even if you did assume that, it would be easy to work around if you
enforced a full build from
On Mon, Jun 30, 2008 at 5:10 PM, Ishaaq Chandy [EMAIL PROTECTED] wrote:
2008/7/1 Nigel Magnay [EMAIL PROTECTED]:
However, even if you did assume that, it would be easy to work around if
you
enforced a full build from scratch to delete the local repo. As a
developer
you may decide
What version of maven are you using?
If not the latest, try 3.0.3..
On Sat, Oct 15, 2011 at 5:21 AM, Mike Power dodts...@sonic.net wrote:
I am really confused. Maven is failing to resolve an artifact that I can
easily find in the remote repository.
I am trying to build an open source
I am trying to diagnose a failure when running flex-mojos copy-resources
when running a build with clover enabled. I've seen references to this also
being a problem when building with m2e.
Flex-mojos' CopyMojo finds dependencies, then copies them into the output
(for building up a WAR file). To
That whole section I find pretty bizarre.
- Apache is about (open-source) software.
- Writing code is *good*.
- Forks are *good*
*
*
I'm put in mind of Linus' talk about why git distribution is so important -
that 'if you don't think I'm doing a good job, then you can just take your
code from
You install
https://github.com/takari/takari-local-repository
Or fix the bug from, like, 2007 ?
https://issues.apache.org/jira/browse/MNG-2802
On Thu, Oct 13, 2016 at 4:41 PM, Benson Margulies
wrote:
> So, here's a specific puzzle. I want to enable multiple branches in
>
I have a set of M2 projects that depend on each other:
A
|
B
/ \
X Y
What I'd like is that if project Y changes, then Y gets built
automatically; if successful then B (because a dependency has
changed), then A. (A is the project installer in this instance)
Is this
Hello listers
I am binding things like ant tasks into the lifecycle by using the
maven-antrun-plugin bound to the package phase.
The ant script usually overwrites the target/blah.jar file with something
new.
This works well, and I get what I expect in the target directory of my
build.
jars in the lib as
suggested in the Maven2 doc (Better Builds with Maven)...this on top of the
ant-plugins?
thanks.
Nigel Magnay [EMAIL PROTECTED] wrote:
Hello listers
I am binding things like ant tasks into the lifecycle by using the
maven-antrun-plugin bound to the package phase.
The ant
83 matches
Mail list logo