Here is a good reference:
http://books.sonatype.com/mvnref-book/reference/resource-filtering-sect-properties.html
There is a new project wiki, but doesn't look like has much in the way of user
help:
https://cwiki.apache.org/confluence/display/MAVEN/Index
Not sure who is allowe
Hi Jörg,
I'm giving your plugin a spin and I think it really helps!
What I wonder is how do you get maven-install and maven-deploy plugins to use
${basedir}/.flattened-pom.xml ?
Is there a magic property I can set, or can this only be done programatically?
Seems tricky, since I want to use th
Hi,
I ran into a very weird problem the other day that I thought I would
share with the list.
We recently switched our maven builds to Fedora linux running on a
really great VMWARE cluster with very fast SSD-based storage.
However, our average java build inexplicably increased to several
h
simplist way is to build it with maven, i.e. "mvn install".
then your other projects can pick it up from your local build repository, which
is %HOME%\.m2\repository by default.
if you want to publish it to an internal web server, so that everyone can use
it, then explore "mvn deploy".
At 10:38
Hi,
we have a dependency on the cas:cas-server:3.0.4 pom that is
inherited via org.acegisecurity:acegi-security-adapters:1.0.6.
however, the pom on central is saved under
/cas/cas-server/3.0.4/cas-server-3.0.4.pom- (note the dash at the
end).
cas
cas-server
3.0.4
pom-
The pom i
it is here:
http://repo.maven.apache.org/maven2/org/apache/commons/commons-math3/3.0
but not getting sync'd to the sonatype mirror:
https://repository.sonatype.org/index.html#nexus-search;quick~commons-math3
in fact I only see 7 of the 32 files mirrored.
anyone know why?
It
Hi,
I'm wondering if there is a sensible way to default properties in maven.
I.e., I want to have a property:
default-value-if-not-defined-elsewhere
${env.FOO}
I.e., use the default unless the varialble is provided by the
environment or via an explicit define in settings.xml or on
Hi,
I have a situation where I have to generate wsdd
(web-service-deployment-descriptors) for a couple of projects.
I'm using the axistools-maven-plugin admin goal to accomplish this.
In order to get it to work, I find that I have to include the project
dependencies within the plugin depende
need to update the poms. Just do it outside of maven before
>> > you perform the final build - should not be hard. If doing that is
>> > too much to ask ... then, yeah, Maven may not be the right framework
>> > for you. But consider that you will need to do *something
AFAIK there is no way to do this in settings.xml. It is a chicken & egg
problem that has never been effectively solved in maven.
What you can do, is pass the repository location in as a property.
Typically I create an alias (or a .bat file on windows):
alias svmn mvn -Dmaven.repo.local
I think your real question might be, who is putting this stuff in my
WEB-INF/classes dir?
It is the resources plugin, as commanded by the war-plugin.
therefore, you would add a element to prevent this.
Below is a trivial example.
/r
== src
src/main/res
At 1:52 PM -0700 5/17/11, mavenuser wrote:
>is it possible to create a jar of selected packages together with
>dependencies in a project. ?
>
yes. use the maven-dependency plugin, and just unpack or copy the dependencies
to your target/classes dir.
--
I use the maven-dependency plugin for jar and war packaging.
It is flexible and non-judgmental.
This is particularly important when you are converting a large
project over to maven and cannot follow some maven conventions - you
may be constrained to recreate identical or near-identical artifac
+1.
this is the major reason I won't be upgrading to maven 3.
I do think that versions should be fixed at maven deploy time - i.e., when
artifacts are deployed to the repository.
-Russ
At 5:21 AM -0700 3/26/11, bryan.dollery wrote:
>Hi,
>
>I am also getting grief from maven for using variables
Well, if I were going to design something from scratch, I think a simple
REST'ful api would suffice, perhaps similar to hudson:
http://wiki.hudson-ci.org/display/HUDSON/Remote+access+API
(although don't need so many choices!)
So perhaps I should broaden my question - is there anything o
anyone know of a web-service interface to any of the public maven
artifact lookup services?
tia,
-russ
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org
you can make new projects just for packaging.
make these project depend on your jars.
then use the dependency plugin to unpack and repack.
you might find some useful ideas here (drill down to child poms):
http://fisheye5.cenqua.com/browse/open-esb/esb-packages
At 10:38 PM -0700 8/19/10,
>
>But I get back the version.xml file as-is without any substitution in
>the target test folder.
>
>Any suggestions?
>- Pulkit
>
>On Mon, Aug 2, 2010 at 8:00 PM, Russ Tremain wrote:
>> during the process-resources phase of the build lifecycle [1], you can
>
during the process-resources phase of the build lifecycle [1], you can
substitute values.
see: http://maven.apache.org/ref/2.2.1/maven-model/maven.html#class_resource
you would need to enable filtering.
refs:
[1]
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
have you tried the Maven Kool-Aid on him? It's sort-of purplish
and you can buy it at Trader Joe's, but they are often out of stock. :)
bottom line, in maven you can see the dependencies of a project,
in a clearly specified form. there are even visual tools to help.
not so with ant, make, sh, p
At 2:59 PM +0200 7/18/08, nicolas de loof wrote:
>Right, but this requires perl to be available on every developer system.
>
>I was looking for a pure java solution. But maybe there is no Java
>interpreter for Perl...
>
porting perl to the java-vm is a task no one has taken on.
maybe later.
howev
hat's the plugin? The process at codehaus is usually to attach it to a
>jira and then try to find someone to sponsor it.
>
>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, July 16, 2008 2:40 PM
>To: Adam
>Cc: Maven Use
e, and have
>your repository rsync'd with Ibiblio.
>
>On Wed, Jul 16, 2008 at 1:16 PM, Russ Tremain <[EMAIL PROTECTED]> wrote:
>> anyone know how to get started contributing a new plugin?
>>
>> tia,
>> -Russ
>>
>>
>>>Date: Fri, 11 Jul 2
anyone know how to get started contributing a new plugin?
tia,
-Russ
>Date: Fri, 11 Jul 2008 13:14:30 -0700
>From: Russ Tremain <[EMAIL PROTECTED]>
>Subject: [mojo-dev] newbie plugin developer questions..
>Sender: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Reply-to: [EMA
At 12:25 PM -0700 6/17/08, Russ Tremain wrote:
>getting long hangs on both codehaus repos:
>
> http://snapshots.repository.codehaus.org/
> http://repository.codehaus.org
>
>does anyone know of any mirror for these?
>
>tia,
>-Russ
as a temporary work-around,
getting long hangs on both codehaus repos:
http://snapshots.repository.codehaus.org/
http://repository.codehaus.org
does anyone know of any mirror for these?
tia,
-Russ
-
To unsubscribe, e-mail: [EMAIL PROTECTE
At 6:18 PM -0700 5/22/08, Wendy Smoak wrote:
>On Thu, May 22, 2008 at 5:59 PM, Russ Tremain <[EMAIL PROTECTED]> wrote:
>
>> is it possible to coax the maven-jar-plugin to name my artifact with a .zip
>> suffix instead of .jar?
>> also, can I tell it not to includ
is it possible to coax the maven-jar-plugin to name my artifact with
a .zip suffix instead of .jar?
also, can I tell it not to include any manifest?
I don't see anything helpful in the docs.
tia,
-Russ
-
To unsubscribe, e-mai
Yes! This property reflects ${maven.repo.local} when I pass
-Dmaven.repo.local=...,
and returns ~/.m2/repository if I do not. Exactly what I needed.
I was under the false impression that one had to define it in ~/.m2/settings.xml
in order to use it.
thanks -
-Russ
% mvn -Dmaven.repo.local=/tm
Is there any property set by maven that tells me where the local
build repository is?
I.e., once it resolves where it is going to build, will it tell me?
I think the answer is just plain no, but I want to re-confirm.
tia,
-Russ
-
At 10:37 PM +0100 3/11/08, simon wrote:
>On Tue, 2008-03-11 at 13:52 -0700, Russ Tremain wrote:
>> At 9:10 PM +0100 3/11/08, simon wrote:
>> >
>> >It's rather odd to want to inherit anything except (transient)
>> >dependencies from an "external" p
r these profiles:
spring-osgi
org.springframework.osgi
1.0
/r
>On Tue, 2008-03-11 at 12:15 -0700, Russ Tremain wrote:
>> I have an interesting situation where we have one test project
>> that wants its parent to be an external project pom.
>>
>> I
not quite sure I understand, are you saying you have test files
in your that you want to exclude?
if so, then the convention is to exclude them in the ..
section.
classes in are by default excluded from the final
jar.
At 2:30 PM -0500 3/11/08, Chris wrote:
>I'd like to exclude all classes in
I have an interesting situation where we have one test project
that wants its parent to be an external project pom.
I don't want that, because it means I can't have it inherit from a common
parent we have described locally.
I.e. let X be the external pom, L be the local parent, and T be the
tes
At 2:51 PM -0800 2/21/08, krishnan.1000 wrote:
>Hi,
>
>I am a Maven newbie. So please forgive my ignorance. I am using Maven 2x for
>project and dependency management. I am creating a jar package. My project
>requires that the jar be deployed on a remote server. I can create a jar of
>all the clas
Does anyone know why the 2.7.0 serializer jar is missing from the
xalan distribution:
http://repo1.maven.org/maven2/xalan/xalan/2.7.0/
I assume it should be here:
http://repo1.maven.org/maven2/xalan/serializer/2.7.0/
How do we get it fixed?
thanks,
-Russ
---
warning, for some reason the symlink does not work on the intel macs.
here is what I do (tcsh/csh syntax):
setenv JAVABASE /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0
setenv JAVAVERS Home
setenv JAVA_HOME $JAVABASE/$JAVAVERS
if (! -d $JAVA_HOME/jre || ! -r $JAVA_HOME/../lib/tools.j
looks good now.. thanks Brian!
/r
At 10:23 AM -0500 12/14/06, Brian E. Fox wrote:
>New snapshot is deployed. Curious that it never showed up before in the
>copy-dependencies mojo.
>
>-Original Message-
>From: Brian E. Fox [mailto:[EMAIL PROTECTED]
>Sent: Thursday, December 14, 2006 9:44 AM
2.0-alpha-1-20061114.043217-3
true
/r
>On 12/14/06, Russ Tremain <[EMAIL PROTECTED]> wrote:
>>looks like someone released a new snapshot of the maven-dependency plugin
>>that has a regression:
>>
>>
looks like someone released a new snapshot of the maven-dependency plugin
that has a regression:
maven-dependency-plugin
generate-sources
generate-sources
copy
There is a new version name for the maven dependency plugin.
old:
2.0-SNAPSHOT
new:
2.0-alpha-1-SNAPSHOT
not sure why or what was changed. The version change broke our build,
but looks like the plugin is okay.
/r
-
To
grep for SNAPSHOT in your local repository pom.xml files to
see if you can find out who has the dependency:
cd
grep SNAPSHOT `find . -name '*.pom'`
also, looks like the public snapshot repository is still down.
-Russ
>Hi,
>
>While running my maven build I saw this in the outpu
Wendy - thanks for the info... is there any mirror that is working?
-Russ
At 12:28 PM -0700 10/23/06, Wendy Smoak wrote:
>On 10/23/06, Russ Tremain <[EMAIL PROTECTED]> wrote:
>>We started getting errors this weekend:
>
>Several ASF servers were/are offline since Saturday.
We started getting errors this weekend:
[WARNING] repository metadata for: 'snapshot
org.apache.maven.plugins:maven-install-plugin:2.2-SNAPSHOT' could not be re
trieved from repository: maven-snapshots due to an error: Error transferring
file
[WARNING] repository metadata for: 'snapshot
org.apa
/maven-plugins-3.pom
>
>ibiblio is the first mirror of repo1.maven.org
>
>Emmanuel
>
>Russ Tremain a écrit :
>>we are using a mirror to ibiblio, and have been having this error since
>>yesterday:
>>
>>GroupId: org.apache.maven.plugins
>>ArtifactId: maven-pl
we are using a mirror to ibiblio, and have been having this error since
yesterday:
GroupId: org.apache.maven.plugins
ArtifactId: maven-plugins
Version: 3
Reason: Unable to download the artifact from any repository
org.apache.maven.plugins:maven-plugins:pom:3
from the specified remote reposito
able to isolate it further it only occurs if I run
a
full build (clean) from my top pom.xml.
-Russ
[1] Email from 8/29:
>Date: Tue, 29 Aug 2006 12:53:01 -0700
>From: Russ Tremain <[EMAIL PROTECTED]>
>Subject: regression in maven-jar-plugin-2.1-20060826.162339-6.jar or
>dependencie
I am a proponent of Maven 2.
We have converted a large, ant based build system, first to Maven 1.1,
and now to Maven 2.
There are many flaws. There are many bugs. Plugin configuration
documentation is especially poor. Configuration of plugins is
inconsistent. Etc., etc. The maven 2 conversio
Hi -
We use the SNAPSHOT jar plugin so maven doesn't add the maven meta files to our
production jars.
I find that it sometimes creates empty jars when run from our top pom.
However, it seems to work normally when run locally.
I believe the snapshot in question is:
maven-jar-plugin-2.1-
me other problems as well, since if there is
a hiccup in the http://cvs.apache.org/ snapshot repos, sometimes we would
pick up an old antrun plugin from this codehaus maven2 repos, which causes a
build
failure as well.
thx,
-Russ
>On 29/08/06, Russ Tremain <[EMAIL PROTECTED]> wrote:
&
Hi Brett -
I just tried using only http://snapshots.repository.codehaus.org/ but
maven-build-helper is still in http://snapshots.maven.codehaus.org/maven2/
and we use it.
I.e., this dir has no jars:
http://repository.codehaus.org/org/codehaus/mojo/build-helper-maven-plugin/
This dir do
our builds are broken too:
Missing:
--
1) org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-7-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.codehaus.plexus
-DartifactId=plexus-arc
At 12:48 PM -0400 7/27/06, John Casey wrote:
>One of the fundamental principles that Maven operates on is the 1:1
>association of POMs to primary output artifacts (not counting special
>assemblies, source, or javadoc jars). If you want, you might be able to
>construct a set of POMs that all referen
Hi Hal -
I'm running into a similar issue.. did you find a work-around?
thx,
-Russ
([EMAIL PROTECTED])
At 4:05 PM -0700 7/14/06, Hal Hildebrand wrote:
>I'm running into a weird issue here. It seems that the Maven surefire
>plugin is trying to create POJO tests for inner classes which clearly a
54 matches
Mail list logo