Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[paho-dev] Java Client Builds for Paho 1.1

Hello all,

for the first part of this week I've been continuing to work on getting the Java builds for client release 1.0.2, which is part of Paho 1.1.

I have succeeded in getting 1.0.2 up into the Nexus repo, along with the 1.0.3 snapshots from the nightly builds.

The source jars are now being built too, and are uploaded into the repo for 1.0.3 onwards. Unfortunately I hadn't updated the job when I succeeded in uploading the 1.0.2 artifacts, so the source jar is not included for 1.0.2. I have tried building just the source jars and uploading them but haven't hit on the right combination of goals yet for the tycho-document-bundle-plugin to achieve that. Source archives will be available in the git repo once its tagged.

I haven't succeeded in getting Javadoc jars packaged and deployed. Using the maven-javadoc-plugin with the eclipse-jarsigner-plugin results in the following exception:

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-p2-plugin:0.20.0:p2-metadata (p2-metadata) on project org.eclipse.paho.client.mqttv3: Execution p2-metadata of goal org.eclipse.tycho:tycho-p2-plugin:0.20.0:p2-metadata failed. IllegalArgumentException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho:tycho-p2-plugin:0.20.0:p2-metadata (p2-metadata) on project org.eclipse.paho.client.mqttv3: Execution p2-metadata of goal org.eclipse.tycho:tycho-p2-plugin:0.20.0:p2-metadata failed.
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution p2-metadata of goal org.eclipse.tycho:tycho-p2-plugin:0.20.0:p2-metadata failed.
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
	... 19 more
Caused by: java.lang.IllegalArgumentException
	at org.eclipse.tycho.p2.impl.publisher.P2GeneratorImpl.getCanonicalArtifact(P2GeneratorImpl.java:156)
	at org.eclipse.tycho.p2.impl.publisher.P2GeneratorImpl.generateMetadata(P2GeneratorImpl.java:109)
	at org.eclipse.tycho.plugins.p2.P2MetadataMojo.attachP2Metadata(P2MetadataMojo.java:145)
	at org.eclipse.tycho.plugins.p2.P2MetadataMojo.execute(P2MetadataMojo.java:106)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
	... 20 more


Using the tycho-document-bundle-plugin in a simple configuration similar to the maven plugin results in no source files being found. My attempts to pass java options such as

-sourcepath src/main/java:src/main/java-templates org.eclipse.paho.client.mqttv3

to this plugin so far have not worked. Google searches to find solutions to this configuration problem have hinted at solutions but nothing really conclusive.

So the source packages will be produced and uploaded for 1.0.3 onwards. It would be nice to add them to 1.0.2. I could do that by asking for all 1.0.2 artifacts to be deleted from the repo and then deploying the whole lot, but it would be good to get a job that would deploy just the source. (1)

Javadoc jars are still not being produced (2)

Help with either or both 1) and 2) are welcome. Bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=442927 is the task for this work.

I do have to turn my attention to the embedded clients for now.

--
Ian Craggs
icraggs@xxxxxxxxxx                 IBM United Kingdom
Paho Project Lead; Committer on Mosquitto



Back to the top