Configuring war plugin for using a jar instead of WEB-INF/classes

2006-11-07 Thread Sebastien Brunot
Hi all,
 
i've got a war project which pom build section contains the following
statements:
 
   !-- Package webapp classes into a jar instead of under
WEB-INF/classes -- 
   plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-war-plugin/artifactId
executions
 execution
  goals
   goalwar/goal
  /goals
  configuration
   archiveClassestrue/archiveClasses
  /configuration
 /execution
/executions
   /plugin

As a result, all the classes and resources from my war project are
packaged in a jar that is copied in the WEB-INF/lib directory of the war
artifact.
 
But i don't understand why the war artifact still contains copy of the
classes and resources under WEB-INF/classes... Does anybody think that
i've misconfigured the war plugin ?
 
Thanks for your help,
 
Sebastien


Re: Configuring war plugin for using a jar instead of WEB-INF/classes

2006-11-07 Thread Arnaud HERITIER

Hi Sebastien
  It seems to be a bug.
  In the code [1] we have :
if ( archiveClasses )
{
createJarArchive( libDirectory );
}
else
{
copyDirectoryStructureIfModified( classesDirectory,
webappClassesDirectory );
}
  The content of the classes directory is never removed (neither in
createJarArchive nor somewhere else).

  Can you create an issue please ?

Thx

Arnaud

[1]
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/AbstractWarMojo.java?revision=471624



Sebastien Brunot wrote:
 
 Hi all,
  
 i've got a war project which pom build section contains the following
 statements:
  
!-- Package webapp classes into a jar instead of under
 WEB-INF/classes -- 
plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-war-plugin/artifactId
 executions
  execution
   goals
goalwar/goal
   /goals
   configuration
archiveClassestrue/archiveClasses
   /configuration
  /execution
 /executions
/plugin
 
 As a result, all the classes and resources from my war project are
 packaged in a jar that is copied in the WEB-INF/lib directory of the war
 artifact.
  
 But i don't understand why the war artifact still contains copy of the
 classes and resources under WEB-INF/classes... Does anybody think that
 i've misconfigured the war plugin ?
  
 Thanks for your help,
  
 Sebastien
 
 

-- 
View this message in context: 
http://www.nabble.com/Configuring-war-plugin-for-using-a-jar-instead-of-WEB-INF-classes-tf2589199s177.html#a7219855
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: Configuring war plugin for using a jar instead of WEB-INF/classes

2006-11-07 Thread Sebastien Brunot

Issue has been created as MWAR-82
(http://jira.codehaus.org/browse/MWAR-82).

Sebastien 

-Original Message-
From: Arnaud HERITIER [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 07, 2006 3:59 PM
To: users@maven.apache.org
Subject: Re: Configuring war plugin for using a jar instead of
WEB-INF/classes


Hi Sebastien
  It seems to be a bug.
  In the code [1] we have :
if ( archiveClasses )
{
createJarArchive( libDirectory );
}
else
{
copyDirectoryStructureIfModified( classesDirectory,
webappClassesDirectory );
}
  The content of the classes directory is never removed (neither in
createJarArchive nor somewhere else).

  Can you create an issue please ?

Thx

Arnaud

[1]
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-war-plugin/src/ma
in/java/org/apache/maven/plugin/war/AbstractWarMojo.java?revision=471624



Sebastien Brunot wrote:
 
 Hi all,
  
 i've got a war project which pom build section contains the following
 statements:
  
!-- Package webapp classes into a jar instead of under 
 WEB-INF/classes --
plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-war-plugin/artifactId
 executions
  execution
   goals
goalwar/goal
   /goals
   configuration
archiveClassestrue/archiveClasses
   /configuration
  /execution
 /executions
/plugin
 
 As a result, all the classes and resources from my war project are 
 packaged in a jar that is copied in the WEB-INF/lib directory of the 
 war artifact.
  
 But i don't understand why the war artifact still contains copy of the

 classes and resources under WEB-INF/classes... Does anybody think that

 i've misconfigured the war plugin ?
  
 Thanks for your help,
  
 Sebastien
 
 

--
View this message in context:
http://www.nabble.com/Configuring-war-plugin-for-using-a-jar-instead-of-
WEB-INF-classes-tf2589199s177.html#a7219855
Sent from the Maven - Users mailing list archive at Nabble.com.


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