Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Compile code in SVN remote repository(SVN remote repository build)
icon4.gif  Compile code in SVN remote repository [message #1733962] Thu, 02 June 2016 13:28 Go to next message
Sam Lee is currently offline Sam LeeFriend
Messages: 4
Registered: June 2016
Junior Member
I am using Eclipse Juno with SVN and Maven. I have my individual workspace and able to build my project there. I have made some changes in my local and committed those changes to the Remote repository. When I view through the SVN repository exploring perspective I see that my source code is reflected in the SVN but my local Bin folder is different from the SVN Bin folder. How do I commit my Bin folder to the SVN repository or build the SVN repository ?

Re: Compile code in SVN remote repository [message #1733971 is a reply to message #1733962] Thu, 02 June 2016 14:28 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 06/02/2016 08:19 AM, Sam Lee wrote:
> I am using Eclipse Juno with SVN and Maven. I have my individual
> workspace and able to build my project there. I have made some changes
> in my local and committed those changes to the Remote repository. When I
> view through the SVN repository exploring perspective I see that my
> source code is reflected in the SVN but my local Bin folder is different
> from the SVN Bin folder. How do I commit my Bin folder to the SVN
> repository or build the SVN repository ?

Why are you keeping bin in version control? Its artifacts are
reproducible (precisely by doing a build). Unless there's a very good
reason for this, it's wasteful to keep binaries under version control.
Neither svn nor git are especially good at "versioning" binaries: they
basically remain full copies, I think.

Add the following line to your .svnignore file:

bin/
Re: Compile code in SVN remote repository [message #1733973 is a reply to message #1733971] Thu, 02 June 2016 14:33 Go to previous messageGo to next message
Sam Lee is currently offline Sam LeeFriend
Messages: 4
Registered: June 2016
Junior Member
Thanks for the suggestion. I will add the Bin folder to Ignore.
how do I build/compile the SVN repository code? I am compiling my local copy using the Build Project option in Eclipse IDE.
Re: Compile code in SVN remote repository [message #1733976 is a reply to message #1733973] Thu, 02 June 2016 14:47 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 06/02/2016 08:33 AM, Sam Lee wrote:
> Thanks for the suggestion. I will add the Bin folder to Ignore.
> how do I build/compile the SVN repository code? I am compiling my local
> copy using the Build Project option in Eclipse IDE.

I confess I don't have enough information on your project.

I'm assuming you...

1. cloned the svn project into your filesystem
2. set up a workspace telling Eclipse where that project is (rather than
putting it in your workspace)
3. are building it in Eclipse

Are you asking about a command-line build action or one invoked from
inside Eclipse? Do you have a build script? Ant? Maven? Etc.


P.S. You might also do this to get rid of the excess baggage in svn:

$ svn rm bin
Re: Compile code in SVN remote repository [message #1733980 is a reply to message #1733976] Thu, 02 June 2016 15:12 Go to previous messageGo to next message
Sam Lee is currently offline Sam LeeFriend
Messages: 4
Registered: June 2016
Junior Member
either option is fine. i have installed Maven and have the pom.xml configured. is that the build script?
I am a newbie and have set up the eclipse, svn and maven through some tutorial & help on various forums.
Re: Compile code in SVN remote repository [message #1733982 is a reply to message #1733980] Thu, 02 June 2016 15:22 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 06/02/2016 09:12 AM, Sam Lee wrote:
> either option is fine. i have installed Maven and have the pom.xml
> configured. is that the build script?
> I am a newbie and have set up the eclipse, svn and maven through some
> tutorial & help on various forums.

Maven is probably the best way to do it for many reasons.
Re: Compile code in SVN remote repository [message #1733984 is a reply to message #1733982] Thu, 02 June 2016 15:30 Go to previous messageGo to next message
Sam Lee is currently offline Sam LeeFriend
Messages: 4
Registered: June 2016
Junior Member
how do i perform the build using Maven? Do I run the Pom.xml file inside Eclipse?
Re: Compile code in SVN remote repository [message #1733987 is a reply to message #1733984] Thu, 02 June 2016 16:14 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 06/02/2016 09:30 AM, Sam Lee wrote:
> how do i perform the build using Maven? Do I run the Pom.xml file inside
> Eclipse?

You can, but I don't know how. I happen to be a UNIX/Linux command-line
guy and I always do it outside:

$ mvn clean compile test package install etc.

There is an Eclipse m2 forum for Maven I think. Good to ask there too.
Previous Topic:Re: Emulate MySql data base in Eclipse PHP Project
Next Topic:Eclipse Java 4.5 Mars .2: Create a Java Project Wizard GUI Hung -- how to remove GUI from desktop?
Goto Forum:
  


Current Time: Fri Apr 19 10:23:18 GMT 2024

Powered by FUDForum. Page generated in 0.04580 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top