Hey,
I'm trying to run the maven-clover-plugin to generate a code coverage
report. It instruments my sources, and copies them to target/clover/src and
target/clover/generated-sources. A problem arises when the plugin invokes
the compiler:compile plugin. Output looks like:
[INFO]
] -- end configuration --
[INFO] [compiler:compile]
[DEBUG] Using compiler 'javac'.
[DEBUG] Source directories: [D:\myartifact\target\clover\src
D:\myartifact\target\clover\generated-sources\groovy-stubs\main
D:\myartifact\src\main\java]
On Wed, Aug 13, 2008 at 11:48 AM, Kallin Nagelberg
[EMAIL
I wrote a groovy plugin a while back, and am now trying to convert it to a
simple script as it is only used by one artifact and it makes more sense to
keep it with the artifact in question rather than as a separate artifact.
The artifact that uses the script, artifact A, depends on some classes
:/C:/mavenrepo_artifactory/org/apache/maven/doxia/doxia-module-xhtml/1.0-alpha-10/doxia-module-xhtml-1.0-alpha-10.jar]
Quite peculiar !
On Wed, Jul 23, 2008 at 11:35 AM, Kallin Nagelberg
[EMAIL PROTECTED] wrote:
I wrote a groovy plugin a while back, and am now trying to convert
I've noticed that when i execute release:prepare on one my projects that
generates sources it performs the generation. I don't see why it would do
this, as it does it again during release:perform.
The plugin config in that artifact's POM looks like the following. Is there
a way to prevent
OK thanks. I imagine to make this automatic I could put a release
configuration in the relevant POM.
On Tue, Jul 15, 2008 at 2:41 AM, Magne Nordtveit [EMAIL PROTECTED]
wrote:
On Mon, 2008-07-14 at 16:38 -0400, Kallin Nagelberg wrote:
Is there a way to prevent javadoc from occuring during
One my artifacts is using the gmaven plugin for both main and test sources.
It was all working fine until recently the test phase began throwing the
exception java.lang.InternalError: Stubbed method
I have no idea what changed. It seems to be using the compiled stubs instead
of the real groovy
?
On Tue, Jul 15, 2008 at 11:49 AM, Kallin Nagelberg
[EMAIL PROTECTED] wrote:
One my artifacts is using the gmaven plugin for both main and test
sources.
It was all working fine until recently the test phase began throwing the
exception java.lang.InternalError: Stubbed method
I have no idea
One of my artifacts takes a long time to generate sources (around 5
minutes).
I've noticed that when I use the release plugin to release this artifact it
performs that generation at least 3 times.
I am using the maven-source-plugin across all my projects. Maybe i'll
disable that..
Any other
One of my artifacts takes a long time to generate sources (around 5
minutes).
I've noticed that when I use the release plugin to release this artifact it
performs that generation at least 3 times.
I am using the maven-source-plugin across all my projects. Maybe i'll
disable that..
Any other
Is there a way to prevent javadoc from occuring during release? I would also
like to prevent production of source JAR. Any ideas?
Yes I appear to be plagued with duplication.
On Mon, Jul 14, 2008 at 5:35 PM, Michael McCallum [EMAIL PROTECTED] wrote:
On Tue, 15 Jul 2008 07:05:52 Kallin Nagelberg wrote:
thats hilarious did anyone else get three copies of that email ;-)
--
Michael McCallum
Enterprise Engineer
mailto
Hi,
I'm using a dependency set in an assembly of mine using the following
config:
dependencySets
dependencySet
useProjectArtifactfalse/useProjectArtifact
outputDirectory//outputDirectory
includes
to
make the same rules apply to dependencies?
On Tue, Jul 8, 2008 at 5:58 PM, Kallin Nagelberg [EMAIL PROTECTED]
wrote:
I have an assembly descriptor that looks like the following code.
There are duplicate libraries in 'target/dependencies' and
'target/core-bl-template/unpack/lib'.
This results
I'm encountering some really strange classloading issues with the gmaven
plugin.
I am executing it to generate some sources for a project of mine, and the
script I wrote calls some classes in a dependency.
I get all sorts of exceptions saying classnotfound. I debugged it, and found
that the
Is there a way to use the release plugin without invoking the SCM
activities? (I'm using SVN)
The release plugin doesn't seem to be compatible with my project's branching
strategy for a number of reasons:
1) It seems to always want to release from the trunk. Sometimes we need to
release from
go about releasing nonmodule1 off my branch?
On Tue, Jul 8, 2008 at 11:57 AM, Kallin Nagelberg
[EMAIL PROTECTED] wrote:
Is there a way to use the release plugin without invoking the SCM
activities? (I'm using SVN)
The release plugin doesn't seem to be compatible with my project's
branching
Hi,
I'm trying to build a simple distribution with the following layout:
+
|---bin
|---libs
There are some scripts in the bin folder that build a classpath using the
lib folder. It should be distributed as a ZIP.
One caveat: Initially it is built as a template. That is, there is a core
I have an artifact which uses 2 wars as an overlay.
I wonder if there's a way to choose which web.xml to use, or in general,
which one should take priority in the case of conflicts.
It seems like this should do the trick:
http://maven.apache.org/plugins/maven-war-plugin/overlays.html
On Tue, Jul 8, 2008 at 3:39 PM, Kallin Nagelberg [EMAIL PROTECTED]
wrote:
I have an artifact which uses 2 wars as an overlay.
I wonder if there's a way to choose which web.xml to use
it as an
overlay the same way WARs work, but that doesn't seem like an option here so
I'm using the dependency plugin. It only grabs the JAR from the template
though, not the assembled ZIP.
Any ideas?
On Tue, Jul 8, 2008 at 2:57 PM, Kallin Nagelberg [EMAIL PROTECTED]
wrote:
Hi,
I'm trying
I have an assembly descriptor that looks like the following code.
There are duplicate libraries in 'target/dependencies' and
'target/core-bl-template/unpack/lib'.
This results in duplicate JARs being zipped up at xxx.zip/lib .
Is there a way to prevent this?
assembly
idbin/id
formats
I'm trying to build a template WAR (overlay I guess) to be used in other
projects. Every other project will supply it's own web.xml, so I don't need
one in the template. Is there a way to configure the war plugin so that id
doesn't error out on a missing web.xml?
2, 2008 at 5:16 PM, Kallin Nagelberg
[EMAIL PROTECTED] wrote:
So what do you use for the version label in the root pom and the 'parent'
tags of all the modules?
For inter-module dependencies ${project.version} seems to work..
On Wed, Jul 2, 2008 at 2:52 AM, Martin Höller [EMAIL PROTECTED
So what do you use for the version label in the root pom and the 'parent'
tags of all the modules?
For inter-module dependencies ${project.version} seems to work..
On Wed, Jul 2, 2008 at 2:52 AM, Martin Höller [EMAIL PROTECTED] wrote:
On Monday 30 June 2008 Kallin Nagelberg wrote:
Can anyone
I'm trying to create a multi-module project that uses the same plugin for
source generation.
To make it as simple as possible I have a parent POM that contains the
configuration of the plugin in a
build
plugins
plugin
tag.
My problem is that the plugin is being executed when
I have a multi module project with superpom of type 'pom'.
I was wondering how I can obtain all the modules as dependencies in another
project. I thought I could just declare a dependency on the superpom, but
that doesn't work.
, but don't execute them.
[1]
http://maven.apache.org/ref/current/maven-model/maven.html#class_pluginManagement
Kallin Nagelberg wrote:
I'm trying to create a multi-module project that uses the same plugin for
source generation.
To make it as simple as possible I have a parent POM that contains
I've noticed that using the pluginmanagment the plugin is not associated to
lifecycle events by default in the children. Is there a way to make this
happen so that I don't have to declare the plugin in every child?
On Wed, Jul 2, 2008 at 3:22 PM, Kallin Nagelberg [EMAIL PROTECTED]
wrote:
great
Can anyone tell me what is the best/simplest way to maintain a version
number across all the poms in a multi-module project?
They are all to be deployed with the same version every time.
Ideally, the version could be declared in one place (the superpom), and all
children would know to use it.
I'm finding it impossible to upload files to a remote repository using the
deploy plugin.
I've setup a tunnel to the server and have all authentication setup
properly. I can ssh/scp through the tunnel with no problems, and the maven
deploy plugin will go so far as to create the directories
Originally I was trying this on cygwin, with scp and ssh. I switched to a
windows command prompt, with plink and pscp, and it works! Magic!
On Mon, Apr 28, 2008 at 11:42 AM, Kallin Nagelberg
[EMAIL PROTECTED] wrote:
I'm finding it impossible to upload files to a remote repository using
, Apr 28, 2008 at 1:17 PM, Kallin Nagelberg
[EMAIL PROTECTED] wrote:
Originally I was trying this on cygwin, with scp and ssh. I switched to a
windows command prompt, with plink and pscp, and it works! Magic!
On Mon, Apr 28, 2008 at 11:42 AM, Kallin Nagelberg
[EMAIL PROTECTED] wrote:
I'm
人: Kallin Nagelberg [mailto:[EMAIL PROTECTED]
发送时间: 2008年3月17日 3:47
收件人: Maven Users List
主题: Re: deployment through tunnel
I should also note that I can successfully SSH with
ssh -p 9000 [EMAIL PROTECTED]
So I can ssh and scp manually just fine.
On Sun, Mar 16, 2008 at 3:37 PM, Kallin
Cool Thanks, I'll try that.
I don't know how to use ssh-add yet, but I'm sure i can find something
online.
On Mon, Mar 17, 2008 at 7:33 AM, Jan Torben Heuer
[EMAIL PROTECTED] wrote:
Uploading: scpexe://localhost:9006/home/cm/maven/dev/..etcetc
[INFO]
I've been struggling forever trying to use the deploy plugin through a
tunnel into my office.
There is a repository, call it maven.int.office.com.
I have a tunnel, from localhost:9000 to maven.int.office.com:22.
Using the following command I can SCP files to it at will:
scp -P9000 somefile.txt
I should also note that I can successfully SSH with
ssh -p 9000 [EMAIL PROTECTED]
So I can ssh and scp manually just fine.
On Sun, Mar 16, 2008 at 3:37 PM, Kallin Nagelberg
[EMAIL PROTECTED] wrote:
I've been struggling forever trying to use the deploy plugin through a
tunnel into my office
(?).
Wayne
On 3/16/08, Kallin Nagelberg [EMAIL PROTECTED] wrote:
I should also note that I can successfully SSH with
ssh -p 9000 [EMAIL PROTECTED]
So I can ssh and scp manually just fine.
On Sun, Mar 16, 2008 at 3:37 PM, Kallin Nagelberg
[EMAIL PROTECTED] wrote:
I've been
I'm using the maven ant task in groovy to try and create a dependency
fileset.
Something like:
mvn.dependencies(filesetId: 'myfileset') {
myArtifacts.each {
dependency(groupId: it.groupId, artifactId: it.artifactId,
version: it.version)
}
}
It works when all the artifacts
-beta-6).
-Lukas
Kallin Nagelberg wrote:
Thanks Lukas,
You know I tried that, but I keep getting the error that 'url' is a
required
parameters :S
On Feb 4, 2008 5:32 AM, Lukas Theussl [EMAIL PROTECTED] wrote:
Use the file parameter instead of url, eg:
%{snippet|id=myid
a small test project to jira
(http://jira.codehaus.org/browse/DOXIA), it works for me. Just to be
sure: the macro line is not indented in your apt source, right? (that
would explain why the line is interpreted as an anchor).
-Lukas
Kallin Nagelberg wrote:
Ok, so I added a dependency to site
Kallin Nagelberg wrote:
Hi Everyone,
I've been tasked with creating some .apt documentation for a new maven
built
project. Ideally, I'd like to have a lot of the site documentation come
from
files in my src/main/resources directory.
I've read about using the snippet macro, but I
Ok thanks for all the help.
So, currently, it's impossible to have multiple includes throughout an apt
file?
On Feb 4, 2008 10:27 AM, Lukas Theussl [EMAIL PROTECTED] wrote:
Kallin Nagelberg wrote:
I found out that configuring the dependency wasn't enough. I had to
explicitly indicate
/src/site/apt/book/index.apt?revision=574085view=markup
HTH,
-Lukas
Kallin Nagelberg wrote:
Ok thanks for all the help.
So, currently, it's impossible to have multiple includes throughout an
apt
file?
On Feb 4, 2008 10:27 AM, Lukas Theussl [EMAIL PROTECTED] wrote:
Kallin
Hi Everyone,
I've been tasked with creating some .apt documentation for a new maven built
project. Ideally, I'd like to have a lot of the site documentation come from
files in my src/main/resources directory.
I've read about using the snippet macro, but I can't get it to access the
artifacts
Anyone?
On Jan 5, 2008 6:44 PM, Kallin Nagelberg [EMAIL PROTECTED] wrote:
Im trying to use the groovy-maven-plugin to execute some groovy scripts
that make use of the antbuilder. I need to be able to use the
maven-ant-tasks within this script, which I've tried to do as follows:
def mvn
I was using this plugin for a bit to add an additional source directory, but
intellij IDEA does not recognize the additional source. I ended up having to
create a new artifact for the second set of sources.
On Jan 7, 2008 7:50 AM, Tom Huybrechts [EMAIL PROTECTED] wrote:
, Jan Torben Heuer [EMAIL PROTECTED]
wrote:
Kallin Nagelberg wrote:
I was using this plugin for a bit to add an additional source directory,
but intellij IDEA does not recognize the additional source. I ended up
having to create a new artifact for the second set of sources.
eclipse
Im trying to use the groovy-maven-plugin to execute some groovy scripts that
make use of the antbuilder. I need to be able to use the maven-ant-tasks
within this script, which I've tried to do as follows:
def mvn = NamespaceBuilder.newInstance(ant, 'antlib:
org.apache.maven.artifact.ant')
What about creating a mojo instance manually from within another plugin..
Has anyone tried this?
On Dec 29, 2007 11:37 PM, Kallin Nagelberg [EMAIL PROTECTED]
wrote:
I need to run the unpack and copy goals repeatedly, with given
group:artifact:version and different target directories for each
Hello everyone,
I've created a standalone plugin in which I'm doing some unpacking/copying
of artifacts in addition to a few other things. I would like to defer the
unpacking/copying operations to the maven dependency plugin for obvious
reasons.
Has anyone tried creating and configuring a plugin
is mostly delegated to the maven-archiver
component.
-Original Message-
From: Kallin Nagelberg [mailto:[EMAIL PROTECTED]
Sent: Saturday, December 29, 2007 4:03 PM
To: Maven Users List
Subject: Plugins within plugins: best practices
Hello everyone,
I've created a standalone plugin
/resources#BBWM
If anyone knows of any other highly useful sources of maven documentation it
would be great to have it on this thread. Who knows, it may even end up
reduce the number of total threads on this list :)
Kallin Nagelberg
Consulting Architect
not survive compilation,
meaning that my subclasses do not generate the necessary stubs. If it's not
available now, does anyone know if there are plans to implement it?
Thanks,
Kallin Nagelberg
Consulting Architect
I believe what is happening here has to do with my plugin haviing the
'@requiresProject false' attribute set.
On Dec 27, 2007 4:01 PM, Kallin Nagelberg [EMAIL PROTECTED]
wrote:
I'm trying to write a plugin in which I need to access the version of the
plugin while it's running. I've tried using
I'm trying to write a plugin in which I need to access the version of the
plugin while it's running. I've tried using ${project.version} within my
plugin, but it always resolves to '2.0', as if it is obtaining the maven
version. Does anyone know a way to obtain the version of the plugin?
That worked. Thanks!
On Dec 27, 2007 4:24 PM, Tom Huybrechts [EMAIL PROTECTED] wrote:
Try ${plugin.version}. Not sure if it works, but it doesn't hurt to try.
On Dec 27, 2007 10:06 PM, Kallin Nagelberg [EMAIL PROTECTED]
wrote:
I believe what is happening here has to do with my plugin
I'm trying to write a plugin that builds a WAR using a variety of different
artifacts.
I have a 'pom' artifact that manages all my third party dependencies, and I
would like to be able to use the 'maven-dependency-plugin' to unpack them
all. Unfortunately, it seems that plugin only transitively
I've written a plugin that is being used by an artifact of mine to create
some files in my project structure (outside maven, like ../../somedir...).
It all works great when I run it from the directory housing the artifact i'm
interested in, but when I attempt to make this artifact a module of
I figured out how to do this by passing the ${basedir} property from the pom
into my plugin. Problem solved!
On Dec 21, 2007 12:11 PM, Kallin Nagelberg [EMAIL PROTECTED]
wrote:
I've written a plugin that is being used by an artifact of mine to create
some files in my project structure (outside
I've got a situation on my hands in which I need to convert a maven assembly
system that was built to be only linux compatible to something cross
platform.
Among it's quirks, it generates pom files dynamically so that it can call
plugins against it. The first windows hitch I've come across is the
Thanks guys. I've already got it working with the build helper plugin, but
was hoping there was some convention i could use to avoid it. Hopefully the
maven guys move to add one eventually.
On Dec 20, 2007 8:15 AM, Rémy Sanlaville [EMAIL PROTECTED] wrote:
Hi,
Use the *build* *helper* *plugin*
I'm working on adapting some source generation code into the maven
lifecycle. I've written a plugin that is generating the sources (albeit at
random places) and bound it to the generate sources phase.
I've read in a couple places that the standard location is
target/generated-sources/plugin-id.
Your ant-path matching needs to change I believe.
'*' means all files in present directory.
'**/*' is what you want I believe. That would mean any file in any
subdirectory (present directory included).
Easier yet, get rid of the includes tag altogether. If you don't specify
any excludes or
Also, what's with the filesets? This looks more like an ant file than a
maven pom...
On Dec 11, 2007 9:39 AM, tadamski [EMAIL PROTECTED] wrote:
Hello all, I am attempting to pull all the contents out of a directory,
into
a specified output directory. The problem I'm running into is that I
To verify this you should try switching Eclipse to use your installed JDK
compiler instead of the built in one.
William also mentioned that ANT was producing successful builds as well, so
unless ANT also uses it's own compiler it might be another issue..
On Dec 11, 2007 11:29 AM, Wayne Fay
As much 'fun' as developing enterprise java applications with Maven is, I
would like to think that developing games with Maven would be even better :)
I'm hoping to convince the jMonkeyEngine project to let me mavenize their
project, and in the process create a game archetype supporting 3d
Hehe, yeah I meant the gaming tutorials.
And the tutorials are well written, but getting an environment up and
running with the right native libraries etc. doesn't always work as
expected, so hopefully maven can bring some order.
On Dec 11, 2007 5:51 PM, Nick Stolwijk [EMAIL PROTECTED] wrote:
You may wish to start by using the maven-antrun-plugin, breaking up the ant
into smaller files that you put alongside each pom of your multi-module
project. This way you can avoid writing all the plugins/complex poms that,
while ideal, would take more time initially.
That is the approach my
-structured. We
thought that we could incorporate some advantages from maven, such as
repositories and work in a more high-level way. But nothing is too simple
and wonderful like those Hello world examples.
On Dec 10, 2007 11:20 AM, Kallin Nagelberg [EMAIL PROTECTED]
wrote:
You may wish to start
I'm trying to convert the source-generation of a legacy system into a
mavenized project. Basically I need to run a couple of java classes from an
already existing dependency (during the generate-sources phase I assume)
which should populate my source directories. The problem I'm having is that
it
.
2007/12/8, Kallin Nagelberg [EMAIL PROTECTED]:
I'm trying to convert the source-generation of a legacy system into a
mavenized project. Basically I need to run a couple of java classes from
an
already existing dependency (during the generate-sources phase I assume)
which should populate
declared dependencies BUT not to the project
classes/ressources. (this may be a valuale enhancement to the plugin).
Nico.
2007/12/8, Kallin Nagelberg [EMAIL PROTECTED]:
Thanks for the prompt reply.
My code-generator (the java classes anyways) have been packaged as a
regular
jar
!
Kallin Nagelberg
Consulting Architect
On Dec 5, 2007 4:02 PM, Michael McCallum [EMAIL PROTECTED] wrote:
refactoring, composition, encasulation, aggregation standard techniques
for
making complex systems easier to understand...
On Thu, 06 Dec 2007 09:42:49 Marco Mistroni wrote:
hi all
I may be totally off on this but I'm pretty sure that when using the
maven-antrun-plugin maven uses ant artifacts from the maven repo.
IE some of these guys:
http://www.mvnrepository.com/artifact/org.apache.ant
On Dec 5, 2007 11:41 AM, [EMAIL PROTECTED] wrote:
Newbie here .. .pretty much ...
by this pom in
my ant script it still shows the 1.0 version on the classpath. It
seems that the maven antLib is not taking the parent's dependency
management section into account. I've heard that the maven antlib does
not always function as maven should. Is this true?
Regards,
Kallin Nagelberg
76 matches
Mail list logo