Page 11 of 17

Re: does dmca push us further toward distributed rev control

PostPosted: 23 Jul 2011, 14:47
by slapshot5
Chris H. wrote:I think that you are right. Have you installed the Maven stuff by other means?
I just pointed Eclipse to http://download.eclipse.org/technology/m2e/releases/

No problems.

BTW: have you updated to Lion yet or are you waiting? :D
I've been so swamped with work and a theater production, I haven't much thought much about it. I did start reading the review over at arstechnica.com. (http://arstechnica.com/apple/reviews/2011/07/mac-os-x-10-7.ars/)

You?

Re: does dmca push us further toward distributed rev control

PostPosted: 23 Jul 2011, 16:21
by Chris H.
slapshot5 wrote:You?
`
Yes, but after a couple of hours I reverted back to Snow Leopard for the time being.

Lion does not come with java. You can download an installer from Apple or launch Forge and Software Update will download and install it for you.

When I launched Eclipse I got an error that I could not resolve. I had an ancient version of Eclipse with workspace prefs hacked to look like Eclipse was using and was building jars that were java 5 compatible. Snow Leopard only comes with java 6 and the earlier java versions are alias' to java 6.

I will try again this upcoming week. I wanted to get Eclipse updated and get set up for Git. I have a 2 TB HD coming in to act as a new Time Machine. I will also update my iMac to 6 GB of memory at this time.

Re: does dmca push us further toward distributed rev control

PostPosted: 23 Jul 2011, 16:59
by jeffwadsworth
:)

Re: does dmca push us further toward distributed rev control

PostPosted: 23 Jul 2011, 17:22
by Jaedayr
Popup window when opening Eclipse
Code: Select all
The Maven Integration requires that Eclipse be running in a JDK, bacause a number of Maven core plugins are using jars from the JDK.

Please make sure the -vm option in eclipse.ini is pointing to a JDK and verify that installed JREs are also using JDK installs.
Maven console within eclipse.
Code: Select all
7/23/11 1:13:21 PM EDT: Eclipse is running in a JRE, but a JDK is required
  Some Maven plugins may not work when importing projects or updating source folders.
7/23/11 1:13:29 PM EDT: Updating index central|http://repo1.maven.org/maven2
7/23/11 1:15:37 PM EDT: Updated index for central|http://repo1.maven.org/maven2
eclipse.ini
| Open
-startup
plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.2.R36x_v20101222
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx384m

Can anybody give me some guidance here please?

Re: does dmca push us further toward distributed rev control

PostPosted: 23 Jul 2011, 17:53
by Chris H.
I have noticed something strange about my commits. Committing brigs up a Commit Changes window. I changed the Author and Committer text boxes from accountname to loginname. This edit will still be there on the next launch.

I changed the <accountname@###.###.#.##> to the email address that I use for gitorious. When I restart Eclipse this edit reverts and is only temporary.

Does anyone have any ideas?

Re: does dmca push us further toward distributed rev control

PostPosted: 23 Jul 2011, 18:54
by Braids
Chris H. wrote:I see that several people have a Personal clone. I followed Braids instructions for Clone the Git Repository. What is this Personal clone and what is it for and how is it used?
i think they created personal server side clones, whereas the Guide uses local clones. am i right?

Re: does dmca push us further toward distributed rev control

PostPosted: 23 Jul 2011, 18:58
by Snacko
Any git repository = clone if it's not the original (but clone == original in content). Those at gitorious are personal server side clones which everyone can see and clone from. If you just clone locally then others would need to access your computer to clone from.

Re: does dmca push us further toward distributed rev control

PostPosted: 23 Jul 2011, 19:14
by Braids
Jaedayr wrote:Popup window when opening Eclipse
Code: Select all
The Maven Integration requires that Eclipse be running in a JDK, bacause a number of Maven core plugins are using jars from the JDK.
. . .
you need to install java 6 for your mac that includes the javac program. yes, with a c at the end. this is probably described as some sort of java 6 developer package. you might be able to find something from http://developer.apple.com/technologies/mac/features.html. it's actually quite hard to find.

unfortunately, you can't download the jdk from oracle like other OS users. this is the first time i've heard anything about Mac OS X+ that i completely despise. it's a pity they treat you like children. i'm surprised they give you shell access.

Re: does dmca push us further toward distributed rev control

PostPosted: 23 Jul 2011, 19:18
by Braids
Chris H. wrote:I have noticed something strange about my commits. Committing brigs up a Commit Changes window. I changed the Author and Committer text boxes from accountname to loginname. This edit will still be there on the next launch.

I changed the <accountname@###.###.#.##> to the email address that I use for gitorious. When I restart Eclipse this edit reverts and is only temporary.

Does anyone have any ideas?
try using a text editor to edit the hidden file .gitconfig in your home directory. change the name and email fields to the ones you use for gitorious.

if this works for you, would you mind editing the guide?

Re: does dmca push us further toward distributed rev control

PostPosted: 23 Jul 2011, 19:21
by Braids
Snacko wrote:Any git repository = clone if it's not the original (but clone == original in content). Those at gitorious are personal server side clones which everyone can see and clone from. If you just clone locally then others would need to access your computer to clone from.
so, a server side clone is like a public personal branch?

do people who create server side clones also have to clone locally to use EGit?

Re: does dmca push us further toward distributed rev control

PostPosted: 23 Jul 2011, 19:40
by Snacko
Braids wrote:
Snacko wrote:Any git repository = clone if it's not the original (but clone == original in content). Those at gitorious are personal server side clones which everyone can see and clone from. If you just clone locally then others would need to access your computer to clone from.
so, a server side clone is like a public personal branch?

do people who create server side clones also have to clone locally to use EGit?
You can have an infinite number of branches in your server side clone. It's more like a whole copy of svn repository along with your changes / branches.
In git you can have any number of remote repositories that you want to pull from /push to.
In Egit terms:
In Window>Show view>Git repository
Now find Remotes node and expand it.
You should see one subnode 'origin', which is the default name for a remote reposiotory.
To add a new remote just right click on Remotes node and select Create Remote.
Now configure the address for your remote gitorious clone. You can define which if any tags / branches you want to push or map to.
Now you should see a new subnode under Remotes. You can fetch / push to your other repository now.
You can add as many remote repositories as you need to.

You can configure the pushes for example that you only push some branches to your private repo and only master to the main repo. If you have questions how to set this up I can write this too.
As a quick disclaimer, you need to push changes from main repository to your private, because it wont update automagically.

do people who create server side clones also have to clone locally to use EGit?
Yes (if you mean clone main repo), because the server side clone is a bare repository just like the main repo. Also as noted before you have to update your clone yourself. Data in the private clone stays at the revision you cloned at.

Also if you ever use rebase feature of git don't publish the branch you rebase to general public. This leads to anyone who clones your repo will have a corrupted git index which can't be easily fixed. The standard procedure is to reclone your whole repo.

Re: does dmca push us further toward distributed rev control

PostPosted: 23 Jul 2011, 20:11
by jeffwadsworth
To the HowTo contributors. You may want to include a section on actually building Forge using this Maven deal...

Re: does dmca push us further toward distributed rev control

PostPosted: 23 Jul 2011, 20:12
by Jaedayr
you need to install java 6 for your mac that includes the javac program. yes, with a c at the end. this is probably described as some sort of java 6 developer package. you might be able to find something from http://developer.apple.com/technologies/mac/features.html. it's actually quite hard to find.
I am running WinXP. I just downloaded and installed JDK 1.6 u26 but it doesn't seem to make any difference in the errors.

Re: does dmca push us further toward distributed rev control

PostPosted: 23 Jul 2011, 20:44
by Braids
Jaedayr wrote:
Braids wrote:you need to install java 6 for your mac that includes the javac program. yes, with a c at the end. this is probably described as some sort of java 6 developer package. you might be able to find something from http://developer.apple.com/technologies/mac/features.html. it's actually quite hard to find.
I am running WinXP. I just downloaded and installed JDK 1.6 u26 but it doesn't seem to make any difference in the errors.
oh, my mistake. have you tried Window menu, Preferences item, Java category, Installed JREs category, and pressing the Search button?

if that' doesn't work, i suggest closing eclipse, uninstalling all of your jdks and jres (in that order), reboot, install the latest jdk 6, reboot, then see if that helps.

Re: does dmca push us further toward distributed rev control

PostPosted: 23 Jul 2011, 21:25
by Chris H.
Ah, a Personal clone is like Braids trunk build on the SVN except that the Personal clone is located on your own computer at not at the server farm at google.