Hi,
I have a project that uses a set of sample data for unittesting on the
project. Since there are many other developer on the project, this would
help them simulate the same working environment.
The test folders are in the project root- src/test/testdata/abc.doc and so
on... This has been a
Is there an easy way for a project to share an assembly descriptors
with all projects that have it as a parent or as a dependency? I've
tried various combinations of
build-helper-maven-plugin:attach-artifact,
maven-dependency-plugin:copy and
maven-dependency-plugin:copy-dependencies, but I'm
It would be good to have a sample that we can definitively identify where the
problem is to make sure it doesn't happen again.
-Original Message-
From: Matt Milliss [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 07, 2008 7:04 PM
To: Maven Users List
Subject: Re: Can't run ant task in
Hi Brian,
thank you! You are right this placeholders in g/a/v are causing me lots of
troubles.
But anyway, can you give some more information why this is so? My impression
is that this is something not deterministic. I mean sometime it may work,
but some time not.
regards, Dobri
On Wed, May 7,
me too!
2008/5/8 Keith Bonawitz [EMAIL PROTECTED]:
Thanks, this is just what I wanted. I look forward to seeing it on
central :-)
Keith
2008/5/4 Sherali Karimov [EMAIL PROTECTED]:
Just a clarification:
Download - will download (and optionally deploy to maven repo) licenses
of
all
Hi,
I should distribute a maven project which requires some libs at runtime
not contained in a maven repos.
What best practices should I follow? I think it's a common problem; not
all projects are mavenized (yet).
1. distribute these libs and suggest to use mvn install:install-file ?
2. put
I've written a very simple project and I now believe that the maven
version is not the problem as I can now reproduce the problem in 2.0.8
and 2.0.9. The issue seems to be the antrun plugin version 1.1 as
1.2-SNAPSHOT works okay. Below is the pom and ant file I used and run
mvn test, if I
Hi all,
I'm building an ear-project with maven. The generated ear-file must be
suitable for the IBM WebSphere application server (6.0 in my case).
I'm currently using the maven-ear-plugin. This plugin is able to
generate the necessary META-INF/application.xml file automatically.
However, for
Hi,
i try a simple site for maven with locale de, but i have a problem with
special characters (like german umlaut etc.).
the pom is:
plugins
plugin
artifactIdmaven-site-plugin/artifactId
version2.0-beta-6/version
configuration
localesde/locales
inputEncodingUTF-8/inputEncoding
Hello Thomas,
I've got the same issue, though, we are using WAS 6.1. The issue is related to
maven-ear-plugin and maven-eclipse-plugin. I've found a solution yet. I copy a
static file.
So, I'm looking forward to a solutions for this issue.
Kuno
-Ursprüngliche Nachricht-
Von: Arand,
I've done this in the past (before maven2) using an xdoclet maven1 plugin.
There is an XDoclet plugin available for maven2 too. I suggest you give it a
try. If you're totally stuck, i might be able to help you by providing you
the old xdoclet maven1 plugin configuration.
kind regards,
Wouter
Yes, you can.
Take a look at:
maven-assembly-plugin (version 2.2-beta-2 i believe)
Define an assembly descriptor project as
project
modelVersion4.0.0/modelVersion
artifactIdyour-artifact-id/artifactId
groupIdyour-group_id/groupId
versionyour-version/version
Hi,
using the Maven default project layout (
http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html),
what's best practice to put language property files to?
Currently we have them directly under WEB-INF/classes (under src as well as
under target), but I
You might need to write code in your unit tests for copying your test
resources from src/test/testdata to target/test-classes as I don't think you
could set this in the plugin config.
The other alternative is to move your test resources to src/test/resources
so that it automatically gets copied in
Hello,
I've created my first archetype and wanted to generate a project out of
this whith the following command.
mvn -up archetype:create
-DarchetypeGroupId=ch.corix
-DarchetypeArtifactId=corix-archetype
-DarchetypeVersion=1.0-SNAPSHOT
-DprojectName=Testproject
-DartifactId=testproject
L.S.,
How can I override the built-in ArchetypeGenerationConfigurator with my own
variant? I have built a custom Configurator class, created a
plexus/components.xml (see below) and added some information to the pom.xml
where I want to use the custom Configuraor (see below). What am I missing
Hi,
Do you know this one too ?
http://java.dzone.com/announcements/maven-license-plugin-130-relea
I haven't try both of them so I don't know which one is the best.
But it could be nice to merge the effort in order to have just one. Don't
you think ?
Rémy
I believe that this one is intended to manage license information
within each source file, e.g. copyright licensing comments at the
top of each .java file , whereas the licenseS plugin is intended to
manage separate project-level license files, e.g LICENSE.TXT files. I
can certainly imagine a
I agree totally and I finally just came to this forum to get answers.
Someone told me about Sonatype's document which is, in my observation,
the definitive reference for beginners on Maven. My personal, emerging
notes including a link to that document and other useful links can be
found at
You might want to start here:
http://www.sonatype.com/book/
I tried learning Maven from the website as well and found it nearly
impossible. I don't use the site as anything more than a reference
manual for plugin options.
Rick wrote:
I'm really struggling with the way the maven2 site is
I'm really struggling with the way the maven2 site is organized.
I'm on the getting started guide
http://maven.apache.org/guides/getting-started/index.html
I get to the point where it mentions How do I make my first Maven
project and it talks about Archetypes. I figured I'd like to see what
Awesome. thanks guys.
On Thu, May 8, 2008 at 10:12 AM, Chad La Joie [EMAIL PROTECTED] wrote:
You might want to start here:
http://www.sonatype.com/book/
I tried learning Maven from the website as well and found it nearly
impossible. I don't use the site as anything more than a reference
Option 1 is what most people will pick to solve this problem.
Alternatively, you can set up a Maven Repo yourself (with Archiva,
Nexus, Artifactory, etc) and add that lib to the repo, then add the
repo to the pom and it should be retrieved and used automatically. If
you are only dealing with
- Weitergeleitete Nachricht von [EMAIL PROTECTED] -
Datum: Wed, 7 May 2008 16:31:47 +0200
Von: [EMAIL PROTECTED]
Antwort an: [EMAIL PROTECTED]
Betreff: RE: WAR-Plugin: Manifest and optionaltrue/optional
not working :-/
An: Jörg Schaible [EMAIL PROTECTED]
On Thu, May 8, 2008 at 7:06 AM, Rick [EMAIL PROTECTED] wrote:
Eventually I give up and figure I'll browse the FAQ. There happens to
be a link How do I get a list of archetypes but when I click on it I
get a 404 http://svn.apache.org/viewvc/maven/archetype/trunk/maven-archetypes
The closest
Hi Rick-
Please update Maven 2 JIRA so engineers may be apprised
http://jira.codehaus.org/browse/MNGSITE-51
Thanks
Martin
- Original Message -
From: Rick [EMAIL PROTECTED]
To: users@maven.apache.org
Sent: Thursday, May 08, 2008 10:06 AM
Subject: site is very confusing for beginners -
Hi,
I'm using the javadoc plugin to generate aggregated docs. However due to
an exclude, one of the child modules has no more classes to javadoc
left, and mvn fails with the error:
Constructing Javadoc information...
1 error
[INFO]
Hi,
I'm trying to link to sun's external api docs when generating my javadoc
and have the following in my parent pom reporting plugin config:
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-javadoc-plugin/artifactId
configuration
Hi Rick,
This might help you search for existing archetypes:
http://docs.codehaus.org/display/MAVENUSER/Archetypes+List.
I too found the maven site to be confusing when I first started using
maven, though now that I'm more familiar with maven the site serves
quite well as a resource. You might
Hi,
Ok, a google search finally made me find this page (the search was not
related to linking):
http://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-mojo.html
and it gave me the idea to try links with nested link elements,
which worked. However, I cannot find a link to this mojo
This sounds like what I'm looking for, thanks! Unfortunately, I'm
having trouble locating
org.apache.maven.plugins:maven-assembly-artifact-types:2.2-beta-2 .
Does anyone know if this made it out of snapshot?
Thanks,
Keith
On Thu, May 8, 2008 at 7:37 AM, Wouter Hermeling [EMAIL PROTECTED] wrote:
Yes you have right, I wrote a little bit to fast.
I agree it would be nice to have just one plugin for both functionalities.
Rémy
On Thu, 8 May 2008, Arand, Thomas (NSN - DE/Muenich) wrote:
Hi all,
I'm building an ear-project with maven. The generated ear-file must be
suitable for the IBM WebSphere application server (6.0 in my case).
I'm currently using the maven-ear-plugin. This plugin is able to
generate the
Hi,
I do have a multimodule project:
pom -- (root)
| jar (module A)
| war (module B)
The war file is just a demo and in my opion not an artifact which should
be on central.
Is is sufficent for maven to say:
$cd moduleA
$mvn deploy
instead of
$cd root
$mvn deploy
Thanks
Hi,
I want to relase my project finally.
Now I do have a webspace and kept asking myself how to deploy artifacts.
I am looking for a best practice.
I can deploy the site on / and artifacts on /m2repo but the issue is
that I cannot separate both safely.
I thought to split to /docs and
On Thu, May 8, 2008 at 10:23 AM, Michael [EMAIL PROTECTED] wrote:
I do have a multimodule project:
pom -- (root)
| jar (module A)
| war (module B)
The war file is just a demo and in my opion not an artifact which should be
on central.
If the jar has a parent element, then
Wendy Smoak wrote:
On Thu, May 8, 2008 at 10:23 AM, Michael [EMAIL PROTECTED] wrote:
I do have a multimodule project:
pom -- (root)
| jar (module A)
| war (module B)
The war file is just a demo and in my opion not an artifact which should be
on central.
If the jar has a
Is there any way for dependency:copy-dependencies and
dependency:unpack-dependencies to consider parents (and all ancestors)
as dependencies?
Alternately, is there a way to automatically/implicitly add the parent
the parent as a dependency? I tried adding:
dependencies
On Thu, May 8, 2008 at 10:37 AM, Michael [EMAIL PROTECTED] wrote:
the jar has a parent element. Is it mandatory to deploy the root pom?
If you declare a dependency on the jar, Maven will complain if it
can't find the parent pom.
For some reason site.xml is deployed too.
That's expected, it's
Wendy Smoak wrote:
On Thu, May 8, 2008 at 10:37 AM, Michael [EMAIL PROTECTED] wrote:
the jar has a parent element. Is it mandatory to deploy the root pom?
If you declare a dependency on the jar, Maven will complain if it
can't find the parent pom.
I do have the jar declared as a dependency
Hi,
I have tried moving them to src/test/resources, but I have found that if I
have to create a file object of a file say abc.doc, present under
src/test/resources, then new File(abc.doc).exists() returns false always,
but the ClassLoader.getSystemResourceAsStream(abc.doc) != null returns
true.
The easiest way to see the archetypes is to run mvn archetype:generate
and it will give you a list and walk you through all the options.
-Original Message-
From: Doron Solomon [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 08, 2008 8:35 AM
To: Maven Users List
Subject: RE: site is very
The other thing you can do is override the distributionManagement
section of the module B so that deploy just puts it somewhere local like
file://${basedir}/target instead of the remote repo
-Original Message-
From: Michael [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 08, 2008 10:38 AM
Hi,
I'm using the following version:
Maven version: 2.0.7
Java version: 1.6.0_02-ea
OS name: windows xp version: 5.1 arch: x86
I placed the following code in the parent pom.xml file. When I run mvn
-Dmaven.test.skip=true site, maven executes the code in the pre-site
phase, but it never executes
Currently, no. Adding the parents as dependencies though is a little
scary because it could cause some recursion in transitive dep
resolution. You can however use dependency:copy or unpack and list them
in the artifactItems list to do what you want.
-Original Message-
From: [EMAIL
The parents must be found before the property interpolation can occur
and you essentially have a chicken or egg problem here.
-Original Message-
From: Dobri Kitipov [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 07, 2008 11:54 PM
To: Maven Users List
Subject: Re: Maven 2.0.7 and
It would only work I think if those properties are always defined on the
command line or in your settings.
-Original Message-
From: Dobri Kitipov [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 07, 2008 11:54 PM
To: Maven Users List
Subject: Re: Maven 2.0.7 and relativePath/
Hi Brian,
On Thu, May 8, 2008 at 6:29 PM, Tawfik, Sameh E
[EMAIL PROTECTED] wrote:
I placed the following code in the parent pom.xml file. When I run mvn
-Dmaven.test.skip=true site, maven executes the code in the pre-site
phase, but it never executes the code in the post-site phase?
See:
I'm trying to run a shell script from a maven goal.
Here's my definition
build
plugins
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdexec-maven-plugin/artifactId
executions
execution
goals
goalexec/goal
/goals
Hi,
I have successfully migrated my build system to maven2 using the
FreeHep-nar plugin since some of my code uses JNI. Every individual
artifact compiles, packages and installs perfectly. However, I am now
looking at distributing a single package containing the entire project.
I have tried
Sorry if this is covered somewhere but I've been looking at better
builds with maven guide, the website, and the Artifactory website but
I'm a bit confused on a few things (since chapter 7 is a bit
confusing.)
Currently my internal repository is set up using Artifactory and it
has a
On Thu, May 8, 2008 at 8:45 PM, Rick [EMAIL PROTECTED] wrote:
I have in my project pom:
distributionManagement
repository
idsnapshots/id
urldav:http://internalURL:8081/artifactory/libs-snapshots/url
/repository
/distributionManagement
If you
Or bind your goal to site since bound plugins always run after the
default bound plugins on the same phase.
-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 08, 2008 6:53 PM
To: Maven Users List
Subject: Re: maven does not run code specified in the
53 matches
Mail list logo