[jira] Commented: (MWAR-82) setting archiveClasses to true create the jar in WEB-INF/lib but does not remove WEB-INF/classes

2010-04-11 Thread John Baker (JIRA)

[ 
http://jira.codehaus.org/browse/MWAR-82?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=217554#action_217554
 ] 

John Baker commented on MWAR-82:


Hello,

Also, I would expect this to work when the exploded goal is included, but in 
this instance, the task does not even create the jar file.  

I've looked at the source:

http://svn.apache.org/viewvc/maven/plugins/tags/maven-war-plugin-2.1-beta-1/src/main/java/org/apache/maven/plugin/war/packaging/ClassesPackagingTask.java?revision=754916&view=markup

(I know nothing about task development for maven) and I can't see any obvious 
code that would remove/mask the classes.


John

> setting archiveClasses to true create the jar in WEB-INF/lib but does not 
> remove WEB-INF/classes
> 
>
> Key: MWAR-82
> URL: http://jira.codehaus.org/browse/MWAR-82
> Project: Maven 2.x WAR Plugin
>  Issue Type: Bug
>Affects Versions: 2.0
>Reporter: Sebastien Brunot
>Assignee: Stephane Nicoll
> Fix For: 2.0.1
>
>
> This bug has been explained on the maven users mailing list:
> 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:
> >  
> >
> >
> > org.apache.maven.plugins
> > maven-war-plugin
> > 
> >  
> >   
> >war
> >   
> >   
> >true
> >   
> >  
> > 
> >
> > 
> > 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: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (MWAR-82) setting archiveClasses to true create the jar in WEB-INF/lib but does not remove WEB-INF/classes

2010-04-11 Thread John Baker (JIRA)

[ 
http://jira.codehaus.org/browse/MWAR-82?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=217553#action_217553
 ] 

John Baker commented on MWAR-82:


Hello,

This bug still seems to exist in this version of the war task:

[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins:pom:13 
for project: null:maven-war-plugin:maven-plugin:2.1-beta-1 from the repository.

I have defined:

  
org.apache.maven.plugins
maven-war-plugin

  
war
  
  
true
  

  

In my pom and run mvn clean package.  I see the classes and the jar file in 
WEB-INF/lib.

Would be great so solve this issue so if someone wants to get in touch then I'm 
happy to help where I can.

> setting archiveClasses to true create the jar in WEB-INF/lib but does not 
> remove WEB-INF/classes
> 
>
> Key: MWAR-82
> URL: http://jira.codehaus.org/browse/MWAR-82
> Project: Maven 2.x WAR Plugin
>  Issue Type: Bug
>Affects Versions: 2.0
>Reporter: Sebastien Brunot
>Assignee: Stephane Nicoll
> Fix For: 2.0.1
>
>
> This bug has been explained on the maven users mailing list:
> 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:
> >  
> >
> >
> > org.apache.maven.plugins
> > maven-war-plugin
> > 
> >  
> >   
> >war
> >   
> >   
> >true
> >   
> >  
> > 
> >
> > 
> > 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: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (MWAR-82) setting archiveClasses to true create the jar in WEB-INF/lib but does not remove WEB-INF/classes

2008-10-16 Thread Taras Lipatov (JIRA)

[ 
http://jira.codehaus.org/browse/MWAR-82?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=151007#action_151007
 ] 

Taras Lipatov commented on MWAR-82:
---

Still getting this
mvn 2.0.9
war 2.0

Any one out there on the same boat?

> setting archiveClasses to true create the jar in WEB-INF/lib but does not 
> remove WEB-INF/classes
> 
>
> Key: MWAR-82
> URL: http://jira.codehaus.org/browse/MWAR-82
> Project: Maven 2.x War Plugin
>  Issue Type: Bug
>Reporter: Sebastien Brunot
>Assignee: Stephane Nicoll
>
> This bug has been explained on the maven users mailing list:
> 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:
> >  
> >
> >
> > org.apache.maven.plugins
> > maven-war-plugin
> > 
> >  
> >   
> >war
> >   
> >   
> >true
> >   
> >  
> > 
> >
> > 
> > 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]

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (MWAR-82) setting archiveClasses to true create the jar in WEB-INF/lib but does not remove WEB-INF/classes

2008-07-31 Thread Zecas (JIRA)

[ 
http://jira.codehaus.org/browse/MWAR-82?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=143711#action_143711
 ] 

Zecas commented on MWAR-82:
---

Hi,

I came across this issue, and I'm having the same problem.

My pom.xml settings:

WebContent/WEB-INF/classes


org.apache.maven.plugins
maven-war-plugin
2.0.1

explode

 
true

**/resources/*.*
 
 




${basedir}/WebContent



   



It creates a jar file inside the WEB-INF\lib folder, but doesn't remove classes 
from WEB-INF\classes folder.

Any workaround?

> setting archiveClasses to true create the jar in WEB-INF/lib but does not 
> remove WEB-INF/classes
> 
>
> Key: MWAR-82
> URL: http://jira.codehaus.org/browse/MWAR-82
> Project: Maven 2.x War Plugin
>  Issue Type: Bug
>Reporter: Sebastien Brunot
>Assignee: Stephane Nicoll
>
> This bug has been explained on the maven users mailing list:
> 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:
> >  
> >
> >
> > org.apache.maven.plugins
> > maven-war-plugin
> > 
> >  
> >   
> >war
> >   
> >   
> >true
> >   
> >  
> > 
> >
> > 
> > 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]

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (MWAR-82) setting archiveClasses to true create the jar in WEB-INF/lib but does not remove WEB-INF/classes

2007-03-16 Thread Piotr Tabor (JIRA)

[ 
http://jira.codehaus.org/browse/MWAR-82?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_90278
 ] 

Piotr Tabor commented on MWAR-82:
-

What commands have you been using to generate your war ?

I have an idea that the scenario was: 

" 
 org.apache.maven.plugins
 maven-war-plugin
 
  *false*

   
  
 "

then:
mvn package

after that user changed in pom.xml to: *true*

then:
mvn package

In effect the final zzz.war constains both: classes and zzz.jar. 

It is reason of the target/zzz directory, which constains zzz classes ofter 
first "mvn package", 
and zzz.jar after the second "mvn package". 

Instead the second "mvn package" the user should use "mvn clean package", to 
run the
war plugin on an empty target/zzz dir. 

If the scenario is true - I think that this issue is not a bug. 



> setting archiveClasses to true create the jar in WEB-INF/lib but does not 
> remove WEB-INF/classes
> 
>
> Key: MWAR-82
> URL: http://jira.codehaus.org/browse/MWAR-82
> Project: Maven 2.x War Plugin
>  Issue Type: Bug
>Reporter: Sebastien Brunot
>
> This bug has been explained on the maven users mailing list:
> 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:
> >  
> >
> >
> > org.apache.maven.plugins
> > maven-war-plugin
> > 
> >  
> >   
> >war
> >   
> >   
> >true
> >   
> >  
> > 
> >
> > 
> > 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]

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira