[Building Sakai] Postem org.apache.commons.fileupload maven build error in tagged 2.6.1 check out

Charlie Macchia cmacchia at BrainOVision.com
Fri Dec 4 13:21:56 PST 2009


Doh!

Thanks Anthony !!!!

Charlie

On 12/4/09 4:19 PM, "Anthony Whyte" <arwhyte at umich.edu> wrote:

> Charlie--did you remove the commons-fileupload reference in your
> <dependencyMangement> section of the postem base pom?  Earlier you reporting
> doing this:
> 
> <dependencyManagement>
>     <dependencies>
>       <dependency>
>         <groupId>org.sakaiproject</groupId>
>         <artifactId>sakai-postem-impl</artifactId>
>         <version>2.6.1</version>
>       </dependency>
>       <dependency>
>        <groupId>commons-fileupload</groupId>
>         <artifactId>commons-fileupload</artifactId>
>      </dependency>
>       <dependency>
>         <groupId>org.sakaiproject</groupId>
>         <artifactId>sakai-jsf-myfaces-tool</artifactId>
>         <version>2.6.1</version>
>       </dependency>
>       <dependency>
>         <groupId>org.sakaiproject</groupId>
>         <artifactId>sakai-postem-hbm</artifactId>
>         <version>2.6.1</version>
>       </dependency>
>     </dependencies>
>   </dependencyManagement>
> 
> Should be:
> 
> <dependencyManagement>
>     <dependencies>
>       <dependency>
>         <groupId>org.sakaiproject</groupId>
>         <artifactId>sakai-postem-impl</artifactId>
>         <version>2.6.1</version>
>       </dependency>
>       <dependency>
>         <groupId>org.sakaiproject</groupId>
>         <artifactId>sakai-jsf-myfaces-tool</artifactId>
>         <version>2.6.1</version>
>       </dependency>
>       <dependency>
>         <groupId>org.sakaiproject</groupId>
>         <artifactId>sakai-postem-hbm</artifactId>
>         <version>2.6.1</version>
>       </dependency>
>     </dependencies>
>   </dependencyManagement>
> 
> Anth
> 
> On Dec 4, 2009, at 4:15 PM, Charlie Macchia wrote:
> 
>>  Back to work today.
>>  
>>  Went to {SakSource}/postem/postem-app/pom.xml
>>  
>>  Added the following below the sakai-kernel-api tag as recommended by Miguel
>> in an earlier email:
>>  
>>      <dependency>
>>        <groupId>org.sakaiproject.kernel</groupId>
>>        <artifactId>sakai-kernel-api</artifactId>
>>      </dependency>
>>                  <!-- pasted in Anthony's fix here: Charlie -->
>>      <dependency>
>>       <groupId>commons-fileupload</groupId>
>>       <artifactId>commons-fileupload</artifactId>
>>      </dependency>
>>  
>>  
>>  Unfortunately, the build fails on Postem, since maven is now looking for
>> commons-fileupload version 2.6.1, of which there is no such thing at the
>> various online repositories it checks ( ie
>> http://repo2.maven.org/maven2/commons-fileupload/commons-fileupload/ )
>>  
>>  So I did a scan of an earlier build on my machine, and discovered that
>> version 1.1.1 does seem to be included in a previous build, read up a bit
>> about how POMs work, and checked the master POM ( inside the /master dir )
>> and came across the version tag on commons-fileupload which wasn¹t inherited
>> during the build for some reason ( it was specified there as 1.1.1 which
>> makes sense ), so I just added this line inside of
>> {SakSource}/postem/postem-app/pom.xml :
>>  
>>      <dependency>
>>        <groupId>org.sakaiproject.kernel</groupId>
>>        <artifactId>sakai-kernel-api</artifactId>
>>      </dependency>
>>                  <!-- pasted in Anthony's fix here: Charlie -->
>>      <dependency>
>>       <groupId>commons-fileupload</groupId>
>>       <artifactId>commons-fileupload</artifactId>
>>  
>>       <version>${sakai.commons.fileupload.version}</version>
>>  
>>      </dependency>
>>  <!--
>>        This has been relocated to sakai-kernel-util
>>        org.sakaiproject.kernel.utilsakai-util-->
>>  
>>      <dependency>
>>        <groupId>org.sakaiproject</groupId>
>>        <artifactId>sakai-postem-api</artifactId>
>>      </dependency>
>>  
>>  Now this builds, I¹m sure you guys know, but just in case anybody else gets
>> stuck on this one.
>>  
>>  Regards,
>>  Charlie
>>  
>>  
>>  
>>   
>>   
> 
> 


-- 
Charlie Macchia
BrainOVision
Unit #301
39 Harcourt Ave.
Toronto, Ontario
M4K 1M3

Tel. (416) 466-5469
email: Charlie at BrainOVision.com
www.BrainOVision.com
Skype ID = eclecto

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20091204/4c61ca5c/attachment.html 


More information about the sakai-dev mailing list