Ah - Yikes - Thanks

It compiles now   after I changed the dependencies to rely on  
<artifactId>javax.servlet-api</artifactId>
Unfortunately this had to be done in all sorts of pom.xml files

BUT

after the compile I still find WEB-INF/lib/servlet-api-2.5-20081211.jar in 
webapps/*/WEB-INF/lib directories

when I do
> ant update
> rm $DSPACE_HOME/webapps/jspui/WEB-INF/lib/*servlet*
then restart tomcat and localhost:8080/jspui comes up fine

This is an ugly hack - but good enough for now.  I’d be curious to know though 
why insist in adding the old servlet jar,
but not curious enough to keep digging.

Monika

the diff in case anybody cares to look:



________________
Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, NJ 
08544


> On Mar 4, 2015, at 1:00 PM, Mark H. Wood <mw...@iupui.edu> wrote:
>
> On Wed, Mar 04, 2015 at 03:19:02PM +0000, Monika C. Mevenkamp wrote:
>> Thanks Andrea  and a follow up question to mvn experts
>>
>> My tomcat8 says in its release notes
>>    * servlet-api.jar (Servlet 3.1 API)
>> so I changed the main pom to say
>> <dependency>
>>   <groupId>javax.servlet</groupId>
>>   <artifactId>servlet-api</artifactId>
>>   <version>3.1.0</version>
>> </dependency>
>>
>> then a couple rounds of unsuccessful mvn package attempts
>>
>> Finally  I removed  ~/.m2/repository/javax  and tried again
>>> mvn clean
>>> mvn -U package
>>
>> this triggers downloading of all sorts of a javax packages. As you can see 
>> in the list below there is a
>> javax/servlet/servlet-api/3.1.0/servlet-api-3.1.0.jar and pom
>>
>> despite this I get the error
>>
>> [ERROR] Failed to execute goal on project dspace-services: Could not resolve 
>> dependencies for project org.dspace:dspace-services:jar:6.0-SNAPSHOT: Could 
>> not find artifact javax.servlet:servlet-api:jar:3.1.0 in sonatype-releases 
>> (https://oss.sonatype.org/content/repositories/releases/)
>>
>> I am at a loss - since the jar/pom was downloaded - why is maven / am I 
>> confused  ?
>
> They changed the name of the artifact starting with 3.0.1.  The GAV
> coordinates are now javax.servlet:javax.servlet-api:3.1.0.
>
> http://search.maven.org/#artifactdetails|javax.servlet|javax.servlet-api|3.1.0|jar
>
> Personally I think this sort of renaming should be a hanging offense.
>
> --
> Mark H. Wood
> Lead Technology Analyst
>
> University Library
> Indiana University - Purdue University Indianapolis
> 755 W. Michigan Street
> Indianapolis, IN 46202
> 317-274-0749
> www.ulib.iupui.edu<http://www.ulib.iupui.edu>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. 
> http://goparallel.sourceforge.net/_______________________________________________
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette: 
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

 dspace-api/pom.xml                   |  7 +++----
 dspace-jspui/pom.xml                 |  2 +-
 dspace-lni/dspace-lni-client/pom.xml |  2 +-
 dspace-lni/pom.xml                   |  4 ++--
 dspace-oai/pom.xml                   |  2 +-
 dspace-rdf/pom.xml                   |  2 +-
 dspace-rest/pom.xml                  |  4 ++--
 dspace-services/pom.xml              |  2 +-
 dspace-solr/pom.xml                  |  3 +--
 dspace-sword/pom.xml                 |  2 +-
 dspace-swordv2/pom.xml               |  2 +-
 dspace-xmlui/pom.xml                 |  2 +-
 dspace/modules/additions/pom.xml     |  2 +-
 dspace/modules/jspui/pom.xml         |  4 ++--
 dspace/modules/lni/pom.xml           |  4 ++--
 dspace/modules/oai/pom.xml           |  2 +-
 dspace/modules/rdf/pom.xml           |  2 +-
 dspace/modules/rest/pom.xml          |  2 +-
 dspace/modules/sword/pom.xml         |  2 +-
 dspace/modules/swordv2/pom.xml       |  2 +-
 dspace/modules/xmlui/pom.xml         |  2 +-
 dspace/pom.xml                       |  2 +-
 pom.xml                              | 12 +++++++++---
 23 files changed, 37 insertions(+), 33 deletions(-)
diff --git a/dspace-api/pom.xml b/dspace-api/pom.xml
index a85383b..487e317 100644
--- a/dspace-api/pom.xml
+++ b/dspace-api/pom.xml
@@ -365,7 +365,7 @@
         </dependency>
         <dependency>
             <groupId>javax.servlet</groupId>
-            <artifactId>servlet-api</artifactId>
+            <artifactId>javax.servlet-api</artifactId>
             <scope>provided</scope>
         </dependency>
         <dependency>
@@ -569,10 +569,9 @@
 
 
         <dependency>
-            <groupId>com.oracle</groupId>
-            <artifactId>ojdbc6</artifactId>
+            <groupId>postgresql</groupId>
+            <artifactId>postgresql</artifactId>
         </dependency>
-
                
         <dependency>
             <groupId>org.slf4j</groupId>
diff --git a/dspace-jspui/pom.xml b/dspace-jspui/pom.xml
index 5411545..789b0b0 100644
--- a/dspace-jspui/pom.xml
+++ b/dspace-jspui/pom.xml
@@ -106,7 +106,7 @@
         </dependency>
         <dependency>
             <groupId>javax.servlet</groupId>
-            <artifactId>servlet-api</artifactId>
+            <artifactId>javax.servlet-api</artifactId>
             <scope>provided</scope>
         </dependency>
         <dependency>
diff --git a/dspace-lni/dspace-lni-client/pom.xml 
b/dspace-lni/dspace-lni-client/pom.xml
index e81ce0a..b1c2fb6 100644
--- a/dspace-lni/dspace-lni-client/pom.xml
+++ b/dspace-lni/dspace-lni-client/pom.xml
@@ -186,7 +186,7 @@
       </dependency>
       <dependency>
          <groupId>javax.servlet</groupId>
-         <artifactId>servlet-api</artifactId>
+         <artifactId>javax.servlet-api</artifactId>
          <scope>provided</scope>
       </dependency>
       <dependency>
diff --git a/dspace-lni/pom.xml b/dspace-lni/pom.xml
index c4d142d..02af43d 100644
--- a/dspace-lni/pom.xml
+++ b/dspace-lni/pom.xml
@@ -111,9 +111,9 @@
         </dependency>
         <dependency>
             <groupId>javax.servlet</groupId>
-            <artifactId>servlet-api</artifactId>
+            <artifactId>javax.servlet-api</artifactId>
             <scope>provided</scope>
         </dependency>
     </dependencies>
 
-</project>
\ No newline at end of file
+</project>
diff --git a/dspace-oai/pom.xml b/dspace-oai/pom.xml
index 7cb189a..a166f19 100644
--- a/dspace-oai/pom.xml
+++ b/dspace-oai/pom.xml
@@ -151,7 +151,7 @@
         <!-- Web API -->
         <dependency>
             <groupId>javax.servlet</groupId>
-            <artifactId>servlet-api</artifactId>
+            <artifactId>javax.servlet-api</artifactId>
             <scope>provided</scope>
         </dependency>
 
diff --git a/dspace-rdf/pom.xml b/dspace-rdf/pom.xml
index 3ba493f..0a55d78 100644
--- a/dspace-rdf/pom.xml
+++ b/dspace-rdf/pom.xml
@@ -60,7 +60,7 @@
 
         <dependency>
             <groupId>javax.servlet</groupId>
-            <artifactId>servlet-api</artifactId>
+            <artifactId>javax.servlet-api</artifactId>
             <scope>provided</scope>
         </dependency>
         <dependency>
diff --git a/dspace-rest/pom.xml b/dspace-rest/pom.xml
index 0ba56b4..c4cbfab 100644
--- a/dspace-rest/pom.xml
+++ b/dspace-rest/pom.xml
@@ -111,8 +111,8 @@
             <artifactId>commons-dbcp</artifactId>
         </dependency>
         <dependency>
-            <groupId>com.oracle</groupId>
-            <artifactId>ojdbc6</artifactId>
+            <groupId>postgresql</groupId>
+            <artifactId>postgresql</artifactId>
         </dependency>
         <dependency>
             <groupId>javax.servlet</groupId>
diff --git a/dspace-services/pom.xml b/dspace-services/pom.xml
index d2a3732..55f414d 100644
--- a/dspace-services/pom.xml
+++ b/dspace-services/pom.xml
@@ -44,7 +44,7 @@
         <!-- for filters -->
         <dependency>
             <groupId>javax.servlet</groupId>
-            <artifactId>servlet-api</artifactId>
+            <artifactId>javax.servlet-api</artifactId>
             <scope>provided</scope>
         </dependency>
         <dependency>
diff --git a/dspace-solr/pom.xml b/dspace-solr/pom.xml
index 498b2ef..e817b57 100644
--- a/dspace-solr/pom.xml
+++ b/dspace-solr/pom.xml
@@ -262,8 +262,7 @@
         </dependency>
         <dependency>
             <groupId>javax.servlet</groupId>
-            <artifactId>servlet-api</artifactId>
-            <version>2.5</version>
+            <artifactId>javax.servlet-api</artifactId>
             <scope>provided</scope>
         </dependency>
         <dependency>
diff --git a/dspace-sword/pom.xml b/dspace-sword/pom.xml
index 3906454..4dd6e0f 100644
--- a/dspace-sword/pom.xml
+++ b/dspace-sword/pom.xml
@@ -118,7 +118,7 @@
         </dependency>
         <dependency>
             <groupId>javax.servlet</groupId>
-            <artifactId>servlet-api</artifactId>
+            <artifactId>javax.servlet-api</artifactId>
             <scope>provided</scope>
         </dependency>
         <dependency>
diff --git a/dspace-swordv2/pom.xml b/dspace-swordv2/pom.xml
index 6b19f5f..c7122e8 100644
--- a/dspace-swordv2/pom.xml
+++ b/dspace-swordv2/pom.xml
@@ -91,7 +91,7 @@
     <dependencies>
         <dependency>
             <groupId>javax.servlet</groupId>
-            <artifactId>servlet-api</artifactId>
+            <artifactId>javax.servlet-api</artifactId>
             <scope>provided</scope>
         </dependency>
         <dependency>
diff --git a/dspace-xmlui/pom.xml b/dspace-xmlui/pom.xml
index f8a4cc7..2d85368 100644
--- a/dspace-xmlui/pom.xml
+++ b/dspace-xmlui/pom.xml
@@ -230,7 +230,7 @@
         </dependency>
         <dependency>
             <groupId>javax.servlet</groupId>
-            <artifactId>servlet-api</artifactId>
+            <artifactId>javax.servlet-api</artifactId>
             <scope>provided</scope>
         </dependency>
 
diff --git a/dspace/modules/additions/pom.xml b/dspace/modules/additions/pom.xml
index 5422aee..53e641d 100644
--- a/dspace/modules/additions/pom.xml
+++ b/dspace/modules/additions/pom.xml
@@ -82,7 +82,7 @@
       </dependency>
       <dependency>
          <groupId>javax.servlet</groupId>
-         <artifactId>servlet-api</artifactId>
+         <artifactId>javax.servlet-api</artifactId>
          <scope>provided</scope>
       </dependency>
       <dependency>
diff --git a/dspace/modules/jspui/pom.xml b/dspace/modules/jspui/pom.xml
index 7015c00..6161349 100644
--- a/dspace/modules/jspui/pom.xml
+++ b/dspace/modules/jspui/pom.xml
@@ -101,9 +101,9 @@
 
         <dependency>
            <groupId>javax.servlet</groupId>
-           <artifactId>servlet-api</artifactId>
+           <artifactId>javax.servlet-api</artifactId>
            <scope>provided</scope>
         </dependency>
     </dependencies>
 
-</project>
\ No newline at end of file
+</project>
diff --git a/dspace/modules/lni/pom.xml b/dspace/modules/lni/pom.xml
index 9ce2956..3e12706 100644
--- a/dspace/modules/lni/pom.xml
+++ b/dspace/modules/lni/pom.xml
@@ -94,10 +94,10 @@
 
       <dependency>
          <groupId>javax.servlet</groupId>
-         <artifactId>servlet-api</artifactId>
+         <artifactId>javax.servlet-api</artifactId>
          <scope>provided</scope>
       </dependency>
 
    </dependencies>
 
-</project>
\ No newline at end of file
+</project>
diff --git a/dspace/modules/oai/pom.xml b/dspace/modules/oai/pom.xml
index 2f63247..7aa327f 100644
--- a/dspace/modules/oai/pom.xml
+++ b/dspace/modules/oai/pom.xml
@@ -87,7 +87,7 @@
         </dependency>
         <dependency>
             <groupId>javax.servlet</groupId>
-            <artifactId>servlet-api</artifactId>
+            <artifactId>javax.servlet-api</artifactId>
             <scope>provided</scope>
         </dependency>
         <dependency>
diff --git a/dspace/modules/rdf/pom.xml b/dspace/modules/rdf/pom.xml
index 9f71301..c786582 100644
--- a/dspace/modules/rdf/pom.xml
+++ b/dspace/modules/rdf/pom.xml
@@ -80,7 +80,7 @@
         </dependency>
         <dependency>
             <groupId>javax.servlet</groupId>
-            <artifactId>servlet-api</artifactId>
+            <artifactId>javax.servlet-api</artifactId>
             <scope>provided</scope>
         </dependency>
     </dependencies>
diff --git a/dspace/modules/rest/pom.xml b/dspace/modules/rest/pom.xml
index b5c1e3a..922319c 100644
--- a/dspace/modules/rest/pom.xml
+++ b/dspace/modules/rest/pom.xml
@@ -105,7 +105,7 @@
 
         <dependency>
             <groupId>javax.servlet</groupId>
-            <artifactId>servlet-api</artifactId>
+            <artifactId>javax.servlet-api</artifactId>
             <scope>provided</scope>
         </dependency>
 
diff --git a/dspace/modules/sword/pom.xml b/dspace/modules/sword/pom.xml
index cf51eba..7b6b95f 100644
--- a/dspace/modules/sword/pom.xml
+++ b/dspace/modules/sword/pom.xml
@@ -93,7 +93,7 @@
       </dependency>
       <dependency>
          <groupId>javax.servlet</groupId>
-         <artifactId>servlet-api</artifactId>
+         <artifactId>javax.servlet-api</artifactId>
          <scope>provided</scope>
       </dependency>
    </dependencies>
diff --git a/dspace/modules/swordv2/pom.xml b/dspace/modules/swordv2/pom.xml
index 6b9739e..de420b8 100644
--- a/dspace/modules/swordv2/pom.xml
+++ b/dspace/modules/swordv2/pom.xml
@@ -113,7 +113,7 @@
 
       <dependency>
          <groupId>javax.servlet</groupId>
-         <artifactId>servlet-api</artifactId>
+         <artifactId>javax.servlet-api</artifactId>
          <scope>provided</scope>
       </dependency>
 
diff --git a/dspace/modules/xmlui/pom.xml b/dspace/modules/xmlui/pom.xml
index 6261e1c..1b595a2 100644
--- a/dspace/modules/xmlui/pom.xml
+++ b/dspace/modules/xmlui/pom.xml
@@ -217,7 +217,7 @@
 
         <dependency>
             <groupId>javax.servlet</groupId>
-            <artifactId>servlet-api</artifactId>
+            <artifactId>javax.servlet-api</artifactId>
             <scope>provided</scope>
         </dependency>
 
diff --git a/dspace/pom.xml b/dspace/pom.xml
index d70dc9d..3172221 100644
--- a/dspace/pom.xml
+++ b/dspace/pom.xml
@@ -169,7 +169,7 @@
              command. -->
        <dependency>
             <groupId>javax.servlet</groupId>
-            <artifactId>servlet-api</artifactId>
+            <artifactId>javax.servlet-api</artifactId>
        </dependency>
     </dependencies>
 </project>
diff --git a/pom.xml b/pom.xml
index 58b2fc2..2430921 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1026,8 +1026,8 @@
          </dependency>
          <dependency>
             <groupId>javax.servlet</groupId>
-            <artifactId>servlet-api</artifactId>
-            <version>2.5</version>
+            <artifactId>javax.servlet-api</artifactId>
+            <version>3.1.0</version>
          </dependency>
 
          <dependency>
@@ -1159,7 +1159,12 @@
             <artifactId>icu4j</artifactId>
             <version>51.1</version>
          </dependency>
-        <dependency>
+         <dependency>
+            <groupId>postgresql</groupId>
+            <artifactId>postgresql</artifactId>
+            <version>9.1-901-1.jdbc4</version>
+         </dependency>
+         <dependency>
             <groupId>com.oracle</groupId>
             <artifactId>ojdbc6</artifactId>
             <version>11.2.0.4</version>
@@ -1594,6 +1599,7 @@
             <name>restlet</name>
             <url>http://maven.restlet.org</url>
         </repository>
+
     </repositories>
 
 </project>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to