I'd like to stress that Jesse explains the true Maven way. This is how this
should be done if you want to enjoy simple and correct dependency management
through Maven.
Using classifiers will make your two (for instance) artifacts have the same
dependencies. As I've stated before, classifiers are mo
you have to be clear about what I will call as "release roots"
A release root is a project that has an section.
It will typically be an aggregator project (i.e. packaging=pom &&
modules.size()>0) but it does not need to be.
If it is a parent project (i.e. at least one of the modules it
aggregat
I'm guessing that when you do the release of the child module, a
snapshot-version of the parent is actually being used as that's what your
child pom specifies. The snapshot-version is in your local repo (or a remote
repo) and still has all the properties in the scm url (it's just the
released versi
Hi,
I'm using maven-release-plugin 2.0-beta9 and I'm still getting urls
rewritten at each deployment.
http://jira.codehaus.org/browse/MRELEASE-231 is been closed quite a while
ago, so many we're not speaking about the same rewriting.
The way we use the tag in our organization is trough a pare
Thats what Im talking about. Try to follow maven-way style and you would get
minimal amount of problems.
2009/12/3 Dan Tran
> the reason to make module name to have the same name as artifactId is
> so that you dont have define your scm element in every child pom. All
> Maven needs to the top po
the reason to make module name to have the same name as artifactId is
so that you dont have define your scm element in every child pom. All
Maven needs to the top pom.xml's scm to figure out out scm element of
the child module. this is crucial when cutting a release the maven
way using its infam
2009/12/3 Alexander
> Yeah, thats right.
>
> There are some problems?
>
I have tested it ,and I found that the module configed in the pom just
referred to the module directory so the module artifact id can changed as
one want .
>
> 2009/12/3 maven apache
>
> > 2009/12/3 Alexander
> >
> > > Mav
Yeah, thats right.
There are some problems?
2009/12/3 maven apache
> 2009/12/3 Alexander
>
> > Maven way is to name module directory as module artifact id.
> >
> I want to rename the module since the old project are not well named.So I
> should rename both the module directory and module artif
2009/12/3 Alexander
> Maven way is to name module directory as module artifact id.
>
I want to rename the module since the old project are not well named.So I
should rename both the module directory and module artifact id?
>
> 2009/12/3 maven apache
>
> > Hi:
> > I want to know how do maven fin
Maven way is to name module directory as module artifact id.
2009/12/3 maven apache
> Hi:
> I want to know how do maven find the module of the parent project:
> for example in the root project whose packaging is pom and the directory is
> C:/project, I define the following modules:
> -
> ma
Hi:
I want to know how do maven find the module of the parent project:
for example in the root project whose packaging is pom and the directory is
C:/project, I define the following modules:
-
maven
platform
main
--
So the module "maven" should be a directory under the C:/proj
http://maven.apache.org/plugins/maven-war-plugin/examples/war-manifest-guide.html
According to this guide, marking dependency as optional=true should be
regarded by war plugin to not copy jars in web-inf / lib
I cant get it to work without packagingExcludes
If I want to copy some jars in web-in
Hi KJ,
On Wed, Dec 2, 2009 at 3:19 PM, K J wrote:
> Does anyone have any examples or tips about how to handle the
> generation of multiple artifacts based on a shared model? For example,
> I have a project which needs to produce both Java and ActionScript
> code based on a shared UML model. I'm h
Hello,
I've followed the instructions for building Maven
(http://maven.apache.org/guides/development/guide-building-m2.html) but I am
not sure what to do after the "mvn install" step. I am trying to get up and
running with Maven 3.x (trunk). I am building with Maven 2.2.1. I thought the
output
Since the build artifacts are output of the same source, they should
part of the same module. Use classifiers to specify the different
artifacts. If you are using custom scripts to produce the output (i.e.
not plugins that attach additional artifacts automatically), use
buildhelper plugin to attach
Hi,
When I am packaging a WAR artifact which indirectly depends on 1.0-SNAPSHOT
version of XYZ.jar, somehow XYZ-1.0.jar is actually packaged
inside the WAR file.
This is happening with some artifacts.
Wouldn't the latest copy of XYZ-1.0.jar get picked up from the
repository and get renamed to XY
Does anyone have any examples or tips about how to handle the
generation of multiple artifacts based on a shared model? For example,
I have a project which needs to produce both Java and ActionScript
code based on a shared UML model. I'm having trouble figuring out how
to best setup and manage thes
I have done enough research and found a few things.
1. 2.0-beta-10 partially addresses this issue, but that is not a desired
solution (will explain this later)
2. Better not to rely on the maven release plugin if you want to save some
time before they fix it completely.
I have multiple flat multi
Wendy Smoak-3 wrote:
>
> On Wed, Oct 29, 2008 at 1:45 PM, miro wrote:
>>
>> please tell me repository where I can find all dependency for an
>> application
>> using hibernate , spring, wicket jdk 1.6
>
> It depends on exactly what artifacts and version numbers you need, but
> most of that shou
Hi all,
Apache Pivot is preparing for graduation, and we would like to upload our next
set of release artifacts to the central Maven repository. We don't currently
use Maven as a build tool, so I have been trying to follow the manual upload
instructions listed here:
http://www.apache.org/dev/r
Thanks Milos, is there a variable for like for className,
packageClassName?
Toni
Bugzilla from mkle...@gmail.com wrote:
>
> I would say you need to change the Run project action mapping in the ide
> not
> to use mvn exec:exec to execute "java -cp " but to execute
> :java
> -jar "
>
> Regards
or somehow generate the manifest file in the target area.
Milos
On Wed, Dec 2, 2009 at 6:02 PM, Milos Kleint wrote:
> I would say you need to change the Run project action mapping in the ide
> not to use mvn exec:exec to execute "java -cp " but to execute
> :java -jar "
>
> Regards
>
>
> Milos
I would say you need to change the Run project action mapping in the ide not
to use mvn exec:exec to execute "java -cp " but to execute :java
-jar "
Regards
Milos Kleint
On Wed, Dec 2, 2009 at 5:46 PM, eppleton wrote:
>
> Hi,
>
> I've created a Maven Project in NetBeans. It writes an entry in
Hi,
I've created a Maven Project in NetBeans. It writes an entry into the JARs
manifest. That works fine. At runtime I'm reading that entry (which points
to a configuration file) and use it for configuration. That works fine as
well…
The problem is, that when running the project from the IDE in
As you suggest you can also read them in from somewhere. Create a test
resources property file that gets filtered and read that. Much simpler
and easier to maintain when there's more than a few properties.
-Original Message-
From: Dan Tran [mailto:dant...@gmail.com]
Sent: Wednesday, Dec
MavenSession?
2009/12/2 Gajo Csaba :
> Hello,
>
> Is there a way I can share some values between mojos, and so that they
> aren't Strings? I know that there is a mavenProject.getProperties() thing
> which can be used, but in this case I would like to share a HashMap.
>
> Regards, Csaba
>
>
>
>
> -
Hello,
Is there a way I can share some values between mojos, and so that they
aren't Strings? I know that there is a mavenProject.getProperties()
thing which can be used, but in this case I would like to share a HashMap.
Regards, Csaba
-
You need to pass them in explicitly using surefire plugin's properties
configuration
-D
On Wed, Dec 2, 2009 at 4:55 AM, Costin Caraivan wrote:
>
> Hello,
>
> Does Maven pass the default properties to a Junit test launched? If so, how
> can I access them?
>
> For example I would like to know ${pr
Hello,
Does Maven pass the default properties to a Junit test launched? If so, how
can I access them?
For example I would like to know ${project.groupId} or ${project.version}.
Is there any way I can access these from the Junit tests?
Thank you,
Costin.
PS: What I really want to know if there
Hello,
I have a mojo which requires a project. When it starts, it gets the
project's build plugins, searches for a specific one, and then takes its
configuration and changes is. The configuration is an Xpp3Dom object,
which I convert to String with toString()... but how do I convert that
Stri
Hello,
I have some questions about assembly and inheritance...
Purpose is to generate a tar.gz archive, containing a text file with the
list of checksums of the tar.gz content (excluding the checksums file itself
of course).
So the wanted order of execution would be :
- call assembly plugin with "
As you say you either grant anonymous access to the repo or you don't. If
you don't allow anonymous access, every user needs to provide his/her
credentials. This is what the user specific settings.xml file is for. Put it
there.
If you think that creating that file is difficult for a user, you need
Hi. Here is my situation: we have an internal repository that used HTTP basic
authentication. This repository is defined in the parent pom of the project
to create a portable build. However, when I check this project out along
with its submodules, mvn package doesn't download the dependencies, as
Seems as we keep on repeating this best-practice. Still people try to prove
us wrong...
/Anders
2009/12/2 Tamás Cservenák
> Hi there,
>
> This thread started at Mon, Nov 9, 2009 at 8:00 PM, and last response is
> sent on Tue, Dec 1, 2009 at 11:58 PM (my local TZ, but i want to point out
> the d
Golder rule of build scripts: If they are not broken, don't fix them
Now if you want to refactor your build scripts from ANT to Maven
(which IMHO is a good thing) here is what I would recommend:
1. Set up a Maven Repository Manager (I use nexus, but there are
others, e.g. artifactory)
2. Start b
Hi there,
This thread started at Mon, Nov 9, 2009 at 8:00 PM, and last response is
sent on Tue, Dec 1, 2009 at 11:58 PM (my local TZ, but i want to point out
the duration).
Installing _any_ MRM out there lasts certainly well under 1 hrs (some of
them even under 10 minutes if you don't count the d
Well, set up a repository manager for your project then. Setting up Nexus
shouldn't take more than half a day and it doesn't require a super computer.
Then deploy the artifacts there.
As stated in many threads by many people, if you fight Maven you'll just be
sorry and likely you'd be better off st
Hi Anders
You are right. Unfortunately all the product builds are ant builds and there
is no central repository concept which holds the artifacts in the way that
is prescribed by maven. Again i cannot change all those pieces one shot. I
want to try this out on one project and then slowly work on m
38 matches
Mail list logo