[Building Sakai] Problem with pom.xml at root of edu-services
Noah Botimer
botimer at umich.edu
Thu Oct 21 12:24:59 PDT 2010
Maybe we can start up a FAQ / Troubleshooting Guide?
We've been seeing a lot of these build / deployment / pom problems tripping up some of our most experienced people, as well as newcomers.
There's a lot of complexity in our packaging and it's hard to find good answers, check for (ill-)advised patterns, or debug problems quickly. Burning a half day of senior developer time at a crack on getting a build going isn't really a best practice.
Thanks,
-Noah
On Oct 21, 2010, at 3:05 PM, Jim Eng wrote:
> Is it possible that we are downloading org.sakaiproject.edu-services.gradebook:gradebook-service-impl:jar:1.0.6 and that somehow depends on org.sakaiproject.edu-services.sections:sections-integrationsupport:jar:1.1.0-a02?
>
> The relevant part of the error message is shown below. This occurs while trying to build gradebook2 in a fresh checkout of sakai 2.7.1 (also in sakai 2.7.x):
>
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>
> Missing:
> ----------
> 1) org.sakaiproject.edu-services.sections:sections-integrationsupport:jar:1.1.0-a02
>
> Try downloading the file manually from:
> http://source.sakaiproject.org/maven2/
>
> Then, install it using the command:
> mvn install:install-file -DgroupId=org.sakaiproject.edu-services.sections -DartifactId=sections-integrationsupport -Dversion=1.1.0-a02 -Dpackaging=jar -Dfile=/path/to/file
>
> Alternatively, if you host your own repository you can deploy the file there:
> mvn deploy:deploy-file -DgroupId=org.sakaiproject.edu-services.sections -DartifactId=sections-integrationsupport -Dversion=1.1.0-a02 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>
> Path to dependency:
> 1) org.sakaiproject.gradebook2:gradebook2-model:jar:1.3.0-SNAPSHOT
> 2) org.sakaiproject.edu-services.gradebook:gradebook-service-impl:jar:1.0.6
> 3) org.sakaiproject.edu-services.sections:sections-integrationsupport:jar:1.1.0-a02
>
> ----------
> 1 required artifact is missing.
>
>
>
>
> On Oct 21, 2010, at 2:46 PM, Jim Eng wrote:
>
>> master/pom.xml defines this property:
>>
>> <sakai.edu-services.version>1.0.6</sakai.edu-services.version>
>>
>> I am not seeing any hardcoded versions in master, core-deploy, sections or gradebook2.
>>
>>
>>
>> On Oct 21, 2010, at 2:39 PM, Jim Eng wrote:
>>
>>> Turns out there's another problem. Sakai 2.7.1 and 2.7.x seem to have a mix of versions for edu-services. After cleaning out everything from ~/.m2/repository/org/sakaiproject and starting to build full sakai version 2.7.1, I find that sections-integrationsupport-1.0.6.jar has been put into my m2 repo. But when gradebook2 tries to find the sections-api jar, it ends up using ${sakai.edu-services.version} when looking for that jar, and ${sakai.edu-services.version} seems to have a value of 1.1.0-a02 instead of 1.0.6.
>>>
>>> I have been trying to unwind this to see why core-deply gets the 1.0.6 versions of various edu-services jars, but then the sections project seems to want the 1.1.0-a02 versions.
>>>
>>> Jim
>>>
>>>
>>>
>>> On Oct 20, 2010, at 2:08 PM, Anthony Whyte wrote:
>>>
>>>> I'll handle this.
>>>>
>>>> Anth
>>>>
>>>>
>>>> On Oct 20, 2010, at 1:32 PM, Matthew Jones wrote:
>>>>
>>>>> Looks like Anthony removed this from master in November 2009? Searching email it's given people a lot of problems in various messages.
>>>>>
>>>>> http://collab.sakaiproject.org/pipermail/sakai-dev/2010-January/005521.html
>>>>>
>>>>> On Wed, Oct 20, 2010 at 1:29 PM, Jim Eng <jimeng at umich.edu> wrote:
>>>>> What I meant was: Could someone remove or update **the apache-repo repository element in** the edu-services pom.xml file?
>>>>>
>>>>> :-)
>>>>>
>>>>> On Oct 20, 2010, at 1:26 PM, Jim Eng wrote:
>>>>>
>>>>> > The "repositories" tag in the root pom.xml file for edu-services includes the following repository element:
>>>>> >
>>>>> > <repository>
>>>>> > <id>apache-repo</id>
>>>>> > <name>apache-repo</name>
>>>>> > <layout>default</layout>
>>>>> > <url>http://myfaces.zones.apache.org/dist/maven-repository</url>
>>>>> > <releases>
>>>>> > <enabled>true</enabled>
>>>>> > </releases>
>>>>> > <snapshots>
>>>>> > <enabled>false</enabled>
>>>>> > </snapshots>
>>>>> > </repository>
>>>>> >
>>>>> > This seems to be an invalid URL, and it causes problems when doing a full build of sakai with gradebook2. The build hangs at this point for several minutes before timing out:
>>>>> >
>>>>> > [INFO] artifact org.sakaiproject.edu-services.sections:sections-integrationsupport: checking for updates from apache-repo
>>>>> >
>>>>> > After that long delay, the following messages are displayed:
>>>>> >
>>>>> > [WARNING] repository metadata for: 'artifact org.sakaiproject.edu-services.sections:sections-integrationsupport' could not be retrieved from repository: apache-repo due to an error: Operation timed out
>>>>> > [INFO] Repository 'apache-repo' will be blacklisted
>>>>> >
>>>>> > A similar repository element has been commented out in the master/pom.xml file. Could someone remove or update the edu-services pom.xml file?
>>>>> >
>>>>> > Thanks.
>>>>> >
>>>>> > Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20101021/d5f1baa1/attachment.html
More information about the sakai-dev
mailing list