archetype:create error

2007-12-26 Thread Rice Yeh
Hi,
 I run the command
 mvn archetype:create \
   -DarchetypeGroupId=org.apache.maven.archetypes \
   -DgroupId=com.mycompany.app \
   -DartifactId=my-app

but get the following error

Project ID: org.apache.maven.plugins:maven-archetype-plugin

Reason: Error getting POM for '
org.apache.maven.plugins:maven-archetype-plugin' from the repository: Failed
to resolve artifact, possibly due to a repository list that is not
appropriately equipped for this artifact's metadata.
  org.apache.maven.plugins:maven-archetype-plugin:pom:1.0-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)
 for project org.apache.maven.plugins:maven-archetype-plugin

This command should be easy and used to work, what is going wrong? My maven
is 2.0.8.

Regards,
Rice


Re: archetype:create error

2007-12-26 Thread Olivier Jacob
On Dec 26, 2007 10:36 AM, Rice Yeh [EMAIL PROTECTED] wrote:

 Hi,
  I run the command
  mvn archetype:create \
-DarchetypeGroupId=org.apache.maven.archetypes \
-DgroupId=com.mycompany.app \
-DartifactId=my-app

 but get the following error

 Project ID: org.apache.maven.plugins:maven-archetype-plugin

 Reason: Error getting POM for '
 org.apache.maven.plugins:maven-archetype-plugin' from the repository:
 Failed
 to resolve artifact, possibly due to a repository list that is not
 appropriately equipped for this artifact's metadata.
  org.apache.maven.plugins:maven-archetype-plugin:pom:1.0-SNAPSHOT

 from the specified remote repositories:
  central (http://repo1.maven.org/maven2)
  for project org.apache.maven.plugins:maven-archetype-plugin

 This command should be easy and used to work, what is going wrong? My
 maven
 is 2.0.8.


I think there is still a problem with repositories resolution.

Try adding -DremoteRepositories=http://repo1.maven.org/maven2 in your
command line

If it still does not work, you should adding the archetype version.

HTH

-- 
Olivier Jacob
Consultant - OCTO Technology
50, avenue des Champs Elysées
75008 Paris


Re: archetype:create error

2007-12-26 Thread Rice Yeh
Still not work after trying either your suggestion or passing
-DarchetypeVersion=1.0-alpha-7.

Regards,
Rice

On Dec 26, 2007 6:01 PM, Olivier Jacob [EMAIL PROTECTED] wrote:

 On Dec 26, 2007 10:36 AM, Rice Yeh [EMAIL PROTECTED] wrote:

  Hi,
   I run the command
   mvn archetype:create \
 -DarchetypeGroupId=org.apache.maven.archetypes \
 -DgroupId=com.mycompany.app \
 -DartifactId=my-app
 
  but get the following error
 
  Project ID: org.apache.maven.plugins:maven-archetype-plugin
 
  Reason: Error getting POM for '
  org.apache.maven.plugins:maven-archetype-plugin' from the repository:
  Failed
  to resolve artifact, possibly due to a repository list that is not
  appropriately equipped for this artifact's metadata.
   org.apache.maven.plugins:maven-archetype-plugin:pom:1.0-SNAPSHOT
 
  from the specified remote repositories:
   central (http://repo1.maven.org/maven2)
   for project org.apache.maven.plugins:maven-archetype-plugin
 
  This command should be easy and used to work, what is going wrong? My
  maven
  is 2.0.8.
 

 I think there is still a problem with repositories resolution.

 Try adding -DremoteRepositories=http://repo1.maven.org/maven2 in your
 command line

 If it still does not work, you should adding the archetype version.

 HTH

 --
 Olivier Jacob
 Consultant - OCTO Technology
 50, avenue des Champs Elysées
 75008 Paris



Re: archetype:create error

2007-12-26 Thread Rice Yeh
It works after change the file maven-metadata-central.xml in my local
repository.

Regards,
Rice

On Dec 26, 2007 6:25 PM, Rice Yeh [EMAIL PROTECTED] wrote:

 Still not work after trying either your suggestion or passing
 -DarchetypeVersion=1.0-alpha-7.

 Regards,
 Rice


 On Dec 26, 2007 6:01 PM, Olivier Jacob  [EMAIL PROTECTED] wrote:

  On Dec 26, 2007 10:36 AM, Rice Yeh  [EMAIL PROTECTED] wrote:
 
   Hi,
I run the command
mvn archetype:create \
  -DarchetypeGroupId=org.apache.maven.archetypes \
  -DgroupId= com.mycompany.app \
  -DartifactId=my-app
  
   but get the following error
  
   Project ID: org.apache.maven.plugins:maven-archetype-plugin
  
   Reason: Error getting POM for '
   org.apache.maven.plugins:maven-archetype-plugin' from the repository:
   Failed
   to resolve artifact, possibly due to a repository list that is not
   appropriately equipped for this artifact's metadata.
org.apache.maven.plugins:maven-archetype-plugin:pom:1.0-SNAPSHOT
  
   from the specified remote repositories:
central (http://repo1.maven.org/maven2 )
for project org.apache.maven.plugins:maven-archetype-plugin
  
   This command should be easy and used to work, what is going wrong? My
   maven
   is 2.0.8.
  
 
  I think there is still a problem with repositories resolution.
 
  Try adding -DremoteRepositories=http://repo1.maven.org/maven2 in your
  command line
 
  If it still does not work, you should adding the archetype version.
 
  HTH
 
  --
  Olivier Jacob
  Consultant - OCTO Technology
  50, avenue des Champs Elysées
  75008 Paris
 




Re: mvn deploy on Artifactory gives File transfer error (Return Code 401)

2007-12-26 Thread Erik Drolshammer

Farhan Sarwar wrote:

Any clue as to why am i getting the following error on deploying an
artifact on artifactory repo using maven deploy:deploy-file..it says
Failed to transfer file : [filename] Return Code 401


The user used does not have write access. Check permissions...

--
Regards
Erik Drolshammer

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



Re: Problem to send email (Validation user) with Continuum 1.1 final

2007-12-26 Thread Claudio Ranieri

Great Wendy,

Thanks!

- Original Message - 
From: Wendy Smoak [EMAIL PROTECTED]

To: [EMAIL PROTECTED]
Sent: Sunday, December 23, 2007 4:03 PM
Subject: Re: Problem to send email (Validation user) with Continuum 1.1 
final




On Dec 21, 2007 9:41 AM, Claudio Ranieri [EMAIL PROTECTED] wrote:


But you creating a sample file helps a lot.


http://jira.codehaus.org/browse/CONTINUUM-1612

I put email.from.name, email.from.address and email.validation.subject
in the sample file.

Thanks,
--
Wendy





RE: mvn deploy on Artifactory gives File transfer error (Return Code 401)

2007-12-26 Thread William Hoover
We get the same error in Archiva. I noticed that after a few attempts it 
deploys properly. Does this occur in Artifactory as well?

-Original Message-
From: Erik Drolshammer [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 26, 2007 7:26 AM
To: Maven Users List
Subject: Re: mvn deploy on Artifactory gives File transfer error (Return
Code 401)


Farhan Sarwar wrote:
 Any clue as to why am i getting the following error on deploying an
 artifact on artifactory repo using maven deploy:deploy-file..it says
 Failed to transfer file : [filename] Return Code 401

The user used does not have write access. Check permissions...

-- 
Regards
Erik Drolshammer

-
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: maven2 way to hide transitive dependencies

2007-12-26 Thread aldana



Heinrich Nirschl wrote:
 
 mvn dependency:analyze may also help to detect situations where
 transitive dependencies should better be declared as direct
 dependencies.
 
great! eveyday to learn something new.


Heinrich Nirschl wrote:
 
 No, the optional library may be needed for compiling. It can still be
 optional if it is never loaded at runtime for a certain use case.
 
but how should someone know if a certain use case is not executed on runtime
(to me that sounds more like a hint to dead code...). do you know a real
maven2 project where this optional is used and makes sense?


-- 
View this message in context: 
http://www.nabble.com/maven2-way-to-hide-transitive-dependencies-tp14495957s177p14502190.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Extension usage ?

2007-12-26 Thread Romain Gilles
Hi,

I'm trying to use the maven extension capability in my plugin. My test
is based on the Plexus tutorial. I have made one extra operation by
adding an API project where I have put the
org.codehaus.plexus.tutorial.WebsiteMonitor interface.

I have a API project (plexus-website-monitor-api) that declares a ROLE
within an Interface: WebsiteMonitor.

I have a project (plexus-website-monitor-component) with a default
implementation of my interface: DefaultWebsiteMonitor implements
WebsiteMonitor.

I have a plugin project (plexus-website-monitor-plugin) that uses this
component interface as an attribute of MonitorMojo. 

Everything works fine if I declare in the plugin's 'pom.xml' a
dependency on the plexus-website-monitor-component artifact (the
implementation) : 

project

...

dependencies

...

dependency

groupIdorg.codehaus.plexus/groupId

  artifactIdplexus-website-monitor-component/artifactId

  version1.0-SNAPSHOT/version

/dependency

/dependencies

...

/project



BUT if in my plugin pom.xml I declare a dependency on the API as follow:


project

...

dependencies

...

dependency

groupIdorg.codehaus.plexus/groupId

  artifactIdplexus-website-monitor-api/artifactId

  version1.0-SNAPSHOT/version

/dependency

/dependencies

...

/project

 

and in the project that use the plugin I add the extensions tag as
follow:

project

build

plugins

...

/plugins

extensions

extension

 
groupIdorg.codehaus.plexus/groupId

 
artifactIdplexus-website-monitor-component/artifactId

version1.0-SNAPSHOT/version

/extension

/extensions

/build

/project

 

I get an error on the command line :

[INFO] Internal error in the plugin manager executing goal
'org.codehaus.plexus:plexus-monitor2-plugin:1.0-SNAPSHOT:monitor':
Unable to find the mojo
'org.codehaus.plexus:plexus-monitor2-plugin:1.0-SNAPSHOT:monitor' in the
plugin 'org.codehaus.plexus:plexus-monitor2-plugin' Component descriptor
cannot be found in the component repository:
org.codehaus.plexus.tutorial.WebsiteMonitor.

 

Does it mean that extensions and dependencies are not loaded by the in a
same way? 

How can I resolve It, I suppose it is the same execution context for my
plugin than a Wagon specific implementation but I do not known why it
does not work for me... :-(

 

Please Help ...

 

Thanks,

Romain



This email was sent to you by Reuters, the global news and information company. 
To find out more about Reuters visit www.about.reuters.com

Any views expressed in this message are those of the individual sender, 
except where the sender specifically states them to be the views of Reuters 
Limited.

Reuters Limited is part of the Reuters Group of companies, of which Reuters 
Group PLC is the ultimate parent company.
Reuters Group PLC - Registered office address: The Reuters Building, South 
Colonnade, Canary Wharf, London E14 5EP, United Kingdom
Registered No: 3296375
Registered in England and Wales



Re: maven2 way to hide transitive dependencies

2007-12-26 Thread Heinrich Nirschl
On Dec 26, 2007 2:25 PM, aldana [EMAIL PROTECTED] wrote:
 Heinrich Nirschl wrote:
 
  No, the optional library may be needed for compiling. It can still be
  optional if it is never loaded at runtime for a certain use case.
 
 but how should someone know if a certain use case is not executed on runtime
 (to me that sounds more like a hint to dead code...). do you know a real
 maven2 project where this optional is used and makes sense?

A good example is commons-logging:commons-logging:1.1.1. It has
optional dependencies on the logging frameworks it supports. When you
actually use it, you want just one framework and not all. Previous
versions did not have the dependencies declared as optional. As a
consequence, users had to write a lot of exclusions in the POM (or to
live with the unnecessary jars that were pulled in).

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



How to download dependencies just from the server repository?

2007-12-26 Thread Thomas Chang
Hi all,
  Normally if I run the mvn eclipse:eclipse, it will download the dependencies 
from  http://repo1.maven.org/maven2/...;. Now, what I want to do is: if I run 
mvn command such as eclipse:eclipse, it will download the dependencies from 
repository on the server maschine. The advantage doing so is: everytimne when a 
user run mvn command, he just download the dependencies from the server 
maschine since download from http://repo1.maven.org/maven2/...; will not 
allowed because of fire wall. But the admin can download the dependencies on 
the the repository on the server maschine.
  How can I do or configue that?
   
  Regards
   
  Thomas

   
-
Ihr erstes Fernweh? Wo gibt es den schönsten Strand. 

Re: How to download dependencies just from the server repository?

2007-12-26 Thread Wayne Fay
You should probably configure a mirror in your settings.xml file on
your developer's desktops pointing to your local server, thus
overriding repo1.

You may want to configure mirrorOf*/mirrorOf as it is pretty
normal for builds to connect to multiple repos to acquire
dependencies.

Wayne

On 12/26/07, Thomas Chang [EMAIL PROTECTED] wrote:
 Hi all,
  Normally if I run the mvn eclipse:eclipse, it will download the dependencies 
 from  http://repo1.maven.org/maven2/...;. Now, what I want to do is: if I 
 run mvn command such as eclipse:eclipse, it will download the dependencies 
 from repository on the server maschine. The advantage doing so is: everytimne 
 when a user run mvn command, he just download the dependencies from the 
 server maschine since download from http://repo1.maven.org/maven2/...; will 
 not allowed because of fire wall. But the admin can download the dependencies 
 on the the repository on the server maschine.
  How can I do or configue that?

  Regards

  Thomas


 -
 Ihr erstes Fernweh? Wo gibt es den schönsten Strand.

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



RES: JDK 1.5 java.lang.Enum Buid Failure using Maven 2.0.8

2007-12-26 Thread Arthur Rodrigues Stilben
I would like to know how can I do to use two kinds of packages in the same 
file. For example, I have an app.class and I want to create an app.jar and an 
app.war file. How can I do that?

Arthur Rodrigues Stilben

De: Wayne Fay [EMAIL PROTECTED]
Enviado: segunda-feira, 10 de dezembro de 2007 19:48
Para: Maven Users List
Assunto: Re: JDK 1.5 java.lang.Enum Buid Failure using Maven 2.0.8

Zip up a small sample project, create a JIRA issue, and attach it.
Then someone can look at your issue more closely.

Wayne

On 12/10/07, William Hoover [EMAIL PROTECTED] wrote:
 No takers?

 -Original Message-
 From: William Hoover [mailto:[EMAIL PROTECTED]
 Sent: Saturday, December 08, 2007 8:13 PM
 To: users@maven.apache.org
 Subject: JDK 1.5 java.lang.Enum Buid Failure using Maven 2.0.8


 I am using JDK 1.5 / Maven 2.0.8 and am attempting mvn clean install on a 
 simple project that contains the following snippet:

 ...

 public final Class? extends Enum? extends IDTOPhase 
 getDTOPhaseLifeCycleStrategy(){
return someEnumClass;
 }

 ...

 for(java.lang.Enum? extends IDTOPhase phase : 
 getDTOPhaseLifeCycleStrategy().getEnumConstants()){
...
 }

 ...

 The problem is that this compiles w/o a problem using ANT (or Eclipse build), 
 but fails using Maven. I get the error:

 ... incompatible types
 found : java.lang.Enum? extends IDTOPhase
 required : java.lang.Enum? extends IDTOPhase

 I even set the maven-compiler-plugin to ensure compilation in 1.5

 plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
version2.0.2/version
configuration
source1.5/source
target1.5/target
/configuration
 /plugin

 Any clue??? Thanks!


 -
 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]


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



Package war and jar

2007-12-26 Thread Arthur Rodrigues Stilben


I would like to know how can I do to use two kinds of packages in the same 
file. For example, I have an app.class and I want to create an app.jar and an 
app.war file. How can I do that?

Arthur Rodrigues Stilben

De: Wayne Fay [EMAIL PROTECTED]
Enviado: segunda-feira, 10 de dezembro de 2007 19:48
Para: Maven Users List
Assunto: Re: JDK 1.5 java.lang.Enum Buid Failure using Maven 2.0.8

Zip up a small sample project, create a JIRA issue, and attach it.
Then someone can look at your issue more closely.

Wayne

On 12/10/07, William Hoover [EMAIL PROTECTED] wrote:
 No takers?

 -Original Message-
 From: William Hoover [mailto:[EMAIL PROTECTED]
 Sent: Saturday, December 08, 2007 8:13 PM
 To: users@maven.apache.org
 Subject: JDK 1.5 java.lang.Enum Buid Failure using Maven 2.0.8


 I am using JDK 1.5 / Maven 2.0.8 and am attempting mvn clean install on a 
 simple project that contains the following snippet:

 ...

 public final Class? extends Enum? extends IDTOPhase 
 getDTOPhaseLifeCycleStrategy(){
return someEnumClass;
 }

 ...

 for(java.lang.Enum? extends IDTOPhase phase : 
 getDTOPhaseLifeCycleStrategy().getEnumConstants()){
...
 }

 ...

 The problem is that this compiles w/o a problem using ANT (or Eclipse build), 
 but fails using Maven. I get the error:

 ... incompatible types
 found : java.lang.Enum? extends IDTOPhase
 required : java.lang.Enum? extends IDTOPhase

 I even set the maven-compiler-plugin to ensure compilation in 1.5

 plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
version2.0.2/version
configuration
source1.5/source
target1.5/target
/configuration
 /plugin

 Any clue??? Thanks!


 -
 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]


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



[m2] addition resources to an ear?

2007-12-26 Thread Mick Knutson
I have this in my ear's pom.xml

 resources
resource
directory${basedir}/src/main/resources/directory
targetPathMETA-INF/targetPath
filteringtrue/filtering
/resource
/resources

but my orion.xml inside ${basedir}/src/main/resources does not get included
into my ear.

Can anyone help please?

-- 
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/BLiNCMagazine
http://tahoe.baselogic.com
---


distributing files / set of files to remove server (maven wagon plugin ???)

2007-12-26 Thread Jerome Lacoste
Hei,

anyone knows if there's an easy and generic way to distribute a file
or a set of files to a remote server ?

Basically, I am searching for something that would wrap wagon and
understand the concept of server(s) (so that connection information
doesn't need to be in the POM).

The use case is for http://jira.codehaus.org/browse/MWEBSTART-25

Cheers,

-- 
Jerome Lacoste

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



Re: distributing files / set of files to remove server (maven wagon plugin ???)

2007-12-26 Thread Tom Huybrechts
If you need to deploy to application servers, take a look at Cargo.

http://cargo.codehaus.org/

On Dec 26, 2007 9:56 PM, Jerome Lacoste [EMAIL PROTECTED] wrote:

 Hei,

 anyone knows if there's an easy and generic way to distribute a file
 or a set of files to a remote server ?

 Basically, I am searching for something that would wrap wagon and
 understand the concept of server(s) (so that connection information
 doesn't need to be in the POM).

 The use case is for http://jira.codehaus.org/browse/MWEBSTART-25

 Cheers,

 --
 Jerome Lacoste

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




Re: distributing files / set of files to remove server (maven wagon plugin ???)

2007-12-26 Thread Jerome Lacoste
On Dec 26, 2007 10:11 PM, Tom Huybrechts [EMAIL PROTECTED] wrote:
 If you need to deploy to application servers, take a look at Cargo.

cargo won't do it. I need to deploy to a file system through anything
available: ssh, ftp, webdav etc...

Cheers,

Jerome

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



Re: distributing files / set of files to remove server (maven wagon plugin ???)

2007-12-26 Thread Wendy Smoak
On Dec 26, 2007 2:43 PM, Jerome Lacoste [EMAIL PROTECTED] wrote:

 On Dec 26, 2007 10:11 PM, Tom Huybrechts [EMAIL PROTECTED] wrote:
  If you need to deploy to application servers, take a look at Cargo.

 cargo won't do it. I need to deploy to a file system through anything
 available: ssh, ftp, webdav etc...

You might want to look at Maven Site Plugin for ideas, or see if you
can use it directly.

-- 
Wendy

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



Re: [m2] addition resources to an ear?

2007-12-26 Thread Wayne Fay
As documented [1], the EAR plugin uses /src/main/application by
default. I'm not sure if it supports additional resource directives.

http://maven.apache.org/plugins/maven-ear-plugin/ear-mojo.html#earSourceDirectory

Wayne

On Dec 26, 2007 2:47 PM, Mick Knutson [EMAIL PROTECTED] wrote:
 I have this in my ear's pom.xml

 resources
resource
directory${basedir}/src/main/resources/directory
targetPathMETA-INF/targetPath
filteringtrue/filtering
/resource
/resources

 but my orion.xml inside ${basedir}/src/main/resources does not get included
 into my ear.

 Can anyone help please?

 --
 Thanks,
 Mick Knutson

 http://www.baselogic.com
 http://www.blincmagazine.com
 http://www.djmick.com
 http://www.myspace.com/mickknutson
 http://www.myspace.com/BLiNCMagazine
 http://tahoe.baselogic.com
 ---


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



Problem packaging multiple attached artifacts

2007-12-26 Thread snesbitt
All:

This will probably become obvious 5 minutes after i write this, but
right now I'm stumped.

I have plugin which as part of the generate-resource phase generates a
set of configuration files based on a template. The plugin places these
files in target/config with the following filename pattern:
Identifier_env_config.xml, where Identifier is shared among all
config files generated, but env will vary: For example:
MyModule_stage_config.xml, MyModule_local_config.xml, etc.

The plugin attaches each of the generated config files using:
project.AttachArtifact(project, xml, configs, generated file). The
module involved has an artifact id of test

Generation works fine and the target/config directory is populated
correctly. The problem comes when packaging/installing. As part of the
packaging/install Maven changes the name of MyModule_stage_config.xml to
test.xml. Not a good thing :-)

Essentially I need to tell maven that when packaging an artifact with an
attachment of type configs to determine the packaged named based on
the file name.

Any ideas on how to accomplish this?

Thx,

-steve

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



Re: Package war and jar

2007-12-26 Thread Wendy Smoak
On Dec 26, 2007 12:12 PM, Arthur  Rodrigues Stilben
[EMAIL PROTECTED] wrote:

 I would like to know how can I do to use two kinds of packages in the same 
 file. For example, I have an app.class and I want to create an app.jar and an 
 app.war file. How can I do that?

The general rule is 'one main artifact per module'.  Best bet is to
create a separate module for the jar.  In the war module, declare a
dependency on the jar and it will get included in WEB-INF/lib.

(If you just want the files in a jar, but don't care about installing
that jar into the repository, I believe the war plugin can already be
configured to do that.  In addition, there was some talk about
installing that jar with a classifier, but I don't remember where that
ended up.)

-- 
Wendy

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



Re: distributing files / set of files to remove server (maven wagon plugin ???)

2007-12-26 Thread Dirk Olmes
Jerome Lacoste wrote:
 Hei,
 
 anyone knows if there's an easy and generic way to distribute a file
 or a set of files to a remote server ?

You want to look at the wagon plugin:
http://myfaces.apache.org/wagon-maven-plugin/usage.html

-dirk

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



Re: distributing files / set of files to remove server (maven wagon plugin ???)

2007-12-26 Thread Jerome Lacoste
On Dec 27, 2007 6:49 AM, Dirk Olmes [EMAIL PROTECTED] wrote:
 Jerome Lacoste wrote:
  Hei,
 
  anyone knows if there's an easy and generic way to distribute a file
  or a set of files to a remote server ?

 You want to look at the wagon plugin:
 http://myfaces.apache.org/wagon-maven-plugin/usage.html

That looks like what I am searching for. I had searched for maven
wagon plugin in Google but it looks like order of the words mattered.

Thanks !

J

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