You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ivan Strohner <is...@digitalsystems.sk> on 2007/01/30 18:14:34 UTC

provided dependency packaged into war

Hello,

I am packaging a war archive and list dependency in pom file:
		<dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>jsp-api</artifactId>
			<version>2.0</version>
			<scope>provided</scope>
		</dependency>

the problem is that jsp-api-2.0.jar (and also servlet-api-2.4.jar) get
packaged into WEB-INF/lib even though that they are always mentioned as
provided dependencies.

Our project depends on multiple other our projects. One of them is another
war, which gets merged into our war. Other are simple jars. jsp-api is
mentioned as dependency in some of them, but always as "provided".

My intention is to package only our jars into WEB-INF/lib. I want to keep the
third party ones in server lib. The primary project is called non_combustion.
It depends on our cms_classes and cms_web projects and some others, such as
dsutil_web. These depend on many other libraries, especially spring and
related.

Rough structure:

non_combustion (war)
  jsp-api (provided)
  dsutil_web (jar) (compile)
    jsp-api (provided)
    ..
  cms_web (war) (compile)
    depends on jsp-api (provided)
    cms_classes (jar) (compile)
	..
  ..

I did proper clean and install of all these project into local repository.
When I do mvn package -X on non_combustion I get a war file with jsp-api
in WEB-INF/lib. However other libraries (such as spring) are not packaged
(just as I wanted).

If I search the debug output for the package command for jsp-api I get the
parts below. From them it is clear that jsp-api is everywhere mentioned as
provided, but in the final step it is included in the WEB-INF/lib.

Could anyone help? Is this a bug? If some additional info is required I can
send it (the log below is 180KB long). I am just starting with maven so I ask
here first before submitting a bug report or other.

I am using maven 2.0.4 installed recently.

Thanks for any answers,
Ivan


...
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[DEBUG] sk.digitalsystems:non_combustion:war:1.1.2.0-SNAPSHOT (selected for null)
[DEBUG] Skipping disabled repository central
[DEBUG] perobs_spring: using locally installed snapshot
[DEBUG]   sk.digitalsystems:perobs_spring:jar:1.1.4.0-SNAPSHOT:compile (selected for compile)
[DEBUG] Skipping disabled repository central
[DEBUG] perobs: using locally installed snapshot
[DEBUG]     sk.digitalsystems:perobs:jar:1.1.9.0-SNAPSHOT:compile (selected for compile)
[DEBUG] Skipping disabled repository central
[DEBUG] dsutil: using locally installed snapshot
[DEBUG]       sk.digitalsystems:dsutil:jar:1.1.7.0-SNAPSHOT:compile (selected for compile)
[DEBUG] Skipping disabled repository central
[DEBUG] cms_classes: using locally installed snapshot
[DEBUG]   sk.digitalsystems:cms_classes:jar:1.1.0.0-SNAPSHOT:compile (selected for compile)
[DEBUG] Skipping disabled repository central
[DEBUG] dsutil_web: using locally installed snapshot
[DEBUG]     sk.digitalsystems:dsutil_web:jar:1.1.2.0-SNAPSHOT:compile (selected for compile)
[DEBUG]   junit:junit:jar:3.8.1:test (selected for test)
[DEBUG]   javax.servlet:jsp-api:jar:2.0:provided (selected for provided)
[DEBUG]     javax.servlet:servlet-api:jar:2.4:provided (selected for provided)
[DEBUG] Skipping disabled repository central
[DEBUG] cms: using locally installed snapshot
[DEBUG]   sk.digitalsystems:cms:war:1.1.2.0-SNAPSHOT:compile (selected for compile)
[DEBUG] Retrieving parent-POM: org.acegisecurity:acegi-security-parent::1.0.3 for project: null:acegi-security:jar:1.0.3 from the repository.
[DEBUG]   org.acegisecurity:acegi-security:jar:1.0.3:provided (selected for provided)
[DEBUG] Retrieving parent-POM: org.springframework:spring-parent::1.2.8 for project: null:spring-support:jar:1.2.8 from the repository.
[DEBUG]     org.springframework:spring-support:jar:1.2.8:provided (selected for provided)
[DEBUG]     commons-codec:commons-codec:jar:1.3:provided (selected for provided)
[DEBUG]     commons-logging:commons-logging:jar:1.0.4:provided (selected for provided)
[DEBUG]     log4j:log4j:jar:1.2.9:provided (selected for provided)
[DEBUG]     commons-lang:commons-lang:jar:2.1:provided (selected for provided)
[DEBUG]     commons-collections:commons-collections:jar:3.1:provided (selected for provided)
[DEBUG] Retrieving parent-POM: org.springframework:spring-parent::1.2.8 for project: null:spring-remoting:jar:1.2.8 from the repository.
[DEBUG]     org.springframework:spring-remoting:jar:1.2.8:provided (selected for provided)
[DEBUG] Retrieving parent-POM: org.springframework:spring-parent::1.2.8 for project: null:spring-webmvc:jar:1.2.8 from the repository.
[DEBUG]       org.springframework:spring-webmvc:jar:1.2.8:provided (selected for provided)
[DEBUG] Retrieving parent-POM: org.springframework:spring-parent::1.2.8 for project: null:spring-web:jar:1.2.8 from the repository.
[DEBUG]         org.springframework:spring-web:jar:1.2.8:provided (selected for provided)
[DEBUG] Retrieving parent-POM: org.springframework:spring-parent::1.2.8 for project: null:spring-context:jar:1.2.8 from the repository.
[DEBUG]           org.springframework:spring-context:jar:1.2.8:provided (selected for provided)
[DEBUG] Retrieving parent-POM: org.springframework:spring-parent::1.2.8 for project: null:spring-aop:jar:1.2.8 from the repository.
[DEBUG]             org.springframework:spring-aop:jar:1.2.8:provided (selected for provided)
[DEBUG] Retrieving parent-POM: org.springframework:spring-parent::1.2.8 for project: null:spring-beans:jar:1.2.8 from the repository.
[DEBUG]               org.springframework:spring-beans:jar:1.2.8:provided (selected for provided)
[DEBUG] Retrieving parent-POM: org.springframework:spring-parent::1.2.8 for project: null:spring-core:jar:1.2.8 from the repository.
[DEBUG]                 org.springframework:spring-core:jar:1.2.8:provided (selected for provided)
[DEBUG] Retrieving parent-POM: org.springframework:spring-parent::1.2.8 for project: null:spring-dao:jar:1.2.8 from the repository.
[DEBUG]       org.springframework:spring-dao:jar:1.2.8:provided (selected for provided)
[DEBUG]         org.springframework:spring-context:jar:1.2.8:provided (selected for provided)
[DEBUG]           org.springframework:spring-aop:jar:1.2.8:provided (selected for provided)
[DEBUG]             org.springframework:spring-beans:jar:1.2.8:provided (selected for provided)
[DEBUG]               org.springframework:spring-core:jar:1.2.8:provided (selected for provided)
[DEBUG]     oro:oro:jar:2.0.8:provided (selected for provided)
[DEBUG] Retrieving parent-POM: org.springframework:spring-parent::1.2.8 for project: null:spring-jdbc:jar:1.2.8 from the repository.
[DEBUG]     org.springframework:spring-jdbc:jar:1.2.8:provided (selected for provided)
[DEBUG]       org.springframework:spring-beans:jar:1.2.8:provided (selected for provided)
[DEBUG]         org.springframework:spring-core:jar:1.2.8:provided (selected for provided)
[DEBUG] Skipping disabled repository central
[DEBUG] dsutil_i18n_main: using locally installed snapshot
[DEBUG]   sk.digitalsystems:dsutil_i18n_main:jar:1.1.0.0-SNAPSHOT:compile (selected for compile)
[DEBUG]   javax.mail:mail:jar:1.4:provided (selected for provided)
[DEBUG]     javax.activation:activation:jar:1.1:provided (selected for provided)
[DEBUG] cms_classes: using locally installed snapshot
[DEBUG] dsutil_web: using locally installed snapshot
[DEBUG] dsutil_i18n_main: using locally installed snapshot
[DEBUG] perobs_spring: using locally installed snapshot
[DEBUG] dsutil: using locally installed snapshot
[DEBUG] cms: using locally installed snapshot
[DEBUG] perobs: using locally installed snapshot
[DEBUG] org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:2.0.1:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus-compiler::1.5.2 for project: null:plexus-compiler-api:jar:1.5.2 from the repository.
...
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-compiler-plugin:2.0.1:compile' -->
[DEBUG]   (f) basedir = C:\users\ist\eclipse\ekotox\work1\non_combustion
[DEBUG]   (f) buildDirectory = C:\users\ist\eclipse\ekotox\work1\non_combustion\target
[DEBUG]   (f) classpathElements = [C:\users\ist\eclipse\ekotox\work1\non_combustion\target\classes, C:\Documents and Settings\ist\.m2\repository\org\springframework\spring-support\1.2.8\spring-support-1.2.8.jar, C:\Documents and Settings\ist\.m2\repository\org\springframework\spring-web\1.2.8\spring-web-1.2.8.jar, C:\Documents and Settings\ist\.m2\repository\sk\digitalsystems\cms_classes\1.1.0.0-SNAPSHOT\cms_classes-1.1.0.0-SNAPSHOT.jar, C:\Documents and Settings\ist\.m2\repository\javax\servlet\jsp-api\2.0\jsp-api-2.0.jar, C:\Documents and Settings\ist\.m2\repository\javax\servlet\servlet-api\2.4\servlet-api-2.4.jar, C:\Documents and Settings\ist\.m2\repository\commons-logging\commons-logging\1.0.4\commons-logging-1.0.4.jar, C:\Documents and Settings\ist\.m2\repository\commons-lang\commons-lang\2.1\commons-lang-2.1.jar, C:\Documents and Settings\ist\.m2\repository\org\springframework\spring-aop\1.2.8\spring-aop-1.2.8.jar, C:\Documents and Settings\ist\.m2\repository\commons-collections\commons-collections\3.1\commons-collections-3.1.jar, C:\Documents and Settings\ist\.m2\repository\org\springframework\spring-remoting\1.2.8\spring-remoting-1.2.8.jar, C:\Documents and Settings\ist\.m2\repository\oro\oro\2.0.8\oro-2.0.8.jar, C:\Documents and Settings\ist\.m2\repository\sk\digitalsystems\dsutil_i18n_main\1.1.0.0-SNAPSHOT\dsutil_i18n_main-1.1.0.0-SNAPSHOT.jar, C:\Documents and Settings\ist\.m2\repository\org\springframework\spring-jdbc\1.2.8\spring-jdbc-1.2.8.jar, C:\Documents and Settings\ist\.m2\repository\sk\digitalsystems\dsutil_web\1.1.2.0-SNAPSHOT\dsutil_web-1.1.2.0-SNAPSHOT.jar, C:\Documents and Settings\ist\.m2\repository\javax\activation\activation\1.1\activation-1.1.jar, C:\Documents and Settings\ist\.m2\repository\org\springframework\spring-dao\1.2.8\spring-dao-1.2.8.jar, C:\Documents and Settings\ist\.m2\repository\sk\digitalsystems\perobs_spring\1.1.4.0-SNAPSHOT\perobs_spring-1.1.4.0-SNAPSHOT.jar, C:\Documents and Settings\ist\.m2\repository\commons-codec\commons-codec\1.3\commons-codec-1.3.jar, C:\Documents and Settings\ist\.m2\repository\log4j\log4j\1.2.9\log4j-1.2.9.jar, C:\Documents and Settings\ist\.m2\repository\javax\mail\mail\1.4\mail-1.4.jar, C:\Documents and Settings\ist\.m2\repository\sk\digitalsystems\perobs\1.1.9.0-SNAPSHOT\perobs-1.1.9.0-SNAPSHOT.jar, C:\Documents and Settings\ist\.m2\repository\org\springframework\spring-core\1.2.8\spring-core-1.2.8.jar, C:\Documents and Settings\ist\.m2\repository\org\springframework\spring-context\1.2.8\spring-context-1.2.8.jar, C:\Documents and Settings\ist\.m2\repository\org\springframework\spring-webmvc\1.2.8\spring-webmvc-1.2.8.jar, C:\Documents and Settings\ist\.m2\repository\org\acegisecurity\acegi-security\1.0.3\acegi-security-1.0.3.jar, C:\Documents and Settings\ist\.m2\repository\sk\digitalsystems\dsutil\1.1.7.0-SNAPSHOT\dsutil-1.1.7.0-SNAPSHOT.jar, C:\Documents and Settings\ist\.m2\repository\org\springframework\spring-beans\1.2.8\spring-beans-1.2.8.jar]
[DEBUG]   (f) compileSourceRoots = [C:\users\ist\eclipse\ekotox\work1\non_combustion\src\main\java]
[DEBUG]   (f) compilerId = javac
[DEBUG]   (f) debug = true
[DEBUG]   (f) fork = false
[DEBUG]   (f) optimize = false
[DEBUG]   (f) outputDirectory = C:\users\ist\eclipse\ekotox\work1\non_combustion\target\classes
[DEBUG]   (f) outputFileName = non_combustion-1.1.2.0-SNAPSHOT
[DEBUG]   (f) projectArtifact = sk.digitalsystems:non_combustion:war:1.1.2.0-SNAPSHOT
[DEBUG]   (f) showDeprecation = false
[DEBUG]   (f) showWarnings = false
[DEBUG]   (f) source = 1.5
[DEBUG]   (f) staleMillis = 0
[DEBUG]   (f) target = 1.5
[DEBUG]   (f) verbose = false
...
[DEBUG] Classpath: [C:\users\ist\eclipse\ekotox\work1\non_combustion\target\classes
 C:\Documents and Settings\ist\.m2\repository\org\springframework\spring-support\1.2.8\spring-support-1.2.8.jar
 C:\Documents and Settings\ist\.m2\repository\org\springframework\spring-web\1.2.8\spring-web-1.2.8.jar
 C:\Documents and Settings\ist\.m2\repository\sk\digitalsystems\cms_classes\1.1.0.0-SNAPSHOT\cms_classes-1.1.0.0-SNAPSHOT.jar
 C:\Documents and Settings\ist\.m2\repository\javax\servlet\jsp-api\2.0\jsp-api-2.0.jar
 C:\Documents and Settings\ist\.m2\repository\javax\servlet\servlet-api\2.4\servlet-api-2.4.jar
 C:\Documents and Settings\ist\.m2\repository\commons-logging\commons-logging\1.0.4\commons-logging-1.0.4.jar
 C:\Documents and Settings\ist\.m2\repository\commons-lang\commons-lang\2.1\commons-lang-2.1.jar
 C:\Documents and Settings\ist\.m2\repository\org\springframework\spring-aop\1.2.8\spring-aop-1.2.8.jar
 C:\Documents and Settings\ist\.m2\repository\commons-collections\commons-collections\3.1\commons-collections-3.1.jar
 C:\Documents and Settings\ist\.m2\repository\org\springframework\spring-remoting\1.2.8\spring-remoting-1.2.8.jar
 C:\Documents and Settings\ist\.m2\repository\oro\oro\2.0.8\oro-2.0.8.jar
 C:\Documents and Settings\ist\.m2\repository\sk\digitalsystems\dsutil_i18n_main\1.1.0.0-SNAPSHOT\dsutil_i18n_main-1.1.0.0-SNAPSHOT.jar
 C:\Documents and Settings\ist\.m2\repository\org\springframework\spring-jdbc\1.2.8\spring-jdbc-1.2.8.jar
 C:\Documents and Settings\ist\.m2\repository\sk\digitalsystems\dsutil_web\1.1.2.0-SNAPSHOT\dsutil_web-1.1.2.0-SNAPSHOT.jar
 C:\Documents and Settings\ist\.m2\repository\javax\activation\activation\1.1\activation-1.1.jar
 C:\Documents and Settings\ist\.m2\repository\org\springframework\spring-dao\1.2.8\spring-dao-1.2.8.jar
 C:\Documents and Settings\ist\.m2\repository\sk\digitalsystems\perobs_spring\1.1.4.0-SNAPSHOT\perobs_spring-1.1.4.0-SNAPSHOT.jar
 C:\Documents and Settings\ist\.m2\repository\commons-codec\commons-codec\1.3\commons-codec-1.3.jar
 C:\Documents and Settings\ist\.m2\repository\log4j\log4j\1.2.9\log4j-1.2.9.jar
 C:\Documents and Settings\ist\.m2\repository\javax\mail\mail\1.4\mail-1.4.jar
 C:\Documents and Settings\ist\.m2\repository\sk\digitalsystems\perobs\1.1.9.0-SNAPSHOT\perobs-1.1.9.0-SNAPSHOT.jar
 C:\Documents and Settings\ist\.m2\repository\org\springframework\spring-core\1.2.8\spring-core-1.2.8.jar
 C:\Documents and Settings\ist\.m2\repository\org\springframework\spring-context\1.2.8\spring-context-1.2.8.jar
 C:\Documents and Settings\ist\.m2\repository\org\springframework\spring-webmvc\1.2.8\spring-webmvc-1.2.8.jar
 C:\Documents and Settings\ist\.m2\repository\org\acegisecurity\acegi-security\1.0.3\acegi-security-1.0.3.jar
 C:\Documents and Settings\ist\.m2\repository\sk\digitalsystems\dsutil\1.1.7.0-SNAPSHOT\dsutil-1.1.7.0-SNAPSHOT.jar
 C:\Documents and Settings\ist\.m2\repository\org\springframework\spring-beans\1.2.8\spring-beans-1.2.8.jar]
...
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[DEBUG] sk.digitalsystems:non_combustion:war:1.1.2.0-SNAPSHOT (selected for null)
[DEBUG]   sk.digitalsystems:perobs_spring:jar:1.1.4.0-SNAPSHOT:compile (selected for compile)
[DEBUG]     sk.digitalsystems:perobs:jar:1.1.9.0-SNAPSHOT:compile (selected for compile)
[DEBUG]       sk.digitalsystems:dsutil:jar:1.1.7.0-SNAPSHOT:compile (selected for compile)
[DEBUG]   sk.digitalsystems:cms_classes:jar:1.1.0.0-SNAPSHOT:compile (selected for compile)
[DEBUG]     sk.digitalsystems:dsutil_web:jar:1.1.2.0-SNAPSHOT:compile (selected for compile)
[DEBUG]   junit:junit:jar:3.8.1:test (selected for test)
[DEBUG]   javax.servlet:jsp-api:jar:2.0:provided (selected for provided)
[DEBUG]     javax.servlet:servlet-api:jar:2.4:provided (selected for provided)
[DEBUG]   sk.digitalsystems:cms:war:1.1.2.0-SNAPSHOT:compile (selected for compile)
[DEBUG]   org.acegisecurity:acegi-security:jar:1.0.3:provided (selected for provided)
[DEBUG]     org.springframework:spring-support:jar:1.2.8:provided (selected for provided)
[DEBUG]     commons-codec:commons-codec:jar:1.3:provided (selected for provided)
[DEBUG]     commons-logging:commons-logging:jar:1.0.4:provided (selected for provided)
[DEBUG]     log4j:log4j:jar:1.2.9:provided (selected for provided)
[DEBUG]     commons-lang:commons-lang:jar:2.1:provided (selected for provided)
[DEBUG]     commons-collections:commons-collections:jar:3.1:provided (selected for provided)
[DEBUG]     org.springframework:spring-remoting:jar:1.2.8:provided (selected for provided)
[DEBUG]       org.springframework:spring-webmvc:jar:1.2.8:provided (selected for provided)
[DEBUG]         org.springframework:spring-web:jar:1.2.8:provided (selected for provided)
[DEBUG]           org.springframework:spring-context:jar:1.2.8:provided (selected for provided)
[DEBUG]             org.springframework:spring-aop:jar:1.2.8:provided (selected for provided)
[DEBUG]               org.springframework:spring-beans:jar:1.2.8:provided (selected for provided)
[DEBUG]                 org.springframework:spring-core:jar:1.2.8:provided (selected for provided)
[DEBUG]       org.springframework:spring-dao:jar:1.2.8:provided (selected for provided)
[DEBUG]         org.springframework:spring-context:jar:1.2.8:provided (selected for provided)
[DEBUG]           org.springframework:spring-aop:jar:1.2.8:provided (selected for provided)
[DEBUG]             org.springframework:spring-beans:jar:1.2.8:provided (selected for provided)
[DEBUG]               org.springframework:spring-core:jar:1.2.8:provided (selected for provided)
[DEBUG]     oro:oro:jar:2.0.8:provided (selected for provided)
[DEBUG]     org.springframework:spring-jdbc:jar:1.2.8:provided (selected for provided)
[DEBUG]       org.springframework:spring-beans:jar:1.2.8:provided (selected for provided)
[DEBUG]         org.springframework:spring-core:jar:1.2.8:provided (selected for provided)
[DEBUG]   sk.digitalsystems:dsutil_i18n_main:jar:1.1.0.0-SNAPSHOT:compile (selected for compile)
[DEBUG]   javax.mail:mail:jar:1.4:provided (selected for provided)
[DEBUG]     javax.activation:activation:jar:1.1:provided (selected for provided)
[DEBUG] dsutil: using locally installed snapshot
[DEBUG] dsutil_web: using locally installed snapshot
[DEBUG] perobs: using locally installed snapshot
...
[INFO] Expanding: C:\Documents and Settings\ist\.m2\repository\sk\digitalsystems\cms\1.1.2.0-SNAPSHOT\cms-1.1.2.0-SNAPSHOT.war into C:\users\ist\eclipse\ekotox\work1\non_combustion\target\war\work\cms-1.1.2.0-SNAPSHOT
[DEBUG] expanding META-INF/maven/sk.digitalsystems/cms/pom.properties to C:\users\ist\eclipse\ekotox\work1\non_combustion\target\war\work\cms-1.1.2.0-SNAPSHOT\META-INF\maven\sk.digitalsystems\cms\pom.properties
[DEBUG] expanding META-INF/maven/sk.digitalsystems/cms/pom.xml to C:\users\ist\eclipse\ekotox\work1\non_combustion\target\war\work\cms-1.1.2.0-SNAPSHOT\META-INF\maven\sk.digitalsystems\cms\pom.xml
[DEBUG] expanding META-INF/maven/sk.digitalsystems/cms/ to C:\users\ist\eclipse\ekotox\work1\non_combustion\target\war\work\cms-1.1.2.0-SNAPSHOT\META-INF\maven\sk.digitalsystems\cms
[DEBUG] expanding META-INF/maven/sk.digitalsystems/ to C:\users\ist\eclipse\ekotox\work1\non_combustion\target\war\work\cms-1.1.2.0-SNAPSHOT\META-INF\maven\sk.digitalsystems
[DEBUG] expanding META-INF/maven/ to C:\users\ist\eclipse\ekotox\work1\non_combustion\target\war\work\cms-1.1.2.0-SNAPSHOT\META-INF\maven
[DEBUG] expanding WEB-INF/web.xml to C:\users\ist\eclipse\ekotox\work1\non_combustion\target\war\work\cms-1.1.2.0-SNAPSHOT\WEB-INF\web.xml
[DEBUG] expanding WEB-INF/lib/servlet-api-2.4.jar to C:\users\ist\eclipse\ekotox\work1\non_combustion\target\war\work\cms-1.1.2.0-SNAPSHOT\WEB-INF\lib\servlet-api-2.4.jar
[DEBUG] expanding WEB-INF/lib/jsp-api-2.0.jar to C:\users\ist\eclipse\ekotox\work1\non_combustion\target\war\work\cms-1.1.2.0-SNAPSHOT\WEB-INF\lib\jsp-api-2.0.jar
[DEBUG] expanding WEB-INF/lib/dsutil_web-1.1.2.0-SNAPSHOT.jar to C:\users\ist\eclipse\ekotox\work1\non_combustion\target\war\work\cms-1.1.2.0-SNAPSHOT\WEB-INF\lib\dsutil_web-1.1.2.0-SNAPSHOT.jar
[DEBUG] expanding WEB-INF/lib/cms_classes-1.1.0.0-SNAPSHOT.jar to C:\users\ist\eclipse\ekotox\work1\non_combustion\target\war\work\cms-1.1.2.0-SNAPSHOT\WEB-INF\lib\cms_classes-1.1.0.0-SNAPSHOT.jar
...
[INFO] Generating war C:\users\ist\eclipse\ekotox\work1\non_combustion\target\non_combustion-1.1.2.0-SNAPSHOT.war
[INFO] Building war: C:\users\ist\eclipse\ekotox\work1\non_combustion\target\non_combustion-1.1.2.0-SNAPSHOT.war
[DEBUG] adding directory META-INF/
[DEBUG] adding entry META-INF/MANIFEST.MF
[DEBUG] adding directory docs/
[DEBUG] adding directory images/
[DEBUG] adding directory META-INF/maven/
...
[DEBUG] adding entry WEB-INF/lib/cms_classes-1.1.0.0-SNAPSHOT.jar
[DEBUG] adding entry WEB-INF/lib/dsutil-1.1.7.0-SNAPSHOT.jar
[DEBUG] adding entry WEB-INF/lib/dsutil_i18n_main-1.1.0.0-SNAPSHOT.jar
[DEBUG] adding entry WEB-INF/lib/dsutil_web-1.1.2.0-SNAPSHOT.jar
[DEBUG] adding entry WEB-INF/lib/jsp-api-2.0.jar
[DEBUG] adding entry WEB-INF/lib/perobs-1.1.9.0-SNAPSHOT.jar
[DEBUG] adding entry WEB-INF/lib/perobs_spring-1.1.4.0-SNAPSHOT.jar
[DEBUG] adding entry WEB-INF/lib/servlet-api-2.4.jar


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: provided dependency packaged into war

Posted by Wayne Fay <wa...@gmail.com>.
If you want the dependency to be included in your WAR, you should use
"compile" scope.

The other scopes you mentioned -- "provided" and "system" -- basically
mean "do not include in WAR package". So you're telling Maven to do
the opposite of what you want, and then you're unhappy with the
results.

You really need to review some basic Maven documentation, might I suggest:
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
 (especially the Dependency Scope section)

Wayne

On 3/20/08, neo anderson <ja...@yahoo.co.uk> wrote:
>
> How to include library into war file?
>
> First I create web project skeleton by
>
> mvn archetype:create -DgroupId=net.sf.sample -DartifactId=wicket-hello
> -Dversion=1.0 -DarchetypeArtifactId=maven-archetype-webapps
>
>
> Then I modify pom.xml to include the dependency.
>
> <dependency>
> <groupId>org.apache.wicket</groupId>
> <artifactId>wicket</artifactId>
> <version>1.3.2</version>
> <scope>provided</scope>
> <!--scope>system</scope>
> <systemPath>${basedir}/lib/wicket-1.3.2.jar</systemPath-->
> </dependency>
>
> However, I set scope to either provided or system. None of them will make
> the library (i.e., wicket-1.3.2.jar) included into the war.
>
> What should I do in order to include jar file included in the WEB-INF/lib
> directory?
>
> Thanks in advice,
>
> --
> View this message in context:
> http://www.nabble.com/provided-dependency-packaged-into-war-tp8713555s177p16192173.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: provided dependency packaged into war

Posted by neo anderson <ja...@yahoo.co.uk>.
How to include library into war file? 

First I create web project skeleton by 

mvn archetype:create -DgroupId=net.sf.sample -DartifactId=wicket-hello
-Dversion=1.0 -DarchetypeArtifactId=maven-archetype-webapps


Then I modify pom.xml to include the dependency.

    <dependency>
      <groupId>org.apache.wicket</groupId>
      <artifactId>wicket</artifactId>
      <version>1.3.2</version>
      <scope>provided</scope>
      <!--scope>system</scope>
      <systemPath>${basedir}/lib/wicket-1.3.2.jar</systemPath-->
    </dependency>

However, I set scope to either provided or system. None of them will make
the library (i.e., wicket-1.3.2.jar) included into the war. 

What should I do in order to include jar file included in the WEB-INF/lib
directory?

Thanks in advice,

-- 
View this message in context: http://www.nabble.com/provided-dependency-packaged-into-war-tp8713555s177p16192173.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org