Rahul wrote:

Hi,

Attached is a log that I have copied from the Eclipse workbench error view for the Maven SVN trunk projects that I attempted to import into Eclipse.

I am using 3.1M6 and I don't have this errors


Some notes on project import that might help to refine this plugin:
1) Eclipse (I am using 3.1 RC1) does not traverses all sub-folders when provided with a root directory to import projects from. It stops traversing the sub-folders when it encounters first project definition (.project) in a parent folder. I have posted a related message on Eclipse newsgroup as well to explain this. http://www.eclipse.org/newsportal/article.php?id=40947&group=eclipse.platform#40947

A useful resource to refer to might be the following Eclipse plugin that traverses all the folders:
http://eclipse-tools.sourceforge.net/projecttransfer/download.html

I think it's a bad idea to have eclipse projects under another one. If you create sub-projects into sub-folders only for pom project, we will not have problems because eclipse plugin generate files only for java projetcs and not for pom projects. It's what we have for m2 project.


2) Eclipse project definitions are generated for projects with a pom.xml whether or not these respect rules for nested projects. I think these should only be generated for projects with Java sources (and not exclude any java templates) or directory structure restructured where we might run into situations resulting in nested projects or uncompilable projects.

The actual svn version of eclipse plugin generate .project and .classpath files only for project with a packaging tag != pom


3) Classpath variables(M2_REPO) are missing when the eclipse:eclipse build is run. A.t.m I am not sure (too sleepy to think!) how we could set up these variable (may be generate preferences) achieved, but in case not, it might be best to resolve the local repository and refer it using absolute path.

You need to add this :

org.eclipse.jdt.core.classpathVariable.M2_REPO=E\:/maven/repository

in workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.core.prefs

I think we must do a mojo for add this line in this file


Having said that, the plugin is a nice one to have and I am sure will serve a better purpose if we can hone it further. As ever - happy to provide inputs or contribute in any way I can (I can see myself working on something similar in a few weeks down the line ;-) in any case!)

Look forward to thoughts/ideas/suggestions...

Cheers,
Rahul


------------------------------------------------------------------------

Severity        Description     Resource        In Folder       Location        
Creation Time
2       The declared package does not match the expected package 
archetype-resources.src.main.java      CopyFileTag.java        
maven-archetype-marmalade-mojo/src/main/resources/archetype-resources/src/main/java
     line 1  11 June 2005 01:57:08
2       The import org.codehaus cannot be resolved      CopyFileTag.java        
maven-archetype-marmalade-mojo/src/main/resources/archetype-resources/src/main/java
     line 19 11 June 2005 01:57:08
2       The import org.codehaus cannot be resolved      CopyFileTag.java        
maven-archetype-marmalade-mojo/src/main/resources/archetype-resources/src/main/java
     line 20 11 June 2005 01:57:08
2       The import org.codehaus cannot be resolved      CopyFileTag.java        
maven-archetype-marmalade-mojo/src/main/resources/archetype-resources/src/main/java
     line 21 11 June 2005 01:57:08
2       AbstractMarmaladeTag cannot be resolved to a type       
CopyFileTag.java        
maven-archetype-marmalade-mojo/src/main/resources/archetype-resources/src/main/java
     line 27 11 June 2005 01:57:08
2       MarmaladeExecutionContext cannot be resolved to a type  
CopyFileTag.java        
maven-archetype-marmalade-mojo/src/main/resources/archetype-resources/src/main/java
     line 30 11 June 2005 01:57:08
2       MarmaladeExecutionException cannot be resolved to a type        
CopyFileTag.java        
maven-archetype-marmalade-mojo/src/main/resources/archetype-resources/src/main/java
     line 31 11 June 2005 01:57:08
2       The declared package does not match the expected package 
archetype-resources.src.main.java      MyMojoTagLibrary.java   
maven-archetype-marmalade-mojo/src/main/resources/archetype-resources/src/main/java
     line 1  11 June 2005 01:57:08
2       The import org.codehaus cannot be resolved      MyMojoTagLibrary.java   
maven-archetype-marmalade-mojo/src/main/resources/archetype-resources/src/main/java
     line 19 11 June 2005 01:57:08
2       AbstractMarmaladeTagLibrary cannot be resolved to a type        
MyMojoTagLibrary.java   
maven-archetype-marmalade-mojo/src/main/resources/archetype-resources/src/main/java
     line 25 11 June 2005 01:57:08
2       The method registerTag(String, Class) is undefined for the type 
MyMojoTagLibrary        MyMojoTagLibrary.java   
maven-archetype-marmalade-mojo/src/main/resources/archetype-resources/src/main/java
     line 30 11 June 2005 01:57:08
2       The declared package does not match the expected package 
archetype-resources.src.main.java      MyMojo.java     
maven-archetype-mojo/src/main/resources/archetype-resources/src/main/java       
line 1  11 June 2005 01:57:10
2       The import org.apache cannot be resolved        MyMojo.java     
maven-archetype-mojo/src/main/resources/archetype-resources/src/main/java       
line 19 11 June 2005 01:57:10
2       The import org.apache cannot be resolved        MyMojo.java     
maven-archetype-mojo/src/main/resources/archetype-resources/src/main/java       
line 20 11 June 2005 01:57:10
2       AbstractMojo cannot be resolved to a type       MyMojo.java     
maven-archetype-mojo/src/main/resources/archetype-resources/src/main/java       
line 34 11 June 2005 01:57:10
2       MojoExecutionException cannot be resolved to a type     MyMojo.java     
maven-archetype-mojo/src/main/resources/archetype-resources/src/main/java       
line 44 11 June 2005 01:57:10
2       MojoExecutionException cannot be resolved to a type     MyMojo.java     
maven-archetype-mojo/src/main/resources/archetype-resources/src/main/java       
line 64 11 June 2005 01:57:10
2       The declared package does not match the expected package 
archetype-resources.src.main.java      App.java        
maven-archetype-quickstart/src/main/resources/archetype-resources/src/main/java 
line 1  11 June 2005 01:57:12
2       The declared package does not match the expected package 
archetype-resources.src.test.java      AppTest.java    
maven-archetype-quickstart/src/main/resources/archetype-resources/src/test/java 
line 1  11 June 2005 01:57:12
2       ReflectionValueExtractor cannot be resolved     Pom.java        
maven-artifact-ant/src/main/java/org/apache/maven/artifact/ant  line 326        
11 June 2005 01:57:30
2       The declared package does not match the expected package source 
JavaExtractorTestOne.java       
maven-plugin-tools-java/src/test/resources/source       line 1  11 June 2005 
01:58:45
2       The declared package does not match the expected package source 
JavaExtractorTestTwo.java       
maven-plugin-tools-java/src/test/resources/source       line 1  11 June 2005 
01:58:45



------------------------------------------------------------------------

---------------------------------------------------------------------
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]

Reply via email to