Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Can Tycho Compute target platform from local files instead of using nexus?

I'm little confused by the target file. 

I've define a p2 mirror defined in my settings and use target-platform-configuration in my pom.   When I build maven uses nexus p2 repo repo to calculate the target platform and I'd rather did this one and from then on used local files.  If I run mvn --offline it still goes out to nexus to computer the platform.   It is as if tycho.localArtifacts is begin set

I must be missing a configuration option because this seems like incorrect behavior.

From my pom
        <plugin>
                <groupId>org.eclipse.tycho</groupId>
                <artifactId>target-platform-configuration</artifactId>
                <version>${tycho-version}</version>
                <configuration>
                    <resolver>p2</resolver>
                    <ignoreTychoRepositories>true</ignoreTychoRepositories>
                    <pomDependencies>consider</pomDependencies>
                    <environments>
                        <environment>
                            <os>win32</os>
                            <ws>win32</ws>
                            <arch>x86_64</arch>
                        </environment>
                        <environment>
                            <os>linux</os>
                            <ws>gtk</ws>
                            <arch>x86_64</arch>
                        </environment>
                    </environments>
                    <target>
                        <artifact>
                            <groupId>myapp</groupId>
                            <artifactId>targetplatform</artifactId>
                            <version>1.0.0-SNAPSHOT</version>
                        </artifact>
                    </target>
                </configuration>
            </plugin>

From my settings.xml
 <mirrors>
    <mirror>
      <id>internal-repository</id>
      <name>Maven2 Public Group</name>
      <url>http://mynexus/nexus/content/groups/public</url>
      <mirrorOf>*</mirrorOf>
    </mirror>
    <mirror>
      <id>p2-internal-repository</id>
      <name>P2 Public Group</name>
      <url>http://mynexus/nexus/content/groups/p2.group.public/</url>
    <layout>p2</layout>
    <mirrorOfLayouts>p2</mirrorOfLayouts>
      <mirrorOf>*</mirrorOf>
    </mirror>
  </mirrors>

Please let me know if you see an important item out of order.

FYI - I switched to nexus pro because they only support p2 repositories on pro.  I tried getting them to work on OSS by adding plugins but it never worked.  Pro has some other benefits too like staging with should allow me to automate more of my release process.

Thanks

Peter



On Thu, Apr 25, 2013 at 3:13 AM, Jeff MAURY <jeffmaury@xxxxxxxxxxxxx> wrote:


On Thu, Apr 25, 2013 at 4:44 AM, Greg Amerson <gregory.amerson@xxxxxxxxxxx> wrote:
Regarding using target files that point to a nexus p2 repository that enable caching.... is there a cookbook blueprint for this type of config?  I'm sure there is somewhere.  Mainly I'm wondering about nexus p2 repository.  I recently installed a local nexus oss server and would love to have p2 repositories cached there.

Greg


On Thu, Apr 25, 2013 at 4:59 AM, Jeff MAURY <jeffmaury@xxxxxxxxxxxxx> wrote:
The best way to do in Tycho is to use a target file and the target file will be referencing your Nexus P2 repository. I think this make no big difference except that if you use target file, then the content and index of the P2 repositories used by this target file will be cached somewhere in the Maven repository.

Jeff


On Wed, Apr 24, 2013 at 10:22 PM, Peter Kahn <citizenkahn@xxxxxxxxx> wrote:
Hi all,

We integrated tycho into a larger maven build.  Each time we build tycho starts "Computing target platform for MavenProject" and spends a minute chatting with our nexus p2 repository.  I'd like to configure tycho so it works similar to m2 snapshots and only checks nexus if the local p2 repository lacks files or once per day.

Is there a way to configur tycho to compute it's platform from $HOME/.m2/repository/p2 instead of the more remote nexus repository?


[INFO] Computing target platform for MavenProject: com....feature:4.0.0-SNAPSHOT @ trunk/.../pom.xml
[INFO] Loading repository 'http://download.eclipse.org/releases/juno' from mirror 'p2-internal-repository' at 'http://mynexus/nexus/content/groups/p2.group.public/'


Thanks

Peter

--
Peter Kahn
citizenkahn@xxxxxxxxx
http://www.google.com/profiles/citizenkahn
Awareness - Intention - Action

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user




--
Jeff MAURY


"Legacy code" often differs from its suggested alternative by actually working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user




--
Greg Amerson
Liferay Developer Tools
Liferay, Inc. www.liferay.com

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user




--
Jeff MAURY


"Legacy code" often differs from its suggested alternative by actually working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user




--
Peter Kahn
citizenkahn@xxxxxxxxx
http://www.google.com/profiles/citizenkahn
Awareness - Intention - Action

Back to the top