MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
gldnrtvr
Post subject: Problem with M2_REPO in 6.6 GA  PostPosted: Dec 02, 2008 - 09:07 PM
Registered Member
Registered Member


Joined: Jan 03, 2008
Posts: 6

Our highly distributed team is using maven as the master build system
for a rather large project (15 java projects and climbing) with some dependencies that are not found in any internet-reachable maven2 repository.

To combat this, we have set the <LocalRepository> tag in the Maven2 settings.xml file set to a directory inside our subversion controled tree, and check in only those repository entries that are not available from the internet. This has been working up til the time I upgraded from 6.5 to 6.6 GA.

MyEclipse is no longer using my local repository, but is using the default %HOME%/.m2/repository. To add insult to injury, MyEclipse 6.6 does not allow the user to edit M2_REPO, so I can't fix the problem in the IDE.

How can I solve this problem? This has my development effort at a standstill.
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject: RE: Problem with M2_REPO in 6.6 GA  PostPosted: Dec 03, 2008 - 04:52 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

gldnrtvr,

I just spoke in depth to our product manager and unfortunately it looks like this behavior change was actually a *bug fix*. What you are doing now, accordingly the good book of Maven, is actually not a supported use-case. Your requirements are exactly what define the need to setup a corporate/internal repository for your team. Word from our Maven guru is that you are "never suppose to manually manipulate your local repository -- especially within SVN"... you'll have to excuse the adjectives, I'm not a Maven guru, but I do know that our product manager was clear that this is an unsupported use-case with Maven.

Sorry for the bad news, let us know if we can try and help further.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
gldnrtvr
Post subject: RE: Problem with M2_REPO in 6.6 GA  PostPosted: Dec 03, 2008 - 05:11 PM
Registered Member
Registered Member


Joined: Jan 03, 2008
Posts: 6

The problem is that our distributed members could not access a corporate repository without constantly being logged into our VPN. This cripples the distributed members becuase their local network printers and network storage arrays are NOT available when logged into the VPN. It's acceptable to have to VPN in to do Change Management, which is a once-a-day or so activity, but to do so for every build, especially during debugging?

The way we are "using" the repository should be irrelevant. MyEclipse is ignoring the settings.xml file in the maven configuration directory, which means that maven runs differently within MyEclipse than from the command line.

Is there ANY way to override this behavior or make it configurable? Our usage may not be correct according to maven chapter and verse, but the bottom line is that if MyEclipse ignores the settings.xml configuration file, I am going to have to come up with a completely new work-around strategy to solve the problem of dependencies without internet-accessable repositories, because a corporate repository is not a workable solution.
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject: RE: Problem with M2_REPO in 6.6 GA  PostPosted: Dec 03, 2008 - 07:50 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

We are going to give this a look in a few hours (trying to get 7.0 out the door right now so all hands are tied up at the moment). Thanks for being patient with us.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
bobflschmn
Post subject: RE: Problem with M2_REPO in 6.6 GA  PostPosted: Dec 08, 2008 - 10:43 PM



Joined: Oct 17, 2004
Posts: 7

I am having a similar problem. See this link http://www.nabble.com/run-mvn:full-source-,error-is-show-blow,how-to-do-it-td17331908s2369.html for why I moved from the default location to c:\M2_REPO.

It appears that ant 1.7 has a problem if there is a space in the directory name of the repository. Therefore I had to modify the settings.xml file to move the repository to a location without a space.
 
 View user's profile Send private message  
Reply with quote Back to top
bobflschmn
Post subject: RE: Problem with M2_REPO in 6.6 GA  PostPosted: Dec 16, 2008 - 06:32 PM



Joined: Oct 17, 2004
Posts: 7

I found an answer. Put a settings.xml file in your .m2/repository directory that points to your local repository.
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject: RE: Problem with M2_REPO in 6.6 GA  PostPosted: Dec 16, 2008 - 07:08 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

Bob thank you for posting your workaround for other users running into this same issue. I've tracked it for our Maven guys to have a look when they can.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits