ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kent Larsson <kent.lars...@gmail.com>
Subject Is it possible to only have Eclipse use runtime dependencies for its exploded WAR?
Date Mon, 26 Jan 2009 18:17:15 GMT
Hi! I have my project setup as a "Dynamic Web Project" in my IDE of choice,
Eclipse Ganymede. And I'm using IvyDE.

In project properties under the "Libraries" tab I have:

ivy.xml [*]
  Access rules: No rules defined
  Native library location: (None)
  Publish/export dependency: /WEB-INF/lib
  wicket-1.3.5.jar - /home/..../jars
  wicket-spring-annot-1.3.5.jar - /home/..../jars
  ...
  ...
  servlet-api-2.5.jar - /home/..../jars

All libraries which are in my two configurations are present. Let's have a
quick look at my ivy.xml to see my two configurations:

<?xml version="1.0" encoding="UTF-8"?>
<ivy-module version="2.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">
    <info
      organisation="net.mycompany"
      module="webcookie"
      status="integration"/>
    <configurations>
        <conf name="runtime" description="" />
        <conf name="compile" extends="runtime" description="" />
    </configurations>
    <dependencies>
        <dependency org="org.apache.wicket" name="wicket" rev="1.3.5"
conf="runtime->default">
            <exclude org="org.apache.portals.bridges"
module="portals-bridges-common"/>
            <exclude org="javax.portlet" module="portlet-api"/>
        </dependency>
        <dependency org="org.apache.wicket" name="wicket-spring-annot"
rev="1.3.5" conf="runtime->default"/>
        <dependency org="org.slf4j" name="slf4j-log4j12" rev="1.5.6"
conf="runtime->default"/>
        <dependency org="javax.servlet" name="servlet-api" rev="2.5"
conf="compile->default"/>
        <dependency org="org.springframework" name="spring" rev="2.5.6"
conf="runtime->default"/>
    </dependencies>
</ivy-module>

I have one configuration for run-time and one for compile-time. Is it
possible to have everything from my run-time configuration used by Eclipse
for its exploded WAR?

The reason is that Tomcat whines a bit when the servlet-api-2.5.jar is sent
to it:

"Jan 26, 2009 6:54:32 PM org.apache.catalina.loader.WebappClassLoader
validateJarFile
INFO:
validateJarFile(/home/kent/work/eclipsews/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/webcookie/WEB-INF/lib/servlet-api-2.5.jar)
- jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class:
javax/servlet/Servlet.class"

This is certainly no big deal! But I'm so close to perfection that I got to
ask! ;-)

And a big thanks to any and all of you developers of Ivy and IvyDE in case
you are reading this. You're doing an awesome job and you all deserve
cookies!

Best regards, Kent

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message