Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] mirroring p2 repository from build to another location

Hello I have the same issue as Nikolas:

http://www.eclipse.org/forums/index.php/t/156617/

but i dont see how , and where should i run the ant script. 
I was trying something like this:


<plugin>
      <artifactId>maven-antrun-plugin</artifactId>
      <version>1.7</version>
      <executions>
        <execution>
          <phase>install</phase>
          <configuration>
                                 
          <target>
           <property name="p2.build.repo" value="/com.xxx.updatesite/target/repository" />
           <property name="p2.repo.location" value="/test" />
                                               
              <p2.mirror source="${p2.build.repo}">
                     <destination kind="metadata" location="${p2.repo.location}" compressed="false" name="metadata" />
                      <destination kind="artifact" location="${p2.repo.location}" compressed="false" name="artifacts.xml" />
                       <slicingoptions includeoptional="false" />
              </p2.mirror>
          
            </target>
          </configuration>
          <goals>
            <goal>run</goal>
          </goals>
        </execution>
      </executions>
    </plugin>


But the build fail....with this error:

Problem: failed to create task or type p2.mirror
Cause: The name is undefined.

This solution is useless for me, coz it only mirrors repositories to build repository:
http://wiki.eclipse.org/Tycho/Additional_Tools

any ideas, please?
David


Back to the top