Use the <packaging>pom</packaging> if you don't create any other
artifacts. The other packaging types come with lifecycles that will not
do what you want. Even with "pom" packaging, you can still attach files
if needed using assembly:attach or build-helper:attach.
 

-----Original Message-----
From: Eric Redmond [mailto:[EMAIL PROTECTED] 
Sent: Saturday, January 20, 2007 11:40 AM
To: Maven Users List
Subject: Re: Using maven 2 on something not a project?

If you're getting syntax errors, its probably your pom's syntax. That
has nothing to do with your project structure that would give errors of
other kinds.

To answer your question: it is ok to not create artifacts. Artifact
creation is only (usually) done at the package phase anyway, so as long
as you execute a phase before it - or only execute goals (that don't
create artifacts - or require a project structure you don't honor) you
should be fine.

Eric

On 1/20/07, Steinar Bang <[EMAIL PROTECTED]> wrote:
>
> Is it possible to create a maven pom.xml that just does stuff, without

> creating an artifact that can be uploaded to the maven repository?
>
> Ie. is it possible to have a pom.xml that just pulls stuff out of the 
> local repo, without actually building an artifact of its own?
>
> To clarify:
>
> I've been using the maven 2 dependency plugin[1] to copy OSGi bundles 
> built with maven into a directory that can be used as the eclipse PDE 
> target platform.  This is basically a directory containing both the 
> bundles that make up the eclipse runtime (copied from the eclipse 
> installation with rsync), and the bundles copied in by the dependency 
> plugin.
>
> I've used the dependency plugin as a side effect of building the OSGi 
> bundles, and installing them into my local maven repository.
>
> What I want to do, is to create a pom.xml file that creates an eclipse

> PDE target platform, by pulling out the eclipse runtime, installed by 
> eclipse:make-artifacts[2], and some OSGi bundles created separately 
> (as well as their dependencies), out of my local maven repository.
>
> The pom.xml I've tried to create, by cut and paste from the maven 
> dependency plugin invocations in the POMs that actually build the 
> bundles, have so far resulted in syntax errors when trying to run 
> them.
>
> Is what I'm trying to do possible?  Is it a misuse of maven?
>
> Thanx!
>
>
> - Steinar
>
>
> References:
> [1] 
> <http://mojo.codehaus.org/dependency-maven-plugin/introduction.html>
> [2] <
> http://maven.apache.org/plugins/maven-eclipse-plugin/make-artifacts-mo
> jo.html
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Eric Redmond
http://codehaus.org/~eredmond



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to