AW: How to create a report based on annotations

2010-05-18 Thread Lewis, Eric
Anyone? :-) -Ursprüngliche Nachricht- Von: Lewis, Eric [mailto:eric.le...@ipi.ch] Gesendet: Montag, 17. Mai 2010 11:07 An: Maven Users List Betreff: How to create a report based on annotations Hi I'd like to create a Maven report based on annotations (OVal annotations, to be

Re: mvn release:prepare fails with missing artifacts when project to be released runs an assembly

2010-05-18 Thread Markus Muenkel
I'm releasing a Maven2 multi-module project. One of the modules is a POM project (assembly project) that uses the maven-assembly-plugin in order to build an assembly (zip archive). The artifacts to be assembled are specified via dependencies in the POM. They point to modules contained in

Re: mvn release:prepare fails with missing artifacts when project to be released runs an assembly

2010-05-18 Thread Stephen Connolly
On 18 May 2010 08:40, Markus Muenkel markus.muen...@fernuni-hagen.dewrote: I'm releasing a Maven2 multi-module project. One of the modules is a POM project (assembly project) that uses the maven-assembly-plugin in order to build an assembly (zip archive). The artifacts to be assembled are

site-deploy: how to suppress password

2010-05-18 Thread oliver
Hi, I use Hudson together with Maven to copy the generated sites to a server via FTP (with 'mvn site-deploy'). The entry for distribution management looks like distributionManagement site idftp-project/id nameProject Website/name urlftp://ftp.somewhere.xy/url /site

Re: AW: How to create a report based on annotations

2010-05-18 Thread Lukas Theussl
No idea about the apt-maven-plugin, but for site customization, are you familiar with skins: http://maven.apache.org/plugins/maven-site-plugin/examples/creatingskins.html ? HTH, -Lukas Lewis, Eric wrote: Anyone? :-) -Ursprüngliche Nachricht- Von: Lewis, Eric

AW: AW: How to create a report based on annotations

2010-05-18 Thread Lewis, Eric
Yes, I know skins, but that's not what I meant. I meant how to create a rich report within a Maven plugin, using its standard images (if they exist) and formatting. Something like the output of http://mojo.codehaus.org/versions-maven-plugin/dependency-updates-report-mojo.html Best regards,

Re: AW: How to create a report based on annotations

2010-05-18 Thread Marshall Schor
On 5/18/2010 3:17 AM, Lewis, Eric wrote: Anyone? :-) -Ursprüngliche Nachricht- Von: Lewis, Eric [mailto:eric.le...@ipi.ch] Gesendet: Montag, 17. Mai 2010 11:07 An: Maven Users List Betreff: How to create a report based on annotations Hi I'd like to create a Maven report

Re: mvn release:prepare fails with missing artifacts when project to be released runs an assembly

2010-05-18 Thread Markus Muenkel
Am Tue, 18 May 2010 09:10:05 +0100 hat Stephen Connolly stephen.alan.conno...@gmail.com geschrieben: On 18 May 2010 08:40, Markus Muenkel markus.muen...@fernuni-hagen.dewrote: I'm releasing a Maven2 multi-module project. One of the modules is a POM project (assembly project) that uses

Re: mvn release:prepare fails with missing artifacts when project to be released runs an assembly

2010-05-18 Thread Markus Muenkel
Am Tue, 18 May 2010 09:10:05 +0100 hat Stephen Connolly stephen.alan.conno...@gmail.com geschrieben: On 18 May 2010 08:40, Markus Muenkel markus.muen...@fernuni-hagen.dewrote: I'm releasing a Maven2 multi-module project. One of the modules is a POM project (assembly project) that uses

AW: AW: How to create a report based on annotations

2010-05-18 Thread Lewis, Eric
Thanks, but it's not what I'm looking for. This describes how to customize your Maven site. But I want to know how to write a sophisticated report plugin. Best regards, Eric -Ursprüngliche Nachricht- Von: Marshall Schor [mailto:m...@schor.com] Gesendet: Dienstag, 18. Mai 2010 12:32

Is there a way to disable transitive dependencies?

2010-05-18 Thread AVSUNIL
Hi, I have project A which produces artifact as war. Project A has dependency on project B and it is mentioned in the pom of Project A. Now the build of Project A is acting indifferently in 2 environments a) When I am building from my local/development envionment, it builds the war with only

Re: Is there a way to disable transitive dependencies?

2010-05-18 Thread Morten Kjetland
Hi, If you decide to include the transient dependencies, a plugin called deptools can help you detect when wrong dependency-versions are chosen. You can have a look at it here: http://github.com/mbknor/deptools http://github.com/mbknor/deptoolsRegards, Morten On Tue, May 18, 2010 at 2:42 PM,

Re: Is there a way to disable transitive dependencies?

2010-05-18 Thread Nick Stolwijk
Are you sure you have the same maven version on both environments? And are you specifying all plugin versions? It is a best practice to specify the versions of all plugins you use. Different maven versions take different plugin versions. Use the enforcer plugin to enforce that you specify all

How to determine dependencies?

2010-05-18 Thread Dan King
Hi all, I'd like to use CXF's built-in clients, but rather than downloading all of the dependencies I'd like to pull only those jars that are relevant and needed for the clients. I ran mvn dependency:tree -Dincludes=org.apache.cxf (output is below). By examing the output of the dependency

Re: mvn release:prepare fails with missing artifacts when project to be released runs an assembly

2010-05-18 Thread Stephen Connolly
On 18 May 2010 11:56, Markus Muenkel markus.muen...@fernuni-hagen.dewrote: Am Tue, 18 May 2010 09:10:05 +0100 hat Stephen Connolly stephen.alan.conno...@gmail.com geschrieben: On 18 May 2010 08:40, Markus Muenkel markus.muen...@fernuni-hagen.de wrote: I'm releasing a Maven2

Re: Is there a way to disable transitive dependencies?

2010-05-18 Thread AVSUNIL
It is the same maven version. mvn -v gives 2.2.0 in both environments. It is the same pom and same proxy and remote repositories also. Still the build war in one environment has transitive dependency jars in it. Any ideas? Thanks Sunil -- View this message in context:

Re: Is there a way to disable transitive dependencies?

2010-05-18 Thread Anders Hammar
I just want to point out that there is not need to first call mvn compile and then mvn package. mvn package is sufficient as it includes all phases up to, and including, package. /Anders On Tue, May 18, 2010 at 14:42, AVSUNIL sunil...@infosys.com wrote: Hi, I have project A which produces

Re: Is there a way to disable transitive dependencies?

2010-05-18 Thread Andrew Close
On Tue, May 18, 2010 at 8:44 AM, AVSUNIL sunil...@infosys.com wrote: It is the same maven version. mvn -v gives 2.2.0 in both environments. It is the same pom and same proxy and remote repositories also. Still the build war in one environment has transitive dependency jars in it. Any ideas?

Re: Ear Plugin Version 5 issue

2010-05-18 Thread Wale12
I changed the earSourceDirectory./earSourceDirectory to earSourceDirectory${basedir}/earSourceDirectory No difference in my build though. Thanks. C. Wale12 wrote: I go into the maven repository to \org\apache\maven\plugins\maven-ear-plugin and delete the 2.4.1. folder then run the

Re: Is there a way to disable transitive dependencies?

2010-05-18 Thread Ron Wheeler
You can use exclusions to cut out transitive dependencies. In the following example, we want our lms-facades package but we do not want the faces and logging dragged in with it. dependency groupIdcom.artifact_software.lms/groupId artifactIdlms-facades/artifactId version1.8.1/version

Re: How to determine dependencies?

2010-05-18 Thread Ron Wheeler
Not a maven issue but something that we ran into. CXF makes a combined jar that you can use. If you do not use this beware of incorporating CXF jars into a single jar (jar-with-dependencies) since the individual CXF jars have duplicate property files that only contain the properties required

Re: Is there a way to disable transitive dependencies?

2010-05-18 Thread AVSUNIL
Hi Ron, I want to do something similar.. but I want to tell maven to exclude all dependencies instead of listing 9 to 11 inside it. Is there a way? dependency groupIdgroup_of_needed_dependecny/groupId artifactIdneeded_dependecny/artifactId version1.8.1/version exclusions exclusion

RE: mvn release:prepare fails with missing artifacts when project to be released runs an assembly

2010-05-18 Thread Jamie Whitehouse
The use of an explicit version is the problem. Instead of 0.0.3-SNAPSHOT try depending on ${project.version}. In my experience using the fixed version the assembly plugin (and others like the dependency copy goals) will use what's in the local repo not what's in the reactor. -Original

Re: How to determine dependencies?

2010-05-18 Thread Dan King
CXF makes a combined jar that you can use. Do you know where I can find this combined client jar? I've searched everywhere with no luck. If you do not use this beware of incorporating CXF jars into a single jar (jar-with-dependencies) since the individual CXF jars have duplicate property

Re: How to determine dependencies?

2010-05-18 Thread Daniel Kulp
On Tuesday 18 May 2010 11:04:07 am Dan King wrote: CXF makes a combined jar that you can use. Do you know where I can find this combined client jar? I've searched everywhere with no luck. If you do not use this beware of incorporating CXF jars into a single jar (jar-with-dependencies)

Re: How to determine dependencies?

2010-05-18 Thread Ron Wheeler
On 18/05/2010 11:04 AM, Dan King wrote: CXF makes a combined jar that you can use. Do you know where I can find this combined client jar? I've searched everywhere with no luck. Here is our maven dependency. It has a lot of exclusions since we have other poms that deal with Spring,

Re: How to determine dependencies?

2010-05-18 Thread Ron Wheeler
On 18/05/2010 11:08 AM, Daniel Kulp wrote: On Tuesday 18 May 2010 11:04:07 am Dan King wrote: CXF makes a combined jar that you can use. Do you know where I can find this combined client jar? I've searched everywhere with no luck. If you do not use this beware of

Exclude all transitive dependencies by version?

2010-05-18 Thread C. Benson Manica
I have a project which depends on artifacts which transitively depend on different Spring versions. I need to manually exclude all spring*-2.0.8 artifacts from being included in the project, since they don't play nicely with the 2.5 artifacts. How do I do this? The documentation has led me to

Re: Central repository, bundle-create and distribution of licenses

2010-05-18 Thread Bruno Harbulot
Hi, I've just submitted this issue: http://jira.codehaus.org/browse/MNG-4680 However, I'm told this wasn't the right place to submit. I'm not sure. To me, one of the key features of Apache Maven (if not the main feature) is its repository mechanism. This makes the redistribution of software

Re: Exclude all transitive dependencies by version?

2010-05-18 Thread Ron Wheeler
We have the same situation. Include the Spring that you need directly in a dependency in the POM and use exclusions on all versions of Spring in the dependencies that are transitively bringing in 2.0.x that you do not want. Ron On 18/05/2010 12:54 PM, C. Benson Manica wrote: I have a

Re: Central repository, bundle-create and distribution of licenses

2010-05-18 Thread Justin Edelson
I thought it was well-established that you should include the license inside binary and source artifacts. What exactly is your reason for thinking this isn't a good idea? Saying that it isn't obvious doesn't really count IMHO as this is highly subjective. Justin On 5/18/10 1:09 PM, Bruno

Re: Central repository, bundle-create and distribution of licenses

2010-05-18 Thread Ron Wheeler
On 18/05/2010 1:09 PM, Bruno Harbulot wrote: Hi, I've just submitted this issue: http://jira.codehaus.org/browse/MNG-4680 However, I'm told this wasn't the right place to submit. I'm not sure. To me, one of the key features of Apache Maven (if not the main feature) is its repository

Deploying site updates to Apache websites

2010-05-18 Thread Marshall Schor
I'm investigating using Maven site-deploy to update parts of our site on Apache. Currently, we don't use maven site-deploy for this; instead we put the generated content (html, etc.) into svn, and then go to people.apache.org and checkout or svn update into a directory there /www/x.y.z/etc

Re: Central repository, bundle-create and distribution of licenses

2010-05-18 Thread Bruno Harbulot
On 18/05/2010 18:25, Justin Edelson wrote: I thought it was well-established that you should include the license inside binary and source artifacts. What exactly is your reason for thinking this isn't a good idea? Saying that it isn't obvious doesn't really count IMHO as this is highly

Re: Central repository, bundle-create and distribution of licenses

2010-05-18 Thread Bruno Harbulot
On 18/05/2010 18:33, Ron Wheeler wrote: 1) If people are distributing their own software in violation of their own licensing, it is their problem. 2) If people are distributing other people's software in violation of the licencing, they should stop. Hard to see how this is a Maven problem or

Re: Exclude all transitive dependencies by version?

2010-05-18 Thread Anders Hammar
http://maven.apache.org/guides/introduction/introduction-to-optional-and-excludes-dependencies.html Look under Dependency Exclusions. /Anders On Tue, May 18, 2010 at 19:21, Ron Wheeler rwhee...@artifact-software.comwrote: We have the same situation. Include the Spring that you need directly

Re: Deploying site updates to Apache websites

2010-05-18 Thread Brian Fox
Take a look at the maven pom for an example: http://svn.apache.org/viewvc/maven/pom/trunk/ On Tue, May 18, 2010 at 2:02 PM, Marshall Schor m...@schor.com wrote: I'm investigating using Maven site-deploy to update parts of our site on Apache.  Currently, we don't use maven site-deploy for this;

Re: Central repository, bundle-create and distribution of licenses

2010-05-18 Thread Justin Edelson
On 5/18/10 2:50 PM, Bruno Harbulot wrote: On 18/05/2010 18:25, Justin Edelson wrote: I thought it was well-established that you should include the license inside binary and source artifacts. What exactly is your reason for thinking this isn't a good idea? Saying that it isn't obvious

Re: Central repository, bundle-create and distribution of licenses

2010-05-18 Thread Ron Wheeler
On 18/05/2010 2:52 PM, Bruno Harbulot wrote: On 18/05/2010 18:33, Ron Wheeler wrote: 1) If people are distributing their own software in violation of their own licensing, it is their problem. 2) If people are distributing other people's software in violation of the licencing, they should

how to move folder from res to res${BUILD_NUMBER} in maven?

2010-05-18 Thread Dean Hiller
Our resource folder in webapps named res(which has images, js, css, etc) is renamed every release. This then makes it so when we fix a css, customers get the fresh one instead of the old stale one from their cache(ie. they get the fix we made since this folder is always renamed). So, in maven, I

Re: Central repository, bundle-create and distribution of licenses

2010-05-18 Thread Bruno Harbulot
On 18/05/2010 20:45, Ron Wheeler wrote: On 18/05/2010 2:52 PM, Bruno Harbulot wrote: But how is a repository to know 1) Who is allowed to upload? 2) What, if any, license scheme the person uses. I can make up my own license and I don't think that copyright or any law depends on a copy of the

Re: Central repository, bundle-create and distribution of licenses

2010-05-18 Thread Justin Edelson
On Tue, May 18, 2010 at 5:48 PM, Bruno Harbulot bruno.harbu...@manchester.ac.uk wrote: On 18/05/2010 20:33, Justin Edelson wrote: Clarification of the documentation and/or mechanisms on how to redistribute the licences properly with the software is what I'm suggesting. In terms of core

Re: Central repository, bundle-create and distribution of licenses

2010-05-18 Thread Brian Fox
The MAVENUPLOAD issue you refer to was processed by hand. This is something we've worked to stop and automate, so it's not really relevant what happened it was 2 years ago. That said, I don't know if LICENSE.txt inside the new bundle format would be handled any differently because LICENSE.txt is

Re: Central repository, bundle-create and distribution of licenses

2010-05-18 Thread Bruno Harbulot
On 19/05/2010 00:41, Brian Fox wrote: The MAVENUPLOAD issue you refer to was processed by hand. This is something we've worked to stop and automate, so it's not really relevant what happened it was 2 years ago. That said, I don't know if LICENSE.txt inside the new bundle format would be

Re: Adding application generated content to site

2010-05-18 Thread Rob Greene
Thanks for the suggestions! I found yet a ... fourth? ... method to do this: I used the exec-maven-plugin which runs the 'main' method in a class. I wrote a quick app that loaded the object models to be documented (everything here is reused, of course, so nothing new). Once loaded, I then

Re: Central repository, bundle-create and distribution of licenses

2010-05-18 Thread Brian Fox
Does that follow more or less the new guidelines? Are you saying that I should have jsslutils-1.0-licence.txt next to the other jars in the bundle instead (sorry, I can't see licence files in the screenshots on that blog entry). No, I'm saying if you wanted the license sitting in the folder