Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[p2-dev] Setting bundles to autostart when installed through the p2 director

Hi, all

 

I’m creating a maven pom that will automatically install Virgo Tomcat Server and all the thirdparty bundles I need using p2director.  Thus far, I have p2director successfully installing VTS such that it starts up successfully, but all the bundles that I installed using p2director are set in bundles.info not to start.  I’m launching p2director through eclipsec.exe

 

Is it possible to set this with p2director?  Ideally, VTS wouldn’t be started yet when all of these bundles are installed  - I’d like the first startup to be with everything installed properly.

 

Thanks very much.

 

Relevant sections of the POM is below :

 

       <build>

              <plugins>

                     <plugin>

                           <groupId>org.codehaus.mojo</groupId>

                           <artifactId>exec-maven-plugin</artifactId>

                           <version>1.2.1</version>

                           <executions>

                                  <execution>

                                         <id>installvirgo</id>

                                         <phase>package</phase>

                                         <configuration>

                                                <executable>${ECLIPSELOC}</executable>

                                                <workingDirectory>.</workingDirectory>

                                                <arguments>

                                                       <argument>-application</argument>

                                                       <argument>org.eclipse.equinox.p2.director</argument>

                                                       <argument>-console</argument>

                                                       <argument>-repository</argument>

                                                       <argument>http://ournexusserver:8081/nexus/content/repositories/Virgo3.5.0.M04/</argument>

                                                       <argument>-installIU</argument>

                                                       <argument>

                                                              tomcat-server.product,

                                                              com.springsource.org.apache.log4j,javax.annotation

                                                       </argument>

                                                       <argument>-tag</argument>

                                                       <argument>InitialState</argument>

                                                       <argument>-destination</argument>

                                                       <argument>${VIRGOINSTALLDIR}</argument>

                                                       <argument>-profile</argument>

                                                       <argument>VTSProfile</argument>

                                                </arguments>

                                         </configuration>

                                         <goals>

                                                <goal>exec</goal>

                                         </goals>

                                  </execution>

                                  <execution>

                                         <id>installthirdparty</id>

                                         <phase>package</phase>

                                         <configuration>

                                                <executable>${ECLIPSELOC}</executable>

                                                <workingDirectory>.</workingDirectory>

                                                <arguments>

                                                       <argument>-application</argument>

                                                       <argument>org.eclipse.equinox.p2.director</argument>

                                                       <argument>-console</argument>

                                                       <argument>-repository</argument>

                                                       <argument>http://ournexusserver:8081/nexus/content/repositories/thirdparty/.meta/p2</argument>

                                                       <argument>-installIU</argument>

                                                       <argument>

                                                              scannotation,

                                                              activation,

                                                              httpcore,

                                                              httpclient,

                                                              javassist,

                                                              resteasy-jaxrs,

                                                              jaxrs-api,

                                                              jaxb-impl,

                                                              jaxb-api,

                                                              jackson-jaxrs,

                                                              jackson-core-asl,

                                                              jackson-mapper-asl,

                                                              resteasy-jackson-provider,

                                                              resteasy-jaxb-provider

                                                       </argument>

                                                       <argument>-tag</argument>

                                                       <argument>InitialState</argument>

                                                       <argument>-destination</argument>

                                                       <argument>${VIRGOINSTALLDIR}</argument>

                                                       <argument>-profile</argument>

                                                       <argument>VTSProfile</argument>

                                                </arguments>

                                         </configuration>

                                         <goals>

                                                <goal>exec</goal>

                                         </goals>

                                  </execution>

                           </executions>

                     </plugin>

              </plugins>

       </build>


Back to the top