[mevenide-dev] [jira] Resolved: (MEVENIDE-578) Need to give directory for local repository in debugging output

"Milos Kleint (JIRA)" <jira-yCVjj/[email protected]> Fri, 23 May 2008 06:11:22 -0500 (CDT)
Newsgroups gmane.comp.jakarta.turbine.maven.mevenide.devel
Message-ID <21813603.1211541082259.JavaMail.haus-jira@codehaus01.managed.contegix.com>
     [ http://jira.codehaus.org/browse/MEVENIDE-578?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Milos Kleint resolved MEVENIDE-578.
-----------------------------------

    Resolution: Fixed

I think the problem could have been solved by upgrading to the latest 2.1-SNAPSHOT of maven embedder.
Please reopen if you experience the same problem in current 3.1.1 version of maven support.

> Need to give directory for local repository in debugging output
> ---------------------------------------------------------------
>
>                 Key: MEVENIDE-578
>                 URL: http://jira.codehaus.org/browse/MEVENIDE-578
>             Project: mevenide
>          Issue Type: Improvement
>          Components: mevenide2-netbeans
>    Affects Versions: NB_3.0
>         Environment: Ubuntu 7.1, JDK 1.5, NetBeans 6.0
>            Reporter: Glen Mazza
>            Assignee: Milos Kleint
>             Fix For: NB_3.1
>
>
> I'm having difficulty getting Mevenide on NB 6.0 to detect libraries already in my local repository (when I go to NetBeans preferences and choose my external Maven installation, the problem goes away.  However, for running and debugging in the IDE I believe I need to continue with mevenide's built-in Maven, so I don't think I have that option.)  If you can see from my output below, it says that it can read from the local repository (DictionaryServiceSample below for example), but further below halts on an error  claims it can't find that same library in the remote repository (which is indeed true, but they don't need to be in the remote repositories because they're already in the local ones.)
> Anyway, the above is not what I'm reporting on (but any suggestions would be most welcome).  The main issue here is for the [DEBUG] output (or perhaps even non-debug output) should output a line giving the local repository it is reading from.  When it says it can't find a file that I know is already in the local repository, I don't know if it has successfully detected the local repository or if it is reading from the wrong directory, so I can't figure out the source of the problem.
> Stated another way, if the error message:
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2),
>   maven2-repository.dev.java.net (http://download.java.net/maven/2/),
>   maven-repository.dev.java.net (http://download.java.net/maven/1/)
> Could be changed to:
> from either the local repository at:
>       ......
> or from the specified remote repositories:
>   central (http://repo1.maven.org/maven2),
>   maven2-repository.dev.java.net (http://download.java.net/maven/2/),
>   maven-repository.dev.java.net (http://download.java.net/maven/1/)
> That would be great.  Alternatively, some DEBUG line very early that says:
> [DEBUG]Reading Local Repository at  c:\mydir\m2\repository.
> Thanks,
> Glen
> Error message/problem I'm getting:
> [DEBUG]jaxws: using locally installed snapshot
> [DEBUG]Retrieving parent-POM: com.mycompany.webservice:DictionaryServiceSample::1.0-SNAPSHOT for project: null:jaxws:jar:1.0-SNAPSHOT from the repository.
> [DEBUG]Skipping disabled repository central
> [DEBUG]DictionaryServiceSample: using locally installed snapshot
> [DEBUG]Trying repository maven-repository.dev.java.net
> [DEBUG]Unable to get resource from repository maven-repository.dev.java.net (http://download.java.net/maven/1/)
> [DEBUG]Trying repository maven2-repository.dev.java.net
> [DEBUG]Unable to get resource from repository maven2-repository.dev.java.net (http://download.java.net/maven/2/)
> [DEBUG]Skipping disabled repository central
> ------------------------------------------------------------------------
> [ERROR]BUILD ERROR
> ------------------------------------------------------------------------
> Failed to resolve artifact.
> GroupId: com.mycompany.webservice
> ArtifactId: DictionaryServiceSample
> Version: 1.0-SNAPSHOT
> Reason: Unable to download the artifact from any repository
>   com.mycompany.webservice:DictionaryServiceSample:pom:1.0-SNAPSHOT
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2),
>   maven2-repository.dev.java.net (http://download.java.net/maven/2/),
>   maven-repository.dev.java.net (http://download.java.net/maven/1/)
> ------------------------------------------------------------------------
> [DEBUG]Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Unable to get dependency information: Unable to read the metadata file for artifact 'com.mycompany.webservice:jaxws:jar': Cannot find parent: com.mycompany.webservice:DictionaryServiceSample for project: null:jaxws:jar:1.0-SNAPSHOT
>   com.mycompany.webservice:jaxws:jar:1.0-SNAPSHOT
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2),
>   maven2-repository.dev.java.net (http://download.java.net/maven/2/),
>   maven-repository.dev.java.net (http://download.java.net/maven/1/)
> Path to dependency: 
>         1) com.mycompany.webservice:client:jar:1.0-SNAPSHO

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email