[jira] Commented: (MDEP-112) Container dependency jar file get copied during the deployment or during hte installation1

2007-09-20 Thread Brian Fox (JIRA)

[ 
http://jira.codehaus.org/browse/MDEP-112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_107898
 ] 

Brian Fox commented on MDEP-112:


Ok it's more clear now. The war plugin is including the contents of the runtime 
scope. Runtime scope includes compile and transitive things. If you need 
something for compile but not for runtime, then you must mark it as provided. 
This is the difference between the two dependencies you identified above.

> Container dependency jar file get copied during the deployment or during hte 
> installation1
> --
>
> Key: MDEP-112
> URL: http://jira.codehaus.org/browse/MDEP-112
> Project: Maven 2.x Dependency Plugin
>  Issue Type: Bug
>  Components: copy-dependencies
>Affects Versions: 2.0
> Environment: WindowXP(CYGWIN) JDK 1.5.0_07
>Reporter: Alan Mehio
>Assignee: Brian Fox
>Priority: Trivial
> Fix For: 2.0
>
>
> The dependency get copied even it is provided by the container 
> This happens in the following scenario :
> module A has dependecies as below 
> 
>   
>   axis
>   axis-schema
>   1.3
>   
>   
>   axis
>   axis-wsdl4j
>   1.3
>   
>   
>   xml-apis
>   xml-apis
>   1.0.b2
>   
>   
>   javax.xml
>   jaxrpc-api
>   1.1
>   
>   
>   commons-discovery
>   commons-discovery
>   0.2
>   
>   
>   axis
>   axis-saaj
>   1.2
>   
>   
> you have module B which has the below  dependencies
> 
>   
>   mygroup
>   common
>   1.0.0
>   
>   
>   mygroup
>   service
>   1.0.0
>   
>   
>   mygroup
>   model
>   1.0.0
>   
>   
>   tomcat
>   servlet-api
>   5.0.18
>   provided
>   
>   
> The one which get copied is servlet-api-2.3.jar 
> On the otherhand, the other project is using the same dependency ( 
> servlet-api ) but the only difference is the axis artifact and its 
> dependencies are not included
> Regards,
> Alan Mehio
> London, UK

-- 
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: (MDEP-112) Container dependency jar file get copied during the deployment or during hte installation1

2007-09-20 Thread Alan Mehio (JIRA)

[ 
http://jira.codehaus.org/browse/MDEP-112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_107896
 ] 

Alan Mehio commented on MDEP-112:
-

Brian,
thanks again. Yes I am not running mvn dependency:copy-dependencies from the 
command line. I am using the war plugin functionality. 
I totally agree with you concerning the below statement

The dependency plugin only does what you ask of it and analyzing the contents 
of the jars is outside the scope.


I will close this issue

Regards,
Alan Mehio
London UK

> Container dependency jar file get copied during the deployment or during hte 
> installation1
> --
>
> Key: MDEP-112
> URL: http://jira.codehaus.org/browse/MDEP-112
> Project: Maven 2.x Dependency Plugin
>  Issue Type: Bug
>  Components: copy-dependencies
>Affects Versions: 2.0
> Environment: WindowXP(CYGWIN) JDK 1.5.0_07
>Reporter: Alan Mehio
>Assignee: Brian Fox
>Priority: Trivial
>
> The dependency get copied even it is provided by the container 
> This happens in the following scenario :
> module A has dependecies as below 
> 
>   
>   axis
>   axis-schema
>   1.3
>   
>   
>   axis
>   axis-wsdl4j
>   1.3
>   
>   
>   xml-apis
>   xml-apis
>   1.0.b2
>   
>   
>   javax.xml
>   jaxrpc-api
>   1.1
>   
>   
>   commons-discovery
>   commons-discovery
>   0.2
>   
>   
>   axis
>   axis-saaj
>   1.2
>   
>   
> you have module B which has the below  dependencies
> 
>   
>   mygroup
>   common
>   1.0.0
>   
>   
>   mygroup
>   service
>   1.0.0
>   
>   
>   mygroup
>   model
>   1.0.0
>   
>   
>   tomcat
>   servlet-api
>   5.0.18
>   provided
>   
>   
> The one which get copied is servlet-api-2.3.jar 
> On the otherhand, the other project is using the same dependency ( 
> servlet-api ) but the only difference is the axis artifact and its 
> dependencies are not included
> Regards,
> Alan Mehio
> London, UK

-- 
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: (MDEP-112) Container dependency jar file get copied during the deployment or during hte installation1

2007-09-20 Thread Brian Fox (JIRA)

[ 
http://jira.codehaus.org/browse/MDEP-112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_107838
 ] 

Brian Fox commented on MDEP-112:


You need to mark servlet-api as provided and then maven knows not to include 
this on the runtime path. The dependency plugin only does what you ask of it 
and analyzing the contents of the jars is outside the scope. I'm still not 
convinced that you're using the dependency plugin, I think you are talking 
about the war plugin functionality. The pom you pasted above doesn't show any 
execution. Are you running mvn dependency:copy-dependencies from the command 
line?

> Container dependency jar file get copied during the deployment or during hte 
> installation1
> --
>
> Key: MDEP-112
> URL: http://jira.codehaus.org/browse/MDEP-112
> Project: Maven 2.x Dependency Plugin
>  Issue Type: Bug
>  Components: copy-dependencies
>Affects Versions: 2.0
> Environment: WindowXP(CYGWIN) JDK 1.5.0_07
>Reporter: Alan Mehio
>Assignee: Brian Fox
>Priority: Trivial
>
> The dependency get copied even it is provided by the container 
> This happens in the following scenario :
> module A has dependecies as below 
> 
>   
>   axis
>   axis-schema
>   1.3
>   
>   
>   axis
>   axis-wsdl4j
>   1.3
>   
>   
>   xml-apis
>   xml-apis
>   1.0.b2
>   
>   
>   javax.xml
>   jaxrpc-api
>   1.1
>   
>   
>   commons-discovery
>   commons-discovery
>   0.2
>   
>   
>   axis
>   axis-saaj
>   1.2
>   
>   
> you have module B which has the below  dependencies
> 
>   
>   mygroup
>   common
>   1.0.0
>   
>   
>   mygroup
>   service
>   1.0.0
>   
>   
>   mygroup
>   model
>   1.0.0
>   
>   
>   tomcat
>   servlet-api
>   5.0.18
>   provided
>   
>   
> The one which get copied is servlet-api-2.3.jar 
> On the otherhand, the other project is using the same dependency ( 
> servlet-api ) but the only difference is the axis artifact and its 
> dependencies are not included
> Regards,
> Alan Mehio
> London, UK

-- 
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: (MDEP-112) Container dependency jar file get copied during the deployment or during hte installation1

2007-09-20 Thread Alan Mehio (JIRA)

[ 
http://jira.codehaus.org/browse/MDEP-112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_107826
 ] 

Alan Mehio commented on MDEP-112:
-

Brian,
Idealy maven dependency should not copy the servlet-api since the container 
provide it 
maven is copying the one which struts depends on please see the pom below
The one which get copied into my web application lib directory is a subset of 
the one which is supplied by the container
Manen dependency plugin should look at the jar content and prevent duplication 
of the same classes 





http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
4.0.0

mygroupId
mygroupId-parent
1

mygroupId
groupmarketrisk
1.0.0
mygroup
http://maven.apache.org
pom

   common
model
dao
service
web




commons-logging
commons-logging
1.0.4


commons-lang
commons-lang
2.0


commons-beanutils
commons-beanutils
1.6


org.hibernate
hibernate
3.0.3


org.springframework
spring
1.2

  
 

tomcat
servlet-api
5.0.18
provided





struts
struts
1.2.4


dbunit
dbunit
2.1
test






maven-compiler-plugin

1.5
1.5








Regards,
Alan Mehio
London, UK



> Container dependency jar file get copied during the deployment or during hte 
> installation1
> --
>
> Key: MDEP-112
> URL: http://jira.codehaus.org/browse/MDEP-112
> Project: Maven 2.x Dependency Plugin
>  Issue Type: Bug
>  Components: copy-dependencies
>Affects Versions: 2.0
> Environment: WindowXP(CYGWIN) JDK 1.5.0_07
>Reporter: Alan Mehio
>Assignee: Brian Fox
>Priority: Trivial
>
> The dependency get copied even it is provided by the container 
> This happens in the following scenario :
> module A has dependecies as below 
> 
>   
>   axis
>   axis-schema
>   1.3
>   
>   
>   axis
>   axis-wsdl4j
>   1.3
>   
>   
>   xml-apis
>   xml-apis
>   1.0.b2
>   
>   
>   javax.xml
>   jaxrpc-api
>   1.1
>   
>   
>   commons-discovery
>   commons-discovery
>   0.2
>   
>   
>   axis
>   axis-saaj
>   1.2
>   
>   
> you have module B which has the below  dependencies
> 
>   
>   mygroup
>   common
>   1.0.0
>   
>   
>   mygroup
>   service
>   1.0.0
>   
>   
>   mygroup
>   model
>   1.0.0
>   
>   
>   tomcat
>   servlet-api
>   5.0.18
>   provided
>   
>   
> The one which get copied is servlet-api-2.3.jar 
> On the otherhand, the 

[jira] Commented: (MDEP-112) Container dependency jar file get copied during the deployment or during hte installation1

2007-09-19 Thread Brian Fox (JIRA)

[ 
http://jira.codehaus.org/browse/MDEP-112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_107784
 ] 

Brian Fox commented on MDEP-112:


I'm getting more confused now. Are you referring to the war plugin or the 
dependency plugin? Can you paste your pom, or better attach a sample project?

> Container dependency jar file get copied during the deployment or during hte 
> installation1
> --
>
> Key: MDEP-112
> URL: http://jira.codehaus.org/browse/MDEP-112
> Project: Maven 2.x Dependency Plugin
>  Issue Type: Bug
>  Components: copy-dependencies
>Affects Versions: 2.0
> Environment: WindowXP(CYGWIN) JDK 1.5.0_07
>Reporter: Alan Mehio
>Assignee: Brian Fox
>Priority: Trivial
>
> The dependency get copied even it is provided by the container 
> This happens in the following scenario :
> module A has dependecies as below 
> 
>   
>   axis
>   axis-schema
>   1.3
>   
>   
>   axis
>   axis-wsdl4j
>   1.3
>   
>   
>   xml-apis
>   xml-apis
>   1.0.b2
>   
>   
>   javax.xml
>   jaxrpc-api
>   1.1
>   
>   
>   commons-discovery
>   commons-discovery
>   0.2
>   
>   
>   axis
>   axis-saaj
>   1.2
>   
>   
> you have module B which has the below  dependencies
> 
>   
>   mygroup
>   common
>   1.0.0
>   
>   
>   mygroup
>   service
>   1.0.0
>   
>   
>   mygroup
>   model
>   1.0.0
>   
>   
>   tomcat
>   servlet-api
>   5.0.18
>   provided
>   
>   
> The one which get copied is servlet-api-2.3.jar 
> On the otherhand, the other project is using the same dependency ( 
> servlet-api ) but the only difference is the axis artifact and its 
> dependencies are not included
> Regards,
> Alan Mehio
> London, UK

-- 
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: (MDEP-112) Container dependency jar file get copied during the deployment or during hte installation1

2007-09-19 Thread Alan Mehio (JIRA)

[ 
http://jira.codehaus.org/browse/MDEP-112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_107783
 ] 

Alan Mehio commented on MDEP-112:
-

Brian,
Many thanks for your reply. Sorry for my brief description. the servlet-api get 
copied into the ${TOMCAT_HOME}/webapps/myweb/WEB-INF/lib 
even it is stated that the dependency is provided by the container (Tomcat web 
container). 
I am wondering why should the servlet-api get copied into the above mentioned 
directory even it is supplied by the container. I have checked my other pom and 
there is no mention for servlet-api dependency except in the above mentioned 
module. 

As I understand from the provided, it will not be copied since 
the artifact will be provided by the container.


Many thanks 
Regards,
Alan Mehio
London, UK


> Container dependency jar file get copied during the deployment or during hte 
> installation1
> --
>
> Key: MDEP-112
> URL: http://jira.codehaus.org/browse/MDEP-112
> Project: Maven 2.x Dependency Plugin
>  Issue Type: Bug
>  Components: copy-dependencies
>Affects Versions: 2.0
> Environment: WindowXP(CYGWIN) JDK 1.5.0_07
>Reporter: Alan Mehio
>Assignee: Brian Fox
>Priority: Trivial
>
> The dependency get copied even it is provided by the container 
> This happens in the following scenario :
> module A has dependecies as below 
> 
>   
>   axis
>   axis-schema
>   1.3
>   
>   
>   axis
>   axis-wsdl4j
>   1.3
>   
>   
>   xml-apis
>   xml-apis
>   1.0.b2
>   
>   
>   javax.xml
>   jaxrpc-api
>   1.1
>   
>   
>   commons-discovery
>   commons-discovery
>   0.2
>   
>   
>   axis
>   axis-saaj
>   1.2
>   
>   
> you have module B which has the below  dependencies
> 
>   
>   mygroup
>   common
>   1.0.0
>   
>   
>   mygroup
>   service
>   1.0.0
>   
>   
>   mygroup
>   model
>   1.0.0
>   
>   
>   tomcat
>   servlet-api
>   5.0.18
>   provided
>   
>   
> The one which get copied is servlet-api-2.3.jar 
> On the otherhand, the other project is using the same dependency ( 
> servlet-api ) but the only difference is the axis artifact and its 
> dependencies are not included
> Regards,
> Alan Mehio
> London, UK

-- 
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: (MDEP-112) Container dependency jar file get copied during the deployment or during hte installation1

2007-09-19 Thread Brian Fox (JIRA)

[ 
http://jira.codehaus.org/browse/MDEP-112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_107749
 ] 

Brian Fox commented on MDEP-112:


Not sure I completely understand. You're saying it is copying a dependency 
marked as provided?

This is normal since I'm getting the list of all dependencies from Maven. If 
you don't what provided dependencies, then use excludeScope=provided


> Container dependency jar file get copied during the deployment or during hte 
> installation1
> --
>
> Key: MDEP-112
> URL: http://jira.codehaus.org/browse/MDEP-112
> Project: Maven 2.x Dependency Plugin
>  Issue Type: Bug
>  Components: copy-dependencies
>Affects Versions: 2.0
> Environment: WindowXP(CYGWIN) JDK 1.5.0_07
>Reporter: Alan Mehio
>Assignee: Brian Fox
>Priority: Trivial
>
> The dependency get copied even it is provided by the container 
> This happens in the following scenario :
> module A has dependecies as below 
> 
>   
>   axis
>   axis-schema
>   1.3
>   
>   
>   axis
>   axis-wsdl4j
>   1.3
>   
>   
>   xml-apis
>   xml-apis
>   1.0.b2
>   
>   
>   javax.xml
>   jaxrpc-api
>   1.1
>   
>   
>   commons-discovery
>   commons-discovery
>   0.2
>   
>   
>   axis
>   axis-saaj
>   1.2
>   
>   
> you have module B which has the below  dependencies
> 
>   
>   mygroup
>   common
>   1.0.0
>   
>   
>   mygroup
>   service
>   1.0.0
>   
>   
>   mygroup
>   model
>   1.0.0
>   
>   
>   tomcat
>   servlet-api
>   5.0.18
>   provided
>   
>   
> The one which get copied is servlet-api-2.3.jar 
> On the otherhand, the other project is using the same dependency ( 
> servlet-api ) but the only difference is the axis artifact and its 
> dependencies are not included
> Regards,
> Alan Mehio
> London, UK

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