dev@glassfish.java.net

[v3] Odd error messages after JUnit tests run from NetBeans succeed

From: Tim Quinn <Timothy.Quinn_at_Sun.COM>
Date: Mon, 16 Jun 2008 10:34:56 -0500

When I use "mvn install" from the command line, the JUnit tests in all
GlassFish modules I've tried run fine.

With the same modules opened in NetBeans 6.1, the JUnit tests run
correctly and report success. But the output tab lists an error similar
to the following one for every dependent module listed in the pom:

org.apache.maven.project.ProjectBuildingException: POM
'n.enterprise:hk2' not found in repository: Unable to download the
artifact from any repository

  n.enterprise:hk2:pom:0.3.2

It's missing the "com.su" beginning to the name.

Even more awkward and politically incorrect are the messages that refer
to GlassFish modules, like this one: (with the stack trace this time):

rg.apache.maven.project.ProjectBuildingException: POM
'assfish.admin:config-api' not found in repository: Unable to download
the artifact from any repository

  assfish.admin:config-api:pom:10.0-SNAPSHOT

with the "org.gl" missing.

It looks as if the first six characters of the groupId value are ignored!

Has anyone else seen this? Is this something that is specific to
NetBeans or the plug-in for NB, or is the same thing happening in the
command-line mvn install and the errors are hidden somewhere?

- Tim

P.S. Here's an example stack trace:



 for project assfish.admin:config-api
        at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:591)
        at
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:234)
        at
org.codehaus.mevenide.indexer.api.RepositoryUtil.readMavenProject(RepositoryUtil.java:126)
        at
org.codehaus.mevenide.indexer.NexusRepositoryIndexserImpl$NbIndexCreator.updateDocument(NexusRepositoryIndexserImpl.java:883)
        at
org.sonatype.nexus.index.creator.DefaultIndexerEngine.createDocument(DefaultIndexerEngine.java:107)
        at
org.sonatype.nexus.index.creator.DefaultIndexerEngine.update(DefaultIndexerEngine.java:70)
        at
org.sonatype.nexus.index.DefaultNexusIndexer.addArtifactToIndex(DefaultNexusIndexer.java:301)
        at
org.codehaus.mevenide.indexer.NexusRepositoryIndexserImpl$3.run(NexusRepositoryIndexserImpl.java:312)
        at org.openide.util.Mutex.writeAccess(Mutex.java:433)
        at
org.codehaus.mevenide.indexer.NexusRepositoryIndexserImpl.updateIndexWithArtifacts(NexusRepositoryIndexserImpl.java:282)
        at
org.codehaus.mevenide.indexer.api.RepositoryIndexer.updateIndexWithArtifacts(RepositoryIndexer.java:49)
        at
org.codehaus.mevenide.netbeans.ActionProviderImpl$1.taskFinished(ActionProviderImpl.java:179)
        at org.openide.util.Task.notifyFinished(Task.java:227)
        at
org.netbeans.core.execution.ExecutorTaskImpl.finished(ExecutorTaskImpl.java:86)
        at
org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:173)