This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 189940 - Creation of OSGi bundle project fails
Summary: Creation of OSGi bundle project fails
Status: RESOLVED DUPLICATE of bug 190033
Alias: None
Product: projects
Classification: Unclassified
Component: Maven OSGi bundles (show other bugs)
Version: 7.0
Hardware: PC Mac OS X
: P1 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-27 08:39 UTC by John Jullion-ceccarelli
Modified: 2010-09-20 22:47 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Jullion-ceccarelli 2010-08-27 08:39:50 UTC
Product Version: NetBeans IDE Dev (Build 201008260001)
Java: 1.6.0_20; Java HotSpot(TM) 64-Bit Server VM 16.3-b01-279
System: Mac OS X version 10.5.8 running on x86_64; MacRoman; en_US (nb)
Userdir: /Users/hal/temp

Created new Maven OSGi Bundle project

JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home /Users/hal/builds/netbeans/java/maven/bin/mvn -DarchetypeVersion=1.0-beta-3-SNAPSHOT -Darchetype.interactive=false -DgroupId=com.mycompany -DarchetypeArtifactId=osgi-archetype -DarchetypeRepository=http://snapshots.repository.codehaus.org/ -Dversion=1.0.0 -DarchetypeGroupId=org.codehaus.mojo.archetypes -Darchetype.repository=http://snapshots.repository.codehaus.org/ -Dbasedir=/Users/hal/NetBeansProjects/test -Dpackage=com.mycompany.testfelixproject -DartifactId=TestFelixProject -Dnetbeans.execution=true --batch-mode --update-snapshots org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate
Scanning for projects...
                                                                        
------------------------------------------------------------------------
Building Maven Stub Project (No POM) 1
------------------------------------------------------------------------

>>> maven-archetype-plugin:2.0-alpha-4:generate (default-cli) @ standalone-pom >>>

<<< maven-archetype-plugin:2.0-alpha-4:generate (default-cli) @ standalone-pom <<<

--- maven-archetype-plugin:2.0-alpha-4:generate (default-cli) @ standalone-pom ---
Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
Setting property: velocimacro.messages.on => 'false'.
Setting property: resource.loader => 'classpath'.
Setting property: resource.manager.logwhenfound => 'false'.
Generating project in Batch mode
Archetype defined by properties
snapshot org.codehaus.mojo.archetypes:osgi-archetype:1.0-beta-3-SNAPSHOT: checking for updates from osgi-archetype-repo
*** CHECKSUM FAILED - Checksum failed on download: local = '3e8bbaf423bdf9b9263c65e7a0a045da80217253'; remote = '<!DOCTYPE' - RETRYING
*** CHECKSUM FAILED - Checksum failed on download: local = '3e8bbaf423bdf9b9263c65e7a0a045da80217253'; remote = '<!DOCTYPE' - IGNORING
Cannot read metadata from '/Users/hal/.m2/repository/org/codehaus/mojo/archetypes/osgi-archetype/1.0-beta-3-SNAPSHOT/maven-metadata-osgi-archetype-repo.xml': end tag name </body> must match start tag name <hr> from line 7 (position: TEXT seen ...</address>\n</body>... @9:8) 
*** CHECKSUM FAILED - Checksum failed on download: local = 'f30378f6356606c60486ccd4f1cb6d66c84b8186'; remote = '<!DOCTYPE' - RETRYING
*** CHECKSUM FAILED - Checksum failed on download: local = 'f30378f6356606c60486ccd4f1cb6d66c84b8186'; remote = '<!DOCTYPE' - IGNORING
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 8.310s
Finished at: Fri Aug 27 10:36:31 CEST 2010
Final Memory: 6M/81M
------------------------------------------------------------------------
Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate (default-cli) on project standalone-pom: The defined artifact is not an archetype -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Comment 1 Tomas Danek 2010-08-27 13:59:13 UTC
hmm, it works for me fine in:

Product Version: NetBeans IDE Dev (Build 201008270001)
Java: 1.6.0_20; Java HotSpot(TM) 64-Bit Server VM 16.3-b01-279
System: Mac OS X version 10.6.4 running on x86_64; MacRoman; en_US (nb)
Userdir: /Users/Tomas/.netbeans/dev

embedder is 3.0 beta2. What does not work for me is running bundle in felix (issue 189600).
Comment 2 John Jullion-ceccarelli 2010-08-30 13:21:24 UTC
Tried with today's build and  it works again. Strange. I'll reopen if I  see it again.
Comment 3 Petr Jiricka 2010-08-30 13:39:56 UTC
Also works for me.
Comment 4 Jesse Glick 2010-09-16 20:13:48 UTC
remote = '<!DOCTYPE' probably means an overloaded server sending a 500 with an HTML error response code that Maven misinterprets.
Comment 5 BradCox 2010-09-19 18:11:03 UTC
(In reply to comment #4)
> remote = '<!DOCTYPE' probably means an overloaded server sending a 500 with an
> HTML error response code that Maven misinterprets.

That server has been "overloaded" for more than a month now. Could someone take a look? Thanks!

JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home /Applications/apache-maven-2.2.1/bin/mvn -DarchetypeVersion=1.0-beta-3-SNAPSHOT -Darchetype.interactive=false -DgroupId=pbac-pdp -DarchetypeArtifactId=osgi-archetype -DarchetypeRepository=http://snapshots.repository.codehaus.org/ -Dversion=1.0-SNAPSHOT -DarchetypeGroupId=org.codehaus.mojo.archetypes -Darchetype.repository=http://snapshots.repository.codehaus.org/ -Dbasedir=/Users/Brad/Dropbox/work-technica-new/Technica-PBAC-PDP/MySynapseExperiments -Dpackage=pbacpdp.mavenproject1 -DartifactId=mavenproject1 -Dnetbeans.execution=true --batch-mode --update-snapshots org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate
Scanning for projects...
Reactor build order: 
  MySynapseExperiments (MSE) POM
  MSE-ClassMediator
  MSE-ClassMediator Bundle
  MSE-org.wso2.carbon.helloworld
  MSE-axis2m-trial
------------------------------------------------------------------------
Building MySynapseExperiments (MSE) POM
   task-segment: [org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate] (aggregator-style)
------------------------------------------------------------------------
Preparing archetype:generate
No goals needed for project - skipping
Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
Setting property: velocimacro.messages.on => 'false'.
Setting property: resource.loader => 'classpath'.
Setting property: resource.manager.logwhenfound => 'false'.
[archetype:generate]
Generating project in Batch mode
Archetype defined by properties
snapshot org.codehaus.mojo.archetypes:osgi-archetype:1.0-beta-3-SNAPSHOT: checking for updates from osgi-archetype-repo
*** CHECKSUM FAILED - Checksum failed on download: local = '3e8bbaf423bdf9b9263c65e7a0a045da80217253'; remote = '<!DOCTYPE' - RETRYING
*** CHECKSUM FAILED - Checksum failed on download: local = '3e8bbaf423bdf9b9263c65e7a0a045da80217253'; remote = '<!DOCTYPE' - IGNORING
snapshot org.codehaus.mojo.archetypes:osgi-archetype:1.0-beta-3-SNAPSHOT: checking for updates from java.net2
snapshot org.codehaus.mojo.archetypes:osgi-archetype:1.0-beta-3-SNAPSHOT: checking for updates from ibiblio
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
The desired archetype does not exist (org.codehaus.mojo.archetypes:osgi-archetype:1.0-beta-3-SNAPSHOT)
------------------------------------------------------------------------
For more information, run Maven with the -e switch
------------------------------------------------------------------------
Total time: 6 seconds
Finished at: Sun Sep 19 14:08:48 EDT 2010
Final Memory: 22M/81M
------------------------------------------------------------------------
Comment 6 Jesse Glick 2010-09-20 22:47:02 UTC

*** This bug has been marked as a duplicate of bug 190033 ***