Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signing of eclipse plugin bundles #79

Closed
nagavijays opened this issue Mar 14, 2016 · 5 comments
Closed

Signing of eclipse plugin bundles #79

nagavijays opened this issue Mar 14, 2016 · 5 comments

Comments

@nagavijays
Copy link

nagavijays commented Mar 14, 2016

Migrated from https://bugs.eclipse.org/bugs/show_bug.cgi?id=483973

@aedelmann
Copy link
Contributor

aedelmann commented Nov 29, 2016

I already created a Bugzilla issue to have our HIPP instance configured for maven central publishing:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=508342

Here are some more info about the signing process:
https://wiki.eclipse.org/JAR_Signing
http://wiki.eclipse.org/IT_Infrastructure_Doc#Sign_my_plugins.2FZIP_files.3F

@aedelmann
Copy link
Contributor

Other eclipse project use a signer-plugin for maven:
https://www.eclipse.org/cbi/sitedocs/eclipse-jarsigner-plugin/plugin-info.html

@erlemantos
Copy link
Contributor

Our code already has a profile for signing which can be executed by

mvn clean install -P sign

Unfortunately, there is an error of some kind about not resolving build.eclipse.org

[ERROR] Failed to execute goal org.eclipse.cbi.maven.plugins:eclipse-jarsigner-plugin:1.0.5:sign (sign) on project org.eclipse.vorto.core: Could not sign artifact org.eclipse.vorto:org.eclipse.vorto.core:eclipse-plugin:0.9.0-SNAPSHOT: Unknown host build.eclipse.org -> [Help 1]

I believe this is a proxy error on my side but even passing the usual parameters for using proxies doesn't work.

mvn clean install -P sign -Dhttp.proxyHost=<proxy host> -Dhttp.proxyPort=<proxy port> -Dhttp.proxyUser=<proxy user> -Dhttp.proxyPassword=<proxy password>

Even setting the environment variable for the proxy doesn't work

export http_proxy=http://<proxy user>:<proxy password>@<proxy host>:<proxy port>

Which leads me to conclude this must be an error on the jarsigner plugin not handling proxies well. Either that or there is another way to set the proxy being used by the jarsigner.

@erlemantos
Copy link
Contributor

Can anyone who doesn't need a proxy confirm that mvn clean install -P sign works outside a proxied network?

@erlemantos
Copy link
Contributor

erlemantos commented Dec 13, 2016

By the way, this is the profile in our root pom.xml for signing ...

<profile>
	<id>sign</id>
	<build>
		<plugins>
			<plugin>
				<groupId>org.eclipse.cbi.maven.plugins</groupId>
				<artifactId>eclipse-jarsigner-plugin</artifactId>
				<version>1.1.3</version>
				<executions>
					<execution>
						<id>sign</id>
						<phase>verify</phase>
						<goals>
							<goal>sign</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
</profile>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants