Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] using eclipserun to call org.eclipse.ant.core.antRunner for p2.composite task

I'm generating an ant file like that I can successfully run with

${ECLIPSE_HOME}/eclipse -nosplash -application org.eclipse.ant.core.antRunner -buildfile target/composite.p2-###.xml osgi.composite.p2

But when I try to use eclipserun plugin to do the same in maven it fails with an NPE

/d01/sandboxes/hbl4218/dsbase/trunk/target/composite.p2-12345.xml:3: java.lang.NullPointerException
at org.eclipse.equinox.p2.internal.repository.tools.CompositeRepositoryApplication.initializeDestination(CompositeRepositoryApplication.java:96)
at org.eclipse.equinox.p2.internal.repository.tools.AbstractApplication.processDestinationRepos(AbstractApplication.java:164)
at org.eclipse.equinox.p2.internal.repository.tools.AbstractApplication.initializeRepos(AbstractApplication.java:133)
at org.eclipse.equinox.p2.internal.repository.tools.CompositeRepositoryApplication.run(CompositeRepositoryApplication.java:40)
at org.eclipse.equinox.p2.internal.repository.tools.tasks.CompositeRepositoryTask.execute(CompositeRepositoryTask.java:35)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)

So I'm guessing I need to tweak the dependencies a bit. I've configured the plugin like this

                    <plugin>
                        <groupId>org.eclipse.tycho.extras</groupId>
                        <artifactId>tycho-eclipserun-plugin</artifactId>
                        <version>0.18.0</version>
                        <configuration>
                            <dependencies>
                                <dependency>
                                    <artifactId>org.apache.ant</artifactId>
                                    <type>eclipse-plugin</type>
                                </dependency>
                                <dependency>
                                    <artifactId>org.eclipse.equinox.p2.repository.tools</artifactId>
                                    <type>eclipse-plugin</type>
                                </dependency>
                                <dependency>
                                    <artifactId>org.eclipse.ant.core</artifactId>
                                    <type>eclipse-plugin</type>
                                </dependency>
                            </dependencies>
                            <repositories>
                                <repository>
                                    <id>eclipse.platform</id>
                                    <layout>p2</layout>
                                    <url>http://download.eclipse.org/eclipse/updates/4.3</url>
                                </repository>
                            </repositories>
                            <appArgLine>-application org.eclipse.ant.core.antRunner -buildfile ${project.build.directory}${file.separator}composite.p2-${buildQualifier}.xml osgi.composite.p2</appArgLine>
                        </configuration>
                        <executions>
                            <execution>
                                <id>create-p2-composite-index</id>
                                <goals>
                                    <goal>eclipse-run</goal>
                                </goals>
                                <phase>initialize</phase>
                            </execution>
                        </executions>
                    </plugin>

----------------------------------------------------------------------
This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient.  Any review, use, distribution, or disclosure by others is strictly prohibited.  If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message.


Back to the top