Thanks alot!

I didn't know about the hidden .m2 directory so I better read the Maven docs
next time.



jmitchell wrote:
> 
> Everything you've described so far is the correct behavior.
> 
> If you want the sources for xwork, use Subversion:
>    $ svn co https://svn.opensymphony.com/svn/xwork/trunk xwork
> 
> You can then cd into xwork/ and do:
>    $ mvn install
> 
> Then you'll have the sources for a snapshot.
> 
> 
> The above is true for virtually any project that uses Maven.
> 
> 
> As far as the 'Unbound classpath variable' issue, you'll have to  
> configure that yourself, but once you do it, you won't have to do it  
> again for any other project in that workspace.  The variable  
> definitions are per workspace.  <- remember that!
> 
> 
> To configure a classpath variable, go to Window / Preferences.  The  
> drill down to Java / Build Path / Classpath Variables.
> Hit the New... button, and type M2_REPO in the Name field, then  
> select the Folder... button.
> Choose the folder on your hard drive that points to your Maven  
> repository.
> 
> For example:
> 
>    Windows
>     C:\Documents and settings\username\.m2\repository\
> 
>    Mac
>     /Users/username/.m2/repository/
> 
>    Linux
>     /home/username/.m2/repository/
> 
> 
> Hope that helps.
> 
> 
> 
> (You can also set M2_REPO using the project preferences / Libraries  
> and editing one of the variables.  Either way works fine)
> 
> --
> James Mitchell
> 
> 
> 
> On May 16, 2007, at 8:44 AM, Victor Neo wrote:
> 
>>
>> I am interested to take a look at the sources for Struts 2, so I  
>> checkout the
>> sources and ran "mvn eclipse:eclipse" inside the "core" folder  
>> inside Struts
>> 2's trunk.
>>
>>
>> The Eclipse project files were created fine, but I was unable to  
>> get some of
>> the files. Here is the message from Maven:
>>
>> Please run the same goal with the -DdownloadSources=true parameter  
>> in order
>> to check remote repositories for sources.
>>        List of artifacts without a source archive:
>>          o mockobjects:mockobjects-core:0.09
>>          o commons-io:commons-io:1.0
>>          o commons-logging:commons-logging:1.0.4
>>          o velocity:velocity-dep:1.4
>>          o mockobjects:mockobjects-jdk1.3:0.09
>>          o opensymphony:ognl:2.6.11
>>          o org.apache.pluto:pluto:1.0.1-rc4
>>          o junit:junit:3.8.1
>>          o jmock:jmock:1.0.1
>>          o mockobjects:mockobjects-jdk1.3-j2ee1.3:0.09
>>          o portlet-api:portlet-api:1.0
>>          o javax.servlet:servlet-api:2.4
>>          o commons-fileupload:commons-fileupload:1.1.1
>>          o velocity:velocity:1.4
>>          o mockobjects:mockobjects-alt-jdk1.3:0.09
>>          o org.springframework:spring-mock:1.2.8
>>          o org.apache.struts:struts-annotations:1.0-SNAPSHOT
>>          o commons-collections:commons-collections:3.1
>>          o freemarker:freemarker:2.3.8
>>          o velocity-tools:velocity-tools:1.1
>>          o log4j:log4j:1.2.9
>>          o cglib:cglib-full:2.0
>>          o mockobjects:mockobjects-alt-jdk1.3-j2ee1.3:0.09
>>          o org.easymock:easymock:2.0
>>          o javax.servlet:jsp-api:2.0
>>          o org.testng:testng:5.1
>>          o org.springframework:spring-core:1.2.8
>>          o jmock:jmock-cglib:1.0.1
>>          o commons-lang:commons-lang:2.1
>>          o uk.ltd.getahead:dwr:1.1-beta-3
>>
>>
>>
>> After using "mvn -DdownloadSources=true eclipse:eclipse", I got:
>>
>> Sources for some artifacts are not available.
>>        List of artifacts without a source archive:
>>          o opensymphony:xwork:2.1-SNAPSHOT
>>
>>
>>
>>
>>
>> Opening the project in Eclipse will give me errors regarding "Unbound
>> classpath variable: 'M2_REPO/cglib/cglib-full/2.0/cglib- 
>> full-2.0.jar' in
>> project struts2-core"
>>
>>
>>
>> Would appreciate if someone tells me what I am doing wrong.
>>
>> Victor Neo
>> -- 
>> View this message in context: http://www.nabble.com/Struts-2- 
>> Sources-as-a-project-in-Eclipse-tf3764374.html#a10641041
>> Sent from the Struts - Dev mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Struts-2-Sources-as-a-project-in-Eclipse-tf3764374.html#a10641542
Sent from the Struts - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to