| Author |
Message |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 16/02/2011 15:07:29
|
bogeblad
Admin
Joined: 02/11/2009 11:10:04
Messages: 77
Offline
|
Good someone can give input to Astik's great work - I'm kinda lost when it comes to Maven details. And as you say - let's just keep the discussions civil - no flamewars on this forum (goto: linux kernel for that) .
Regards
Mattias Bogeblad
|
Regards
Mattias Bogeblad, Lead architect Infoglue |
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 16/02/2011 15:07:30
|
astik
Expert
Joined: 11/11/2009 11:41:32
Messages: 98
Location: France
Offline
|
uibcti wrote:
And why use move instead of copy? Wouldn't it be better to simply copy and not having to download the whole 64MB of zip file everytime Mattias commits something and you want to try it out? It would also allow one to use a custom branch as base source instead of the zipball without breaking one's project.
Move has been used for a simple reason : code coupling. It was the simpliest way to see quickly what code can be externalized. I create the modules by moving all the files that can be externalized and then I move the remaining files into infoglue-cms.
The goal for all of this is not to lay asside the infoglue project, it's to reshape the source structure. But it's a long way road, so I can't ask Mattias to freeze the project while I'm doing it, especially while working on the release of 3.0. So I decided to prepare the migration by defining a folder structure and having the ant task to test my structure. When 3.0 will be released and the maven structure finished, we'll switch to maven (in fact, i'll hope we'll do =D) and no more ant. We'll code directly into the maven module.
uibcti wrote:
Again, not challenging but just wondering  (sometimes forum written messages do not carry the tone of the dialog completely  )
No offense taken, you are right questioning my approach, open source is a great thing for that =)
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 17/02/2011 14:57:55
|
uibcti
User
![[Avatar]](/forum/images/avatar/c20ad4d76fe97759aa27a0c99bff6710.jpg)
Joined: 11/11/2009 09:35:02
Messages: 26
Location: Universitat de les Illes Balears - Mallorca - Spain
Offline
|
I see it can be useful to detect easily were you can put things and such. We'll hopefully it won't take long to migrate so the download-unzip-move process shouldn't have to be done many times .
Ok, now I followed the instructions and I might be doing something wrong because I'm running into problems.
Steps:
.- I download the zipball and unpack it as instructed
.- I execute the Ant script which copies the source from InfoGlue into the "target/infoglue-root" directory of the project.
.- I go to target/infoglue-root(velocity|propertyset|milton-api) directories and execute mvn install
.- I then go to "target/infoglue-root" and execute "mvn package" and it breaks at the infoglue-cms module due to dependencies to quartz, milton-api, milton-servlet, pluto-descriptors, pluto-deploy, cas-client, saxon, imgscalr-lib, netscape.javascript*.
I add them all (* as a system dependency right now) but I'm still getting a compile problem with com.bradmcevoy.http.ResourceFactoryFactory which should be solved as I included milton-servlet but...
I'll keep on investigating tomorrow, but just in case I'm doing something really wrong...
S!
This message was edited 1 time. Last update was at 17/02/2011 14:58:24
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 17/02/2011 16:53:51
|
astik
Expert
Joined: 11/11/2009 11:41:32
Messages: 98
Location: France
Offline
|
The fact that you have netscape.javascript and problem with ResourceFactoryFactory means you have a very old version of the process.
Update your git copy (or grap a zip archive : https://github.com/astik/infoglue-maven/zipball/master).
When you update your git copy, be sure to be on the right branch =P
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 18/02/2011 09:27:31
|
uibcti
User
![[Avatar]](/forum/images/avatar/c20ad4d76fe97759aa27a0c99bff6710.jpg)
Joined: 11/11/2009 09:35:02
Messages: 26
Location: Universitat de les Illes Balears - Mallorca - Spain
Offline
|
I tried with the latest zipball and the build broke at module infoglue-cms-util-webdav:
S!
Edit: As far as I can see, there's only one branch (master) in your Git repo, right?
This message was edited 1 time. Last update was at 18/02/2011 09:28:56
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 18/02/2011 10:10:27
|
astik
Expert
Joined: 11/11/2009 11:41:32
Messages: 98
Location: France
Offline
|
ResourceFactoryFactory is in milton-servlet :
You can see the dependencyManagement here https://github.com/astik/infoglue-maven/blob/master/infoglue-root/pom.xml and the dependency used here https://github.com/astik/infoglue-maven/blob/master/infoglue-root/infoglue-cms-util-webdav/pom.xml.
If not, you don't have the latest.
Indeed, only one branch on my side =)
This message was edited 1 time. Last update was at 18/02/2011 10:10:42
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 21/02/2011 12:55:52
|
uibcti
User
![[Avatar]](/forum/images/avatar/c20ad4d76fe97759aa27a0c99bff6710.jpg)
Joined: 11/11/2009 09:35:02
Messages: 26
Location: Universitat de les Illes Balears - Mallorca - Spain
Offline
|
I have those pieces in my pon, yes, I verified, but for some reason it seems to be ignoring the dependency and throwing an error .
Could it be related to the mime-util-1.3.1 artifact that cannot be found?
S!
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 21/02/2011 13:12:23
|
uibcti
User
![[Avatar]](/forum/images/avatar/c20ad4d76fe97759aa27a0c99bff6710.jpg)
Joined: 11/11/2009 09:35:02
Messages: 26
Location: Universitat de les Illes Balears - Mallorca - Spain
Offline
|
I'm debugging Maven execution and for some unknown reason, yet, milton-servlet is not being added to the classpath when compiling, even though it is listed in the dependencies list.
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 21/02/2011 13:19:15
|
uibcti
User
![[Avatar]](/forum/images/avatar/c20ad4d76fe97759aa27a0c99bff6710.jpg)
Joined: 11/11/2009 09:35:02
Messages: 26
Location: Universitat de les Illes Balears - Mallorca - Spain
Offline
|
Ummm, checking, checking, it seems that the milton-servlet artifact has not been downloaded and Mr. Google tells me that: http://www.mvnbrowser.com/artifact-details.html?groupId=com.ettrema&artifactId=milton-servlet&version=&tab=REPOSITORIES
This artifact is not available in any of the public Maven repositories that we know of.
Possibly this artifact is not publicly available and needs to be installed manually in your local maven repository. See our Maven guide for more details.
Could it be that you installed this artifact manually in your local repository? Or did you find a public repository where that can be downloaded?
S!
Edit: I see that the custom repository for this jar is there, but it is just downloading the .pom for me, not the .jar file.
This message was edited 2 times. Last update was at 21/02/2011 13:30:45
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 21/02/2011 13:28:04
|
astik
Expert
Joined: 11/11/2009 11:41:32
Messages: 98
Location: France
Offline
|
uibcti wrote:Could it be that you installed this artifact manually in your local repository? Or did you find a public repository where that can be downloaded?
Nope,
it's available on its own repository :
http://www.ettrema.com/maven2/com/ettrema/milton-servlet/1.5.4/milton-servlet-1.5.4.pom
http://www.ettrema.com/maven2/com/ettrema/milton-servlet/1.5.4/milton-servlet-1.5.4.jar
I sometimes purge my maven repository folder to guaranty that my pom configuration is correct.
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 21/02/2011 13:49:07
|
uibcti
User
![[Avatar]](/forum/images/avatar/c20ad4d76fe97759aa27a0c99bff6710.jpg)
Joined: 11/11/2009 09:35:02
Messages: 26
Location: Universitat de les Illes Balears - Mallorca - Spain
Offline
|
I just had a poltergeist
I changed the version number to 1.5.6, it downloaded the .jar and worked. I changed it back to 1.5.4, it downloaded the .jar and now it worked!
I issue a mvn clean, remove the milton-servlet folder from the maven local repository, issue another mvn package and it fails again...
There's something fishy going on
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 21/02/2011 13:59:16
|
uibcti
User
![[Avatar]](/forum/images/avatar/c20ad4d76fe97759aa27a0c99bff6710.jpg)
Joined: 11/11/2009 09:35:02
Messages: 26
Location: Universitat de les Illes Balears - Mallorca - Spain
Offline
|
Ok, I think I found it. The issue seems to be in the main POM where the dependency is declared like this:
With those settings, just the .pom file is downloaded and the compilation fails. OTOH, if I remove the scope and leave it like:
The .jar is downloaded and the compilation succeeds.
Can you think of anything that might make it break in my system and not in yours because of that line?
S!
This message was edited 1 time. Last update was at 21/02/2011 13:59:38
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 27/02/2011 14:13:15
|
astik
Expert
Joined: 11/11/2009 11:41:32
Messages: 98
Location: France
Offline
|
Argh, I missed you answer.
I just reproduced the problem in my system.
The fact that I have Eclipse (with m2eclipse) running mixed my dependencies ... eclipse doesn't take car of scope the way it should =/
milton-servlet shouldn't be in runtime scope as some Infoglue classes inherit from it. You were right removing the scope, that way it gets back to the default one : compile.
I'll push the modification ASAP.
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 03/03/2011 08:40:17
|
uibcti
User
![[Avatar]](/forum/images/avatar/c20ad4d76fe97759aa27a0c99bff6710.jpg)
Joined: 11/11/2009 09:35:02
Messages: 26
Location: Universitat de les Illes Balears - Mallorca - Spain
Offline
|
Yeah, M2Eclipse has played funky with me some times. In this case I was using simply the console as I was just trying to build it, so it was pure luck .
Ummm, I pulled the latest changes from GIT and now it complains that I have to use Maven 3 due to "org.apache.maven.plugins:maven-site-plugin". Is that intentional?
S!
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 03/03/2011 09:58:39
|
astik
Expert
Joined: 11/11/2009 11:41:32
Messages: 98
Location: France
Offline
|
uibcti wrote:t complains that I have to use Maven 3 due to "org.apache.maven.plugins:maven-site-plugin". Is that intentional?
Yes it is, as many of Infoglue users may seems to start with maven and as maven3 is compatible with maven2, I though it won't be big troubles to use maven3.
So that, "mvn versions:display-plugin-updates" won't warn of any warning.
And most of all, maven3 is way way faster than maven2 (it can resume a failed multi module build, which is in our case, pretty handy =)
|
|
|
 |
|
|