[Deploying Sakai] Build Error

Anthony Whyte arwhyte at umich.edu
Thu Apr 14 11:23:36 PDT 2011


Maven can be tricky and understanding the purpose of the many pom.xml files that exist within the Sakai CLE takes time.

Online resources:

B. Porter et al, Better Builds with Maven 
http://bit.ly/ehkub7

Sonatype also has a number of free guides on Maven.
http://www.sonatype.com/books.html

There is also an O'Reilly book on Maven 2 that's not a bad read:

J. van Zyl, Maven: The Definitive Guide
http://oreilly.com/catalog/9780596517335

Cheers,

Anth


On Apr 14, 2011, at 1:55 PM, Larry Dougher wrote:

> Thank you very much Anthony.  That was a great help to me.
> 
> Thanks again,
> 
> Larry Dougher
> Technology Coordinator / ACSP 10.6 / ACMT
> Windsor Southeast Supervisory Union
> 
> 
> 
> On Thu, Apr 14, 2011 at 1:44 PM, Anthony Whyte <arwhyte at umich.edu> wrote:
> Attempting to build with maven from the directory
> 
> sakai-2.7.1/osp/portal/tool/src/bundle/org/theospi/portfolio/portal
> 
> after updating one of the folder's messages.properties files is guaranteed to fail.  Maven needs to find a pom in the folder in order to begin its work.
> 
> I can make it fail too.  :)
> 
> Luthuli:portal arwhyte$ pwd
> /Users/arwhyte/Development/svn/sakai/tags/2.7.1/osp/portal/tool/src/bundle/org/theospi/portfolio/portal
> Luthuli:portal arwhyte$ mvn clean install sakai:deploy
> 
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'sakai'.
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] The plugin 'org.apache.maven.plugins:maven-sakai-plugin' does not exist or no valid version could be found
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: < 1 second
> [INFO] Finished at: Thu Apr 14 13:34:56 EDT 2011
> [INFO] Final Memory: 2M/528M
> [INFO] ------------------------------------------------------------------------
> 
> You need to rebuild from
> 
> sakai-2.7.1/osp
> 	pom.xml
> 
> or here:
> 
> sakai-2.7.1/osp/portal
> 	pom.xml
> 
> 
> On Apr 14, 2011, at 12:34 PM, Larry Dougher wrote:
> 
>> What I was trying to do was to change "project site" to "class site" so I edited message.properties and I was attempting to rebuild.  Was that the wrong command, should I have done mvn clean install -Dmave.tomcat.home=/pathtotomcat?
>> 
>> Also, would that accomplish what I'm trying to do?  Essentially call "project site"s "class site"s?
>> 
>> Thanks,
>> 
>> Larry Dougher
>> Technology Coordinator / ACSP 10.6 / ACMT
>> Windsor Southeast Supervisory Union
>> 
>> 
>> 
>> On Thu, Apr 14, 2011 at 12:36 PM, Anthony Whyte <arwhyte at umich.edu> wrote:
>> 
>> wsdsakai:~ admin$ cd sakai-2.7.1/osp/portal/tool/targetwsdsakai:target admin$ mvn clean install sakai:deploy -Dmaven.tomcat.home=/Users/admin/tomcat/
>> 
>> Where is this?  You are probably attempting to perform a build where the pom can't find maven-sakai-plugin (this bit sakai:deploy invokes the plugin)
>> 
>> Anth
>> 
>> 
>> 
>> On Apr 14, 2011, at 12:12 PM, Larry Dougher wrote:
>> 
>>> Hi Anthony,
>>> 
>>> Okay, I did what you did and below are the results, but it still didn't fix the error.
>>> 
>>> wsdsakai:master admin$ mvn clean install
>>> [INFO] Scanning for projects...
>>> Downloading: http://snapshots.repository.codehaus.org//org/sakaiproject/maven/plugins/sakai/1.2.0/sakai-1.2.0.pom
>>> [INFO] Unable to find resource 'org.sakaiproject.maven.plugins:sakai:pom:1.2.0' in repository codehaus snapshot repository (http://snapshots.repository.codehaus.org/)
>>> Downloading: http://source.sakaiproject.org/maven2/org/sakaiproject/maven/plugins/sakai/1.2.0/sakai-1.2.0.pom
>>> 1K downloaded  (sakai-1.2.0.pom)
>>> Downloading: http://snapshots.repository.codehaus.org//org/sakaiproject/maven/plugins/1.2.0/plugins-1.2.0.pom
>>> [INFO] Unable to find resource 'org.sakaiproject.maven:plugins:pom:1.2.0' in repository codehaus snapshot repository (http://snapshots.repository.codehaus.org/)
>>> Downloading: http://source.sakaiproject.org/maven2/org/sakaiproject/maven/plugins/1.2.0/plugins-1.2.0.pom
>>> 459b downloaded  (plugins-1.2.0.pom)
>>> Downloading: http://snapshots.repository.codehaus.org//org/sakaiproject/maven/plugins/sakai/1.2.0/sakai-1.2.0.jar
>>> [INFO] Unable to find resource 'org.sakaiproject.maven.plugins:sakai:maven-plugin:1.2.0' in repository codehaus snapshot repository (http://snapshots.repository.codehaus.org/)
>>> Downloading: http://source.sakaiproject.org/maven2/org/sakaiproject/maven/plugins/sakai/1.2.0/sakai-1.2.0.jar
>>> 32K downloaded  (sakai-1.2.0.jar)
>>> [INFO] ------------------------------------------------------------------------
>>> [INFO] Building Sakai Master
>>> [INFO]    task-segment: [clean, install]
>>> [INFO] ------------------------------------------------------------------------
>>> [INFO] [clean:clean {execution: default-clean}]
>>> [INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
>>> [INFO] [install:install {execution: default-install}]
>>> [INFO] Installing /Users/admin/sakai-2.7.1/master/pom.xml to /Users/admin/.m2/repository/org/sakaiproject/master/2.7.1/master-2.7.1.pom
>>> [INFO] ------------------------------------------------------------------------
>>> [INFO] BUILD SUCCESSFUL
>>> [INFO] ------------------------------------------------------------------------
>>> [INFO] Total time: 4 seconds
>>> [INFO] Finished at: Thu Apr 14 12:10:06 EDT 2011
>>> [INFO] Final Memory: 21M/264M
>>> [INFO] ------------------------------------------------------------------------
>>> wsdsakai:master admin$ cd ..
>>> wsdsakai:sakai-2.7.1 admin$ cd ..
>>> wsdsakai:~ admin$ cd sakai-2.7.1/osp/portal/tool/targetwsdsakai:target admin$ mvn clean install sakai:deploy -Dmaven.tomcat.home=/Users/admin/tomcat/
>>> [INFO] Scanning for projects...
>>> [INFO] Searching repository for plugin with prefix: 'sakai'.
>>> [INFO] ------------------------------------------------------------------------
>>> [ERROR] BUILD ERROR
>>> [INFO] ------------------------------------------------------------------------
>>> [INFO] The plugin 'org.apache.maven.plugins:maven-sakai-plugin' does not exist or no valid version could be found
>>> [INFO] ------------------------------------------------------------------------
>>> [INFO] For more information, run Maven with the -e switch
>>> [INFO] ------------------------------------------------------------------------
>>> [INFO] Total time: < 1 second
>>> [INFO] Finished at: Thu Apr 14 12:10:50 EDT 2011
>>> [INFO] Final Memory: 3M/264M
>>> [INFO] ------------------------------------------------------------------------
>>> wsdsakai:target admin$ 
>>> 
>>> 
>>> Thanks,
>>> 
>>> Larry Dougher
>>> Technology Coordinator / ACSP 10.6 / ACMT
>>> Windsor Southeast Supervisory Union
>>> 
>>> 
>>> 
>>> On Thu, Apr 14, 2011 at 11:50 AM, Anthony Whyte <arwhyte at umich.edu> wrote:
>>> That's our own plugin that we wrote to properly map a Sakai deployment to Tomcat.  I can connect to our Maven2 repo without issue.  
>>> 
>>> To test, I removed .m2/repository/org/sakaiproject/maven folder and then did the following:
>>> 
>>> cd sakai-2.7.1/master
>>> mvn clean install  (log output below)
>>> 
>>> result: plugin is download and installed in .m2/repository/org/sakaiproject/maven
>>> 
>>> Are you experiencing any general connection problems?
>>> 
>>> Cheers,
>>> 
>>> Anth
>>> 
>>> ____________________________________________
>>> 
>>> 
>>> Luthuli:master arwhyte$ mvn clean install
>>> [INFO] Scanning for projects...
>>> Downloading: http://snapshots.repository.codehaus.org//org/sakaiproject/maven/plugins/sakai/1.2.0/sakai-1.2.0.pom
>>> [INFO] Unable to find resource 'org.sakaiproject.maven.plugins:sakai:pom:1.2.0' in repository codehaus snapshot repository (http://snapshots.repository.codehaus.org/)
>>> Downloading: http://source.sakaiproject.org/maven2/org/sakaiproject/maven/plugins/sakai/1.2.0/sakai-1.2.0.pom
>>> 2K downloaded  (sakai-1.2.0.pom)
>>> Downloading: http://snapshots.repository.codehaus.org//org/sakaiproject/maven/plugins/1.2.0/plugins-1.2.0.pom
>>> [INFO] Unable to find resource 'org.sakaiproject.maven:plugins:pom:1.2.0' in repository codehaus snapshot repository (http://snapshots.repository.codehaus.org/)
>>> Downloading: http://source.sakaiproject.org/maven2/org/sakaiproject/maven/plugins/1.2.0/plugins-1.2.0.pom
>>> 1K downloaded  (plugins-1.2.0.pom)
>>> Downloading: http://snapshots.repository.codehaus.org//org/sakaiproject/maven/plugins/sakai/1.2.0/sakai-1.2.0.jar
>>> [INFO] Unable to find resource 'org.sakaiproject.maven.plugins:sakai:maven-plugin:1.2.0' in repository codehaus snapshot repository (http://snapshots.repository.codehaus.org/)
>>> Downloading: http://source.sakaiproject.org/maven2/org/sakaiproject/maven/plugins/sakai/1.2.0/sakai-1.2.0.jar
>>> 32K downloaded  (sakai-1.2.0.jar)
>>> [INFO] ------------------------------------------------------------------------
>>> [INFO] Building Sakai Master
>>> [INFO]    task-segment: [clean, install]
>>> [INFO] ------------------------------------------------------------------------
>>> [INFO] [clean:clean {execution: default-clean}]
>>> [INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
>>> [INFO] [install:install {execution: default-install}]
>>> [INFO] Installing /Users/arwhyte/Development/svn/sakai/tags/2.7.1/master/pom.xml to /Users/arwhyte/.m2/repository/org/sakaiproject/master/2.7.1/master-2.7.1.pom
>>> [INFO] ------------------------------------------------------------------------
>>> [INFO] BUILD SUCCESSFUL
>>> [INFO] ------------------------------------------------------------------------
>>> [INFO] Total time: 33 seconds
>>> [INFO] Finished at: Thu Apr 14 11:44:55 EDT 2011
>>> [INFO] Final Memory: 14M/528M
>>> [INFO] ------------------------------------------------------------------------
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> On Apr 14, 2011, at 11:24 AM, Larry Dougher wrote:
>>> 
>>>> Hello all,
>>>> 
>>>> I'm trying to rebuild Sakai which I've done a few times with no major issues but now I'm at a standstill.  Here is the error
>>>> 
>>>> [ERROR] BUILD ERROR
>>>> [INFO] ------------------------------------------------------------------------
>>>> [INFO] The plugin 'org.apache.maven.plugins:maven-sakai-plugin' does not exist or no valid version could be found
>>>> 
>>>> I looked through the lists and I double-checked my pom.xml file and it indeed says 2.7.1 which is the version I'm using, everything looks fine.
>>>> 
>>>> Thanks,
>>>> 
>>>> Larry Dougher
>>>> Technology Coordinator / ACSP 10.6 / ACMT
>>>> Windsor Southeast Supervisory Union
>>>> 
>>>> _______________________________________________
>>>> production mailing list
>>>> production at collab.sakaiproject.org
>>>> http://collab.sakaiproject.org/mailman/listinfo/production
>>>> 
>>>> TO UNSUBSCRIBE: send email to production-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"
>>> 
>>> 
>> 
>> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/production/attachments/20110414/d7a91c64/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3829 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/production/attachments/20110414/d7a91c64/attachment-0001.bin 


More information about the production mailing list