Maven Site Generation for foreign projects

2013-12-18 Thread Ralf Zahn
Hi,

does the maven-site-plugin support the generation of websites that include 
artifacts (that are downloaded into the site directory during maven build 
from the maven repository) and a download page for them?

I have a POM that includes modules (dependent from the profile that is 
currently active) and do not want to configure this pom for site 
generation. Instead, I have another project for site generation that can 
refer to the modules (artifacts within the maven repository). The result 
should be a web site that hosts these artifacts incl. a download page.

My current solution is
 - use the maven dependency plugin to copy the artifacts into the site 
output directory (path is managed with one maven property per artifact)
 - download.apt.vm that creates one link per artifact using the maven 
property

But this is not that generic as it could be. Is there any support for 
that?

Greetings,
Ralf Zahn

ARS Computer und Consulting GmbH, http://www.ars.de
Ridlerstrasse 55, 80339 Muenchen, Deutschland

Application Development Services, Business Transformation Services, IT 
Infrastruktur Services
Beratung und Vertrieb zu IBM Software, System x, POWER Systems, Storage
License Management Services, IBM Passport Advantage Lizenzierung

Handelsregister Muenchen, HRB 101829, USt-ID: DE 155 068 909
Geschaeftsfuehrer: Michael Arbesmeier, Kai-Uwe Rommel, Roland Schock, 
Joachim Gucker



Re: Maven Site Generation for foreign projects

2013-12-18 Thread Russell Gold
Hi Ralf,

You should be able to create your own pages to do just about anything you want 
- but you could lose the automatic reporting that Maven supports per module, if 
you are not generating the site from the module poms themselves. Why do you not 
want to configure the build pom for site generation? It shouldn’t add all that 
much.

Regards,
Russ

On Dec 18, 2013, at 3:11 PM, Ralf Zahn  wrote:

> Hi,
> 
> does the maven-site-plugin support the generation of websites that include 
> artifacts (that are downloaded into the site directory during maven build 
> from the maven repository) and a download page for them?
> 
> I have a POM that includes modules (dependent from the profile that is 
> currently active) and do not want to configure this pom for site 
> generation. Instead, I have another project for site generation that can 
> refer to the modules (artifacts within the maven repository). The result 
> should be a web site that hosts these artifacts incl. a download page.
> 
> My current solution is
> - use the maven dependency plugin to copy the artifacts into the site 
> output directory (path is managed with one maven property per artifact)
> - download.apt.vm that creates one link per artifact using the maven 
> property
> 
> But this is not that generic as it could be. Is there any support for 
> that?
> 
> Greetings,
> Ralf Zahn
> 
> ARS Computer und Consulting GmbH, http://www.ars.de
> Ridlerstrasse 55, 80339 Muenchen, Deutschland
> 
> Application Development Services, Business Transformation Services, IT 
> Infrastruktur Services
> Beratung und Vertrieb zu IBM Software, System x, POWER Systems, Storage
> License Management Services, IBM Passport Advantage Lizenzierung
> 
> Handelsregister Muenchen, HRB 101829, USt-ID: DE 155 068 909
> Geschaeftsfuehrer: Michael Arbesmeier, Kai-Uwe Rommel, Roland Schock, 
> Joachim Gucker
> 

-
Author, Getting Started with Apache Maven 


Come read my webnovel, Take a Lemon , 
and listen to the Misfile radio play !









Re: Question: Maven Pathes includes and others

2013-12-18 Thread Russell Gold
Hi Martin,

On Dec 13, 2013, at 9:37 AM, Hoffmann Martin (UniCredit Business Integrated 
Solutions)  wrote:

>
>
> ${basedir}/${project.parent.relativePath}
>


Can you confirm that this is being defined correctly? My initial reaction is 
that this is actually pointing to the directory above your project, which would 
cause the file not to be found.

But in general, I presume that you are getting some kind of error message, or 
else can get the test to dump the path it is using to find the property file. 
If you could show us that and compare it with the proper path, that would be 
useful information.


Regards,
Russ
-
Author, Getting Started with Apache Maven 


Come read my webnovel, Take a Lemon , 
and listen to the Misfile radio play !









How to add a dependency programmatically for the compile phase?

2013-12-18 Thread William Ferguson
Hi,

I would like to know how to add a dependency (such as a jar) into the
project's list of compile time dependencies programmatically within a Mojo.
Benoit should probably have posted this in Maven Users rather than
Maven Dev, so I'm reposting here.

We are developing a Mojo that needs to add some dependencies into the
project list of compile time dependencies programmatically. I was sure
that I've seen code that did this, but I can't find it now. Can anyone
point us in the right direction?

William

-- Benoit's original post --

I require to do this programmatically because the user set a dependency of
type "aar"(1) which itself contains a jar.
This jar needs to be known by the compile phase (in order to succeed)
Note: the compile phase knows about the aar dependency.

(1) Aar format:http://tools.android.com/tech-docs/new-build-system/aar-format

Other conversations:
About AAR & the included
JAR:https://groups.google.com/forum/#!topic/maven-android-developers/bPK3EnbKH2M

Programmatically adding dependencies to a MavenProject: (this conversation
led to a hacky 
solution)http://maven.40175.n5.nabble.com/Programmatically-adding-dependencies-to-a-MavenProject-td215077i20.html#a5773302


Re: How to add a dependency programmatically for the compile phase?

2013-12-18 Thread Anders Hammar
I don't have the code at hands on how to do what you're asking, but I
wanted to stress that changing the dependency list in a plugin will only
affect that list during the build where your plugin is executed. Any
consumers of your artifact (from the repo) will not get this dependency, as
the plugin is then not executed! Maybe you can solve this with a custom
packaging type and a special ArtifactHandler, but I'm not sure.

/Anders



On Thu, Dec 19, 2013 at 5:25 AM, William Ferguson <
william.fergu...@xandar.com.au> wrote:

> Hi,
>
> I would like to know how to add a dependency (such as a jar) into the
> project's list of compile time dependencies programmatically within a Mojo.
> Benoit should probably have posted this in Maven Users rather than
> Maven Dev, so I'm reposting here.
>
> We are developing a Mojo that needs to add some dependencies into the
> project list of compile time dependencies programmatically. I was sure
> that I've seen code that did this, but I can't find it now. Can anyone
> point us in the right direction?
>
> William
>
> -- Benoit's original post --
>
> I require to do this programmatically because the user set a dependency of
> type "aar"(1) which itself contains a jar.
> This jar needs to be known by the compile phase (in order to succeed)
> Note: the compile phase knows about the aar dependency.
>
> (1) Aar format:
> http://tools.android.com/tech-docs/new-build-system/aar-format
>
> Other conversations:
> About AAR & the included
> JAR:
> https://groups.google.com/forum/#!topic/maven-android-developers/bPK3EnbKH2M
>
> Programmatically adding dependencies to a MavenProject: (this conversation
> led to a hacky solution)
> http://maven.40175.n5.nabble.com/Programmatically-adding-dependencies-to-a-MavenProject-td215077i20.html#a5773302
>


Re: Maven Site Generation for foreign projects

2013-12-18 Thread Ralf Zahn
Hi,

thanks for your reply. The automatic reporting is not that important for 
me. More important is the independency from the build configuration that 
is done within the aggregator pom. In other words, building the project 
with all its modules is one thing, creating the website containing the 
project (or parts of it, or multiple versions built by using different 
profiles) is more important for me. If I need parts of the automatic 
reporting, I could create the site for the projects too and collect them 
during the website build. But this would require to configure the site 
generation equal to the website. (I use the Reflow Maven Skin for example)

So what I need is a site generation where I have the flexibility to choose 
some artifacts manually instead of using the artifacts. And it would be 
great only to configure the site generating project, not the included 
artifacts/modules. I know that it could be done easily with parent poms, 
but this is very invasive IMHO.

Regards,
Ralf

Russell Gold  wrote on 18.12.2013 21:15:53:

> From: Russell Gold 
> To: Maven Users List 
> Date: 18.12.2013 21:16
> Subject: Re: Maven Site Generation for foreign projects
> 
> Hi Ralf,
> 
> You should be able to create your own pages to do just about 
> anything you want - but you could lose the automatic reporting that 
> Maven supports per module, if you are not generating the site from 
> the module poms themselves. Why do you not want to configure the 
> build pom for site generation? It shouldn?t add all that much.
> 
> Regards,
> Russ
> 
> On Dec 18, 2013, at 3:11 PM, Ralf Zahn  wrote:
> 
> > Hi,
> > 
> > does the maven-site-plugin support the generation of websites that 
include 
> > artifacts (that are downloaded into the site directory during maven 
build 
> > from the maven repository) and a download page for them?
> > 
> > I have a POM that includes modules (dependent from the profile that is 

> > currently active) and do not want to configure this pom for site 
> > generation. Instead, I have another project for site generation that 
can 
> > refer to the modules (artifacts within the maven repository). The 
result 
> > should be a web site that hosts these artifacts incl. a download page.
> > 
> > My current solution is
> > - use the maven dependency plugin to copy the artifacts into the site 
> > output directory (path is managed with one maven property per 
artifact)
> > - download.apt.vm that creates one link per artifact using the maven 
> > property
> > 
> > But this is not that generic as it could be. Is there any support for 
> > that?
> > 
> > Greetings,
> > Ralf Zahn
> > 
> > ARS Computer und Consulting GmbH, http://www.ars.de
> > Ridlerstrasse 55, 80339 Muenchen, Deutschland
> > 
> > Application Development Services, Business Transformation Services, IT 

> > Infrastruktur Services
> > Beratung und Vertrieb zu IBM Software, System x, POWER Systems, 
Storage
> > License Management Services, IBM Passport Advantage Lizenzierung
> > 
> > Handelsregister Muenchen, HRB 101829, USt-ID: DE 155 068 909
> > Geschaeftsfuehrer: Michael Arbesmeier, Kai-Uwe Rommel, Roland Schock, 
> > Joachim Gucker
> > 
> 
> -
> Author, Getting Started with Apache Maven  getting-started-with-apache-maven/video>
> 
> Come read my webnovel, Take a Lemon , 
> and listen to the Misfile radio play <
http://www.fuzzyfacetheater.com/misfile/
> >!
> 
> 
> 
> 
> 
> 
> 


ARS Computer und Consulting GmbH, http://www.ars.de
Ridlerstrasse 55, 80339 Muenchen, Deutschland

Application Development Services, Business Transformation Services, IT 
Infrastruktur Services
Beratung und Vertrieb zu IBM Software, System x, POWER Systems, Storage
License Management Services, IBM Passport Advantage Lizenzierung

Handelsregister Muenchen, HRB 101829, USt-ID: DE 155 068 909
Geschaeftsfuehrer: Michael Arbesmeier, Kai-Uwe Rommel, Roland Schock, 
Joachim Gucker



[ANN] Tidy Maven Plugin 1.0-alpha-2 Released

2013-12-18 Thread Anders Hammar
Hi,

The Mojo team is pleased to announce another pre-release of the Tidy Maven
Plugin, version 1.0-alpha-2.


The Tidy Plugin is used when you want to sort the sections of a pom.xml
into the canonical order.

http://mojo.codehaus.org/tidy-maven-plugin/


Release Notes:

** Bug
* [MOJO-1942] - Whitespace gets mangled
* [MOJO-1943] - Additional tabs inserted
* [MOJO-1989] - tidy:pom drops some CR chars in new line on Windows

** Improvement
* [MOJO-1939] - Preserve tabs while sorting pom
* [MOJO-1983] - Add xml declaration


Enjoy,
The Mojo team.

/Anders