[jbosstools-issues] [JBoss JIRA] (JBDS-3375) JBDS target platform zip contains both packed and unpacked artifacts

Nick Boldt (JIRA) issues at jboss.org
Fri Mar 13 18:50:18 EDT 2015


    [ https://issues.jboss.org/browse/JBDS-3375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13050117#comment-13050117 ] 

Nick Boldt commented on JBDS-3375:
----------------------------------

Details of the two approaches:
{code}
...
	<build>
		<plugins>
			<plugin>
			    <groupId>com.googlecode.maven-download-plugin</groupId>
			    <artifactId>download-maven-plugin</artifactId>
			    <version>1.2.1</version>
			    <executions>
			        <execution>
			            <id>fetch-target-platform</id>
			            <phase>generate-sources</phase>
			            <goals>
			                <goal>wget</goal>
			            </goals>
			            <configuration>
			                <url>http://download.jboss.org/jbosstools/targetplatforms/jbdevstudiotarget/${tpc.version}/jbdevstudiotarget-${tpc.version}.zip</url>
			                <unpack>true</unpack>
			                <outputDirectory>target</outputDirectory>
			            </configuration>
			        </execution>
			    </executions>
			</plugin>
...{code}

or

{code}
...
	<build>
		<plugins>
			<plugin>
				<groupId>org.eclipse.tycho.extras</groupId>
				<artifactId>tycho-p2-extras-plugin</artifactId>
				<version>${tychoVersion}</version>
				<executions>
					<execution>
					<phase>prepare-package</phase>
					<goals>
						<goal>mirror</goal>
					</goals>
					</execution>
				</executions>
				<configuration>
					<source>
						<repository>
							<url>http://download.jboss.org/jbosstools/targetplatforms/jbdevstudiotarget/${tpc.version}/REPO/</url>
							<layout>p2</layout>
						</repository>
					</source>
					<destination>${project.build.directory}/</destination>
					<includeNonGreedy>false</includeNonGreedy>
					<includeFeatures>true</includeFeatures>
					<latestVersionOnly>false</latestVersionOnly>
					<mirrorMetadataOnly>false</mirrorMetadataOnly>
					<includePacked>false</includePacked>
					<compress>true</compress>
					<append>false</append>
				</configuration>
			</plugin>
...
{code}

> JBDS target platform zip contains both packed and unpacked artifacts
> --------------------------------------------------------------------
>
>                 Key: JBDS-3375
>                 URL: https://issues.jboss.org/browse/JBDS-3375
>             Project: Developer Studio (JBoss Developer Studio)
>          Issue Type: Sub-task
>          Components: build, target-platform, updatesite
>    Affects Versions: 9.0.0.Alpha2
>            Reporter: Nick Boldt
>            Assignee: Nick Boldt
>             Fix For: 9.0.0.Alpha2
>
>
> I've got two approaches now for including the JBDS target platform into the JBDS update site.
> a) mirror the TP site - size on disk is 328M and the increase in size to JBDS update site is about 200M
> b) wget the TP zip and unpack - size on disk after unzipping is 458M
> So... not sure which approach is more efficient given the zip is a single file to download, but it's 130M (more than 1/3rd) larger.
> If we can remove the packed (or unpacked) artifacts from the zip, we'd certainly win.



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the jbosstools-issues mailing list