Re: Install/deploy a project with a single file

2007-06-13 Thread Eric Redmond

Looks like you need to create a custom extension:

http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html

Eric

On 6/12/07, Rahamim, Zvi (Zvi) <[EMAIL PROTECTED]> wrote:


Thank you all for your answers,
Some comments:
1. The single file is used by different projects, this is the reason I
want it to be in a separate project.
2. I don't want it to be packaged, but I want it to be as is.
Zvi

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 10, 2007 9:50 PM
To: Maven Users List
Subject: Re: Install/deploy a project with a single file

On 6/10/07, Rahamim, Zvi (Zvi) <[EMAIL PROTECTED]> wrote:

> I have a project with only a single xml file.
> What should I define in the pom.xml file so that it will be installed
> and deployed?

If you really want that file to be "the artifact" then I suppose you'd
have to invent a new packaging type and a plugin for it.  See
'Specifying a New Packaging', here:
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycl
e.html

But... what problem are you trying to solve here?  Making that xml file
available to be included in various other modules, or... ?  Often
telling us what you're trying to accomplish will get you better answers
than asking how to implement whatever solution you've arrived at on your
own.

--
Wendy

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

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





--
Eric Redmond
http://www.sonatype.com


RE: Install/deploy a project with a single file

2007-06-12 Thread Rahamim, Zvi (Zvi)
Thank you all for your answers,
Some comments:
1. The single file is used by different projects, this is the reason I
want it to be in a separate project.
2. I don't want it to be packaged, but I want it to be as is.
Zvi

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Sunday, June 10, 2007 9:50 PM
To: Maven Users List
Subject: Re: Install/deploy a project with a single file

On 6/10/07, Rahamim, Zvi (Zvi) <[EMAIL PROTECTED]> wrote:

> I have a project with only a single xml file.
> What should I define in the pom.xml file so that it will be installed 
> and deployed?

If you really want that file to be "the artifact" then I suppose you'd
have to invent a new packaging type and a plugin for it.  See
'Specifying a New Packaging', here:
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycl
e.html

But... what problem are you trying to solve here?  Making that xml file
available to be included in various other modules, or... ?  Often
telling us what you're trying to accomplish will get you better answers
than asking how to implement whatever solution you've arrived at on your
own.

--
Wendy

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

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



Re: Install/deploy a project with a single file

2007-06-11 Thread Christian Kalkhoff

Hi,

depends largely on what you want to deploy it as. As a JAR or a RAR  
(Resource Archive) or something else. Look at the maven plugin page  
for plugins resembling your artifact type.


Regards,

Christian

Am 10.06.2007 um 18:21 schrieb Rahamim, Zvi (Zvi):


Hi,
I have a project with only a single xml file.
What should I define in the pom.xml file so that it will be installed
and deployed?
Thanks

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



--
Christian Kalkhoff <[EMAIL PROTECTED]>
Softwareentwickler und Administrator
http://ninan.info
http://www.kalkhoff.net




PGP.sig
Description: Signierter Teil der Nachricht


Re: Install/deploy a project with a single file

2007-06-10 Thread Vandermeeren, Jo

Hi,

Just wrap it up as a jar-packaged module, put the xml in src/main/resources
and you should be fine.
Remember to lookup the xml file via the classpath.

Cheers
Jo

On 6/10/07, Rahamim, Zvi (Zvi) <[EMAIL PROTECTED]> wrote:


Hi,
I have a project with only a single xml file.
What should I define in the pom.xml file so that it will be installed
and deployed?
Thanks

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




Re: Install/deploy a project with a single file

2007-06-10 Thread Wendy Smoak

On 6/10/07, Rahamim, Zvi (Zvi) <[EMAIL PROTECTED]> wrote:


I have a project with only a single xml file.
What should I define in the pom.xml file so that it will be installed
and deployed?


If you really want that file to be "the artifact" then I suppose you'd
have to invent a new packaging type and a plugin for it.  See
'Specifying a New Packaging', here:
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html

But... what problem are you trying to solve here?  Making that xml
file available to be included in various other modules, or... ?  Often
telling us what you're trying to accomplish will get you better
answers than asking how to implement whatever solution you've arrived
at on your own.

--
Wendy

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



Re: Install/deploy a project with a single file

2007-06-10 Thread Napoleon Esmundo C. Ramirez

Hello,

Wow, I never thought a project could consist only of a single xml file.
Anyway, I assume that it is a java-related project, so suggest that you
package it as a resource (relocate it in ${basedir}/src/main/resources) and
package it as a jar file.  You can use a simple pom.xml (containing only the
modelVersion, groupId, artifactId, version) that way.

Cheers!
Nap

On 6/11/07, Rahamim, Zvi (Zvi) <[EMAIL PROTECTED]> wrote:


Hi,
I have a project with only a single xml file.
What should I define in the pom.xml file so that it will be installed
and deployed?
Thanks

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