You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jesse Glick (JIRA)" <ji...@codehaus.org> on 2010/08/20 21:01:32 UTC
[jira] Created: (MNG-4773) Stack trace printed from
MavenProject.getParent
Stack trace printed from MavenProject.getParent
-----------------------------------------------
Key: MNG-4773
URL: http://jira.codehaus.org/browse/MNG-4773
Project: Maven 2 & 3
Issue Type: Bug
Components: Embedding
Affects Versions: 3.0-beta-2
Environment: http://svn.apache.org/repos/asf/maven/maven-3/tags/maven-3.0-beta-2/maven-core/src/main/java/org/apache/maven/project/MavenProject.java
Reporter: Jesse Glick
Priority: Minor
When M3 is embedded inside NetBeans, and a project is missing a local copy of its parent POM, an unwanted stack trace is printed to console:
{code}
org.apache.maven.project.ProjectBuildingException: Error resolving project artifact: The repository system is offline and the requested artifact is not locally available at ...
org.glassfish:glassfish-parent:pom:3.1-SNAPSHOT
from the specified remote repositories:
central (http://repo1.maven.org/maven2, releases=true, snapshots=false)
for project org.glassfish:glassfish-parent:pom:3.1-SNAPSHOT
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:244)
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:209)
at org.apache.maven.project.MavenProject.getParent(MavenProject.java:356)
at <<NetBeans code...>>
Caused by: org.apache.maven.artifact.resolver.ArtifactResolutionException: The repository system is offline and the requested artifact is not locally available at ...
org.glassfish:glassfish-parent:pom:3.1-SNAPSHOT
from the specified remote repositories:
central (http://repo1.maven.org/maven2, releases=true, snapshots=false)
at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:291)
at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:540)
at org.apache.maven.repository.legacy.LegacyRepositorySystem.resolve(LegacyRepositorySystem.java:340)
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:231)
... 14 more
{code}
Please do not print this stack trace, or send it to a proper logging component where it will be suppressed by default.
--
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
[jira] Closed: (MNG-4773) Stack trace printed from
MavenProject.getParent
Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-4773?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann closed MNG-4773.
----------------------------------
Resolution: Fixed
Fix Version/s: 3.0-beta-3
Assignee: Benjamin Bentmann
Fixed in [r987610|http://svn.apache.org/viewvc?view=revision&revision=987610].
> Stack trace printed from MavenProject.getParent
> -----------------------------------------------
>
> Key: MNG-4773
> URL: http://jira.codehaus.org/browse/MNG-4773
> Project: Maven 2 & 3
> Issue Type: Bug
> Components: Embedding
> Affects Versions: 3.0-beta-2
> Environment: http://svn.apache.org/repos/asf/maven/maven-3/tags/maven-3.0-beta-2/maven-core/src/main/java/org/apache/maven/project/MavenProject.java
> Reporter: Jesse Glick
> Assignee: Benjamin Bentmann
> Priority: Minor
> Fix For: 3.0-beta-3
>
>
> When M3 is embedded inside NetBeans, and a project is missing a local copy of its parent POM, an unwanted stack trace is printed to console:
> {code}
> org.apache.maven.project.ProjectBuildingException: Error resolving project artifact: The repository system is offline and the requested artifact is not locally available at ...
> org.glassfish:glassfish-parent:pom:3.1-SNAPSHOT
> from the specified remote repositories:
> central (http://repo1.maven.org/maven2, releases=true, snapshots=false)
> for project org.glassfish:glassfish-parent:pom:3.1-SNAPSHOT
> at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:244)
> at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:209)
> at org.apache.maven.project.MavenProject.getParent(MavenProject.java:356)
> at <<NetBeans code...>>
> Caused by: org.apache.maven.artifact.resolver.ArtifactResolutionException: The repository system is offline and the requested artifact is not locally available at ...
> org.glassfish:glassfish-parent:pom:3.1-SNAPSHOT
> from the specified remote repositories:
> central (http://repo1.maven.org/maven2, releases=true, snapshots=false)
> at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:291)
> at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:540)
> at org.apache.maven.repository.legacy.LegacyRepositorySystem.resolve(LegacyRepositorySystem.java:340)
> at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:231)
> ... 14 more
> {code}
> Please do not print this stack trace, or send it to a proper logging component where it will be suppressed by default.
--
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