On 4/13/07, Mark Donszelmann <[EMAIL PROTECTED]> wrote:
Hi Christian,
you may have a look at
http://java.freehep.org/freehep-nar-plugin
it does quite a bit of what you suggest, though it is not perfect.
That is pretty neat - but the devil is in the details :) For example,
you'd want various
> - Using again the native plugin, create a multi-module project. The
> parent would contain the C++ source code, while each child module would
> be devoted to create a single OS/platform specific artifact.
I use this option. However you still need to use profile to do debug/release
type artifa
able.,
I expected that the activation section would trigger the profile by
setting the environment variable, but I guess the code that handles
${env.} is not the same code that handles activations...
--
cg
Christian Goetze schrieb:
Why does this not work?
Why does this not work?
proxy
env.MAVEN_PROXY_URL
proxy
Maven proxy defined by environment
${env.MAVEN_PROXY_URL}
proxy
Maven proxy defined by environment
${env.MAVEN_PROX
Trouble is that this will not compile the prerequisite projects. You
would have to either accept the hit of a full reactor build or use your
inside knowledge and "cd" into all prerequisite subdirs, "mvn install"
those, then build your project.
--
cg
Thierry Lach wrote:
Change your directory
I've been trying to reproduce the example setup described in
http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/multi-module-config.html
The example doesn't show me the pom.xml file to be used for the
"build-tools" module.
I tried making the obvious pom for it with a parent secti
Tom Huybrechts wrote:
Read That Fine Manual :
http://maven.apache.org/plugins/maven-deploy-plugin/file-deployment.html
Thanks, sorry
Now if someone could tell me how to get the site generation to work...
(see other mail)
--
cg
---
I have some third party jars and want to place them in our common remote
repo. I've been placing them there, writing their pom file and doing the
sha1sum by hand. Is there some kind of deploy target for this which
would make it easier?
--
cg
I have a project with subprojects, and I wish to generate a site with
some simple reports. It just doesn't work. I always end up with no
module links on the top level index.html page, and if I go to
project-reports.html, all the module links simply point to index.html,
not the actual submodules
franz see wrote:
Good day to you, CG,
May I ask for a snippet of your settings where you used the activation, the
maven command you used ( i.e. mvn install ), and what made you say that it
did not work? :)
Those info would help in determining why it did not work :)
The negative activation w
franz see wrote:
Good day to you, CG,
May I ask for a snippet of your settings where you used the activation, the
maven command you used ( i.e. mvn install ), and what made you say that it
did not work? :)
Those info would help in determining why it did not work :)
Ok. Here's what I tried
franz see wrote:
Good day to you, CG,
AFAIK, there's none.
If you want, you can remove your profile from the activeProfiles section,
and add to your profile something like this
...
!exclude-this-profile
...
I tried profile activation - it doesn't seem to work.
--
cg
---
Is there a magic incantation on the command line to deactivate a profile
mentioned in the section?
--
cg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Tandon, Pankaj wrote:
So the questions are:
1. How can we control what get's into WEB-INF/lib. We tried all the
scopes mentioned, but that did not help.
I believe that the scope that should work is "provided". The problem is
that I don't know if maven is smart enough to remove a provided
de
EJ Ciramella wrote:
Still haven't seen any response - this has us wedged, can anyone shed
any light on this for me?
If you run "mvn " in some project/module subdirectory, you are
assuming that all dependencies are built and installed, and therefore
available either from your local repo, or
Ok, lemme see if I can do this one - being a newbie myself :)
srinivas ramgopal wrote:
Hi all,
I am new to Maven.
1) What is the purpose of remote repository (other than ibilbilo)
To store stuff not in ibiblio - for example your own stuff
2) Whenever a file is modified in a maven proje
Roberto UserList wrote:
Hi all! How can I configure scope tag, in order to, package one of the my
project's dependency artifact into the war artifact of my project?
Check it out! I'd like to include artifact "comp.jar" into the war
artifact.
I've tried "compile" and "provided", but both of the
Paul Edwards wrote:
Hi,
When running a M2 build over a set of modules within a profile within
a parent project, is it possible to cause certain plugin goals to run
only once while others run on each sub-project defined in the profile?
What I am attempting to accomplish goes like this:
Step
Štěpán Roh wrote:
Hello.
What I would like to know is whether if I run two Mavens at once and
they both change something in local repository at the same time
(either downloading required plugin or doing an install) if it is
possible that the repository can be damaged (downloaded plugin is
i
... doesn't work, as I expected.
Is there any hope that a JIRA request for enabling a locking mechanism
for the local repo to allow multiple instances of maven to run has a
chance of getting implemented?
Are there any plans to make maven itself multithreaded or capable of
parallel builds?
Eric Brown wrote:
There is no shortage of numbers in the world. What is the problem
with releasing often? So what if a bug occasionally gets its way into
a release -- you can always specify an older version of a plugin that
didn't have some new bug.
True, a lot of plugins are under 3rd pa
Just wanted to know whether it is worthwhile for me to replace my
maven-proxy with something that understands all aspects of snapshot
management...
I'd rather use released code if possible...
--
cg
-
To unsubscribe, e-mail: [E
John Casey wrote:
you'll need the following:
apache.snapshots
http://people.apache.org/repo/m2-snapshot-repository
Note that this repository has NOT disabled releases...this is important
because of a bug in Maven <= 2.0.4, where plugin-version resolution will
only check repositorie
Christian Goetze wrote:
John Casey wrote:
If you use the 2.2-SNAPSHOT version of the assembly plugin, you can
specify
the in the dependencySet to be something like
the
following descriptor has:
Stupid question: what is the groupId of the 2.2-SNAPSHOT version of
the assembly plugin? It
John Casey wrote:
If you use the 2.2-SNAPSHOT version of the assembly plugin, you can
specify
the in the dependencySet to be something like the
following descriptor has:
Stupid question: what is the groupId of the 2.2-SNAPSHOT version of the
assembly plugin? It doesn't seem to be org.apache
We're struggling with getting that to work... and I was wondering if
anyone had some working code to contribute :)
Ciurrently, we're trying to hook in an ant task to do this.
--
cg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
Fo
So I have my jar plugin include the classpath in the manifest. That
classpath specifies the version text as x.y-SNAPSHOT. The assembly
plugin, on the other hand, packs the resolved snapshot name
(x.y-date.sig-buildnr) of the jars into the assembly, causing the
application to fail.
Is there a
Patrick Schneider wrote:
Snapshots are checked once a day by default. You can override this by
passing the -U flag, forcing maven to update its snapshots.
Here's a good review of snaps, by Brett:
http://blogs.maven.org/brett/2005/04/15/1113510156000.html
Thanks - so it would seem that isn'
A "real" version is only downloaded into your local repo if it isn't
already there.
A SNAPSHOT version is always checked against central (or other outside
repos) to see if there is a newer version available.
Is that correct?
--
cg
-
diroussel wrote:
The question is, why is surefire not using the un-signed jar. I have two
jars:
target\MyJar.jar
target\signed\MyJar.jar
so why is surefire choosing the second one, not the normal one in the normal
place.
Any ideas?
No ideas here, sorry
Just wanted to add my opinion
Thanks for the tips. I ended up making it its own module and just use
the standard assembly. My thinking is that if it's being distributed, it
isn't really a test anymore. I hope this conforms with the idea of the
test vs main source subtrees...
--
cg
--
In this post, I'd like to summarize my first impressions of using maven.
The product built in my company is a mixed bag of C/C++ code, java code
and perl code. It is a classic three tier app, with the back end written
in C/C++, the middle tier written in perl and java and the GUI written
in ja
As subject says ... it would seem that the assembly descriptors assume
you're packaging main. Am I supposed to use full paths in the assembly
descriptor? Anyone have an example?
Thanks in advance!
--
cg
-
To unsubscribe, e-mai
Just would like to add my agreement with Mykel's position.
The problem is that you can have the best developers in your world, and
still get screwed by one guy outside accidentally including a dependency
with encumbering licensing. That's the big drawback of the automatic
inclusion of transiti
Wayne Fay wrote:
Or would you expect the "mirror java.net to Central" process to alter
all the pom files and remove the java.net repo references?
I think that they should not contain explicit location references at
all, relying instead on the locations defined in the poms traversed
previousl
Roald Bankras wrote:
First time I just run the idea:idea goal. After setting op my workspace in
intellij, I only run idea:module to update the dependencies.
Thanks, yes, that seems to be the way to go - now I need to find out if
the maven plugin for IDEA has a way to set this up to happen
franz see wrote:
Good day to you, Christian,
You can sign your jars using jar:sign ( see [1] ). However, it needs you to
input the location and filename.
Yes, I can do that, but that was not what I was asking.
The problem I have is that I want to sign all the third party jars
imported v
Sorry for the repost, but I can't believe that nobody is having this
problem. What do you guys do?
Christian Goetze wrote:
How can I merge custom idea settings (e.g. the arguments to the idea
"run" targets, perforce settings etc) into the idea project files
generated via mave
Christian Goetze wrote:
Edwin Punzalan wrote:
If the artifacts have sources and javadocs deployed with them, then
using -DdownloadSources=true and -DdownloadJavadocs=true is what you
need. The plugin will download them and attach them to the project
to help you in your development
How can I merge custom idea settings (e.g. the arguments to the idea
"run" targets, perforce settings etc) into the idea project files
generated via maven?
On the one hand, I would like to get the benefit of the source and
javadoc download and the dependency knowledge maven provides, but on th
Edwin Punzalan wrote:
If the artifacts have sources and javadocs deployed with them, then
using -DdownloadSources=true and -DdownloadJavadocs=true is what you
need. The plugin will download them and attach them to the project to
help you in your development.
Hope that helps
^_^
Ok, an
I'd like to configure the assembly plugin to sign all jars pulled in by
the transitive dependency resolution. How can I accomplish that?
Otherwise I would need to hand-sign all the thirdparty jars in my
repository...
--
cg
-
This is not clear for me from the maven book.
We have some third party jars that come with source code and javadocs,
and I'd like those to be retrieved via a maven build. How can I do that?
Do I actually need to make these into full-blown modules or is there a
way to just handle the zip files
Wendy Smoak wrote:
On 12/14/06, ekio <[EMAIL PROTECTED]> wrote:
Is it intended that system properties don't work with things within
?
Let say I have the following in the POM, and I call mvn
help:effective-pom
-Dsomething=-dev
It seems like ${something} is not getting filtered...
gr
Will multiple non-recursive "mvn -N install" invocations running in
parallel, each building and installing a different artifact, interact
with each other in some way? My naive assumption is that they shouldn't,
since they will populate different parts of the local repository, and
since I'm not
Is there an option to disable the reactor build when invoking maven from
the project parent? All I want is the installed pom, nothing else.
Background:
I need to embed maven into a larger build system, and I would like to be
more specific about which parts of a project need rebuilding. My plan
Barrie Treloar wrote:
Can you paste in the types of build failures you are getting?
I get the usual "cannot find artifact, can you upload it with the
following commands" error.
I changed the the proxy setting to not check for pom file updates, and
I'll see if it happens again.
Proxy log
I am using the maven proxy as described in
http://docs.codehaus.org/display/MAVENUSER/Using+Maven+in+a+corporate+environment,
but I am observing spurious build failures due to some of the actual
remote sites not always responding in a timely manner.
Is there a way to configure maven proxy to n
Wayne Fay wrote:
Probably a silly question, but you added a dependency on javax.mail,
right? And unless I'm mistaken, this is a Jar you have to download
from Sun and add to your local repo manually.
I did all that, yes... Thanks :) After all, my project builds fine, it's
just the aggregating
Wendy Smoak wrote:
which seems to stem from the java code being javadoc'ed itself.
"mvn site" fails with an internal error, stumbling over a dependency
Are you using ? This sounds familiar, but I
thought it was fixed. First try 'mvn site -U' to make sure you've got
the latest plugin versio
Wendy Smoak wrote:
On 12/5/06, Christian Goetze <[EMAIL PROTECTED]> wrote:
If I generate the default site according to the mergere book, I get
essentially a useless cover page with a navigation menu that lists the
modules, but without links
I've seen that happen too. Most of
Jörg Schaible wrote:
Christian Goetze wrote on Tuesday, December 05, 2006 10:49 PM:
I have a situation where a module with packaging "jar"
builds, i.e. it
produces a .jar file, but it doesn't install if maven is run from the
parent project directory. No indication by m
So I have a multi-module project and I would like to generate a site
which includes javadoc and jxr. What am I supposed to do?
I would be extremelty grateful to anyone who can provide an example
which has a shot at working...
If I generate the default site according to the mergere book, I get
Christian Goetze wrote:
I have a situation where a module with packaging "jar" builds, i.e. it
produces a .jar file, but it doesn't install if maven is run from the
parent project directory. No indication by mvn why. It will install if
I run maven from the module directory.
I have a situation where a module with packaging "jar" builds, i.e. it
produces a .jar file, but it doesn't install if maven is run from the
parent project directory. No indication by mvn why. It will install if I
run maven from the module directory.
Any ideas how I can debug this?
--
cg
Christian Goetze wrote:
Maybe a JIRA issue...
I've been setting up a project framework with no code in the modules
yet, but with dependencies, and I notice that running mvn from the top
causes the empty module to be skipped and subsequent dependency
failures, but running mvn from withi
I'm not clear on the algorithm used for inheritance of pom settings.
It would seem that some settings are merged (obvious example:
dependencies), whereas others seem to override. Is there any consistent
rule about this or is it just whatever was deemed appropriate by
whomever writing that sect
Maybe a JIRA issue...
I've been setting up a project framework with no code in the modules
yet, but with dependencies, and I notice that running mvn from the top
causes the empty module to be skipped and subsequent dependency
failures, but running mvn from within the empty project will cause a
Wendy Smoak wrote:
On 12/4/06, Christian Goetze <[EMAIL PROTECTED]> wrote:
> Where are the files located, and what type of files are they?
They are "." files generated by the build system into which I'm
embedding maven. They contain additional metadata about the fil
Wendy Smoak wrote:
On 12/4/06, Christian Goetze <[EMAIL PROTECTED]> wrote:
I would like to systematically ignore certain source files in the build.
I don;t want them to appear in my jars or any other artifacts. Is there
a global way to exclude them?
Where are the files located, an
Sorry if this is another FAQ, but I can't find an easy answer...
I would like to systematically ignore certain source files in the build.
I don;t want them to appear in my jars or any other artifacts. Is there
a global way to exclude them?
--
cg
---
I know it runs as part of mvn site, but some people wish to see it run
earlier, say as part of "install", or even "test". How do I do that?
--
cg
P.S. I'm still struggling with multi-module project site generation. I
just can't get the navigation links to work.
--
cg
-
If we were not using the Maven ant tasks, there are several ways to
address this matter. There
is the -s parameter to Maven, there is the $M2_HOME/conf/settings.xml,
where we could vary
the value of $M2_HOME according to which build we are doing. These
mechanisms do not work for
the Maven a
Wendy Smoak wrote:
On 11/22/06, Christian Goetze <[EMAIL PROTECTED]> wrote:
In order to use the release plugin, I have to decide to go for it, and
call a particular source tree releasable. This may sound trivial, but it
isn't. How do I decide that?
We've been struggling wit
Maven does several things... one of which is building, but the other
is to
gently (OK, maybe not THAT gently) push users to adhere to standards.
It is
not by accident that non-standard behaviors are untenable. The
standard in
this situation you describe is to use the maven-release-plugin. I k
Wendy Smoak wrote:
On 11/22/06, Christian Goetze <[EMAIL PROTECTED]> wrote:
The main point here is that one would like to have -exactly- -one- place
where version numbers are defined and changed. Forcing people to
manually edit dozens of pom.xml files every time the version number
chan
It could be told by setting -Dmy_version= and using
${my_version} in the parent reference. But not even that works.
You're missing the point. A child pom MUST be able to know what
version its
parent is BEFORE it can inherit anything. Wayne is right... it's
strickly a
chicken-and-egg prob
How come generating the site from the parent project does not result in
a collection of all the sites of all the sub-projects? Is there no
aggregate site, or what is the magic XML for that?
TIA
--
cg
-
To unsubscribe, e-mail:
Eric Redmond wrote:
I see what you are trying to do... but why? If you do not define a child
project's version, it automatically inherits from its parent. Just take
${main.version} out.
The trouble is that you need a -reference- to the parent's version in
the children, and that reference does
running the javadoc plugin with aggregate set to true fails with
unresolved dependency errors. I note that the unresolved dependencies
stem from a portion of the source tree to be compiled and run with the
1.4 JRE. Could that affect javadoc and how can I fix it?
Here are the types of messages
Wayne Fay wrote:
This is discussed a couple times every week. Please search this list
for "parent site" or just check out this recent thread:
from Morgovsky, Alexander (US - Glen Mills)
to users@maven.apache.org
date Nov 9, 2006 4:03 PM
subject Aggregate site generation
I did that, and
Wayne Fay wrote:
Its a chicken and egg problem.
If you don't hard-code parent version in child = which parent version
should I use? Keep in mind the /parent/module layout in the filesystem
(with relativePath) is not an absolute requirement ie parent poms
could/should be checked into a Maven rep
I added the javadocs plugin to generate an aggregate report, and I see this:
[INFO]
[ERROR] BUILD ERROR
[INFO]
[INFO] Error during page generation
Jochen Wiedmann wrote:
On 11/17/06, Christian Goetze <[EMAIL PROTECTED]> wrote:
I'd like to pass in something either via the environment or via -D on
the mvn command line, and have that be visible within the assembly
description. How do I do that?
Use a filtered resource to
I'd like to pass in something either via the environment or via -D on
the mvn command line, and have that be visible within the assembly
description. How do I do that?
For example, I'd like to say:
src/main/bat/${DO}/bat
bin
*.bat
(For those asking why: ${
Lee Meador wrote:
This does not work.
If you think about it you can see why.
You would define 'sensage-version' in the parent pom and use it in all
the
children. The problem is that as it is parsing the child pom, maven
has to
find the parent. To do that, it looks in the section and has
to
I recently asked the question below, but no answer.
I was wondering whether I really need to edit all pom.xml files in all
my project whenever I bump version numbers.
I'm still new at this, so if this is a trivial question, please bear
with me...
--
cg
Christian Goetze wrote:
Why ca
I'd like to avoid getting the following error, but still have an -
bin.dir file available:
[INFO]
[ERROR] BUILD ERROR
[INFO]
[INFO] Error insta
Why can't I do this:
4.0.0
com.sensage
sensage
${sensage-version}
I do run "mvn -Dsensage-version=3.6"...
It works fine when I run from the top of the project down.
--
cg
-
To unsubscribe, e-mail: [EMAIL PROTECT
So I have a project with modules, and every module has its pom.xml file
with a reference to the parent, which must include the parent version.
All of these version numbers should be the same. I tried writing:
com.sensage
sensage
${project.version}
but this fails.
Is there no way to
Thanks, but it only ends up with the one jar in the project. How do I
get it to include all jars needed to run, as expressed in the
dependencies?
--
cg
Oops, sorry, the other nice person who answered has the clue...
Thanks again!
--
cg
Dirk Starke wrote:
Hello Christian,
I am just starting to use Maven 2, also had some problems to figure this
out, and perhaps I can help you. In my little project I created two
files in the src/main/assembly directory of my project.
Thanks, but it only ends up with the one jar in the projec
With this, I mean how do people ensure that the version number used in
the build is available at runtime? Do people generate a property file
with the version number and include it in the jar? Anyone have a nice
little example for this?
Thanks in advance...
--
cg <- an obvious maven2 newbie...
I've read the better builds with maven book, I've looked at
http://maven.apache.org/plugins/maven-assembly-plugin, but I'm still not
sure I understand how this is supposed to work.
I just want end up with a zip file containing all of the jars needed to
run the particular project I'm building.
What do people do to assemble all the jars required to run a specific
application (i.e. a specific jar), pack them and get them signed?
I currently use rpm for packing, and my idea was to explicitly list the
jars and sign them from the spec file, but perhaps there is a better way?
--
cg
Dan Tran wrote:
are you sure?
http://repo1.maven.org/maven2/org/apache/axis/axis/1.4/
Oh, I see it now - the groupid changed too that's going to be so
much fun down the road when repositories will have a gazillion things in
it and somebody decides to "clean up"
--
cg
-
Dan Tran wrote:
are you sure?
http://repo1.maven.org/maven2/org/apache/axis/axis/1.4/
OK, that's not the same as http://www.ibiblio.org/maven/. I'll add this
one to my proxy
--
cg
-
To unsubscribe, e-mail: [EMAIL PROTEC
Dan Tran wrote:
axis group has been moved to org/apache/axis, that could be the reason
why
nobody
bothers to fix the missing pom.
-
In ibiblio, I see org.apache.axis, and underneath I only see jars, not poms.
--
cg
-
To uns
Just wondering - examples include:
axis/axis-saaj/1.4/axis-saaj-1.4.pom
axis/axis-jaxrpc/1.4/axis-jaxrpc-1.4.pom
Of course I can create my own in my own proxy, but would like to know
whether there is a deeper reason.
--
cg
-
If this is a stupid question, I apologise in advance...
Given a dependency to a specific set of classes, how do people locate
the jar that provides it, together with the artifact and group ids? I
haven't yet found a better way than to search through ibiblio, hoping to
find something there - bu
Before I start on ther path of rolling my own, I was wondering if anyone
already did this
--
cg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
As the subject says...
I'm wondering if everything I pass in via a -D flag is available as a
${...} macro in the pom.xml file. Also, are environment variables
available? Is it possible to define or compute values within the pom.xml
file?
One of several reasons I'm asking is because I need to
92 matches
Mail list logo