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]



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]