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

Feature request: Add site-deploy goal like in maven-site-plugin #162

Open
gschnepp opened this issue Aug 2, 2020 · 1 comment
Open

Feature request: Add site-deploy goal like in maven-site-plugin #162

gschnepp opened this issue Aug 2, 2020 · 1 comment

Comments

@gschnepp
Copy link

gschnepp commented Aug 2, 2020

There's no easy way today to deploy generated update site to e.g. Nexus currently aside deploying a zipped archive and using nexus unzip plugin. There's a maven-site-plugin on the other side being able to deploy whole folder structures to Nexus easily, but only the ones generated on their own (site:site goal).

This feature request asks for integration of its site-deploy goal into p2-maven-plugin, too, to allow deployment of generated update sites to Nexus or other repository managers directly. I'd do it on my own but never have written a maven plugin before at all.

@sparsick
Copy link
Collaborator

@gschnepp

You can work around this missing feature with

            <plugin>
                <groupId>org.eclipse.tycho</groupId>
                <artifactId>tycho-p2-repository-plugin</artifactId>
                <version>${tycho.version}</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>archive-repository</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

            <!-- Attach zipped P2 repository to be installed and deployed
                in the Maven repository during the deploy phase. -->
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
                <version>3.0.0</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>attach-artifact</goal>
                        </goals>
                        <configuration>
                            <artifacts>
                                <artifact>
                                    <file>target/${project.artifactId}-${project.version}.zip</file>
                                    <type>zip</type>
                                </artifact>
                            </artifacts>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

A whole sample project can be found here

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

No branches or pull requests

2 participants