Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Convert existing plugins and features to tycho maven

Another question: Since net.sourceforge.clearcase does not have any eclipse dependencies why would tycho need to resolve these?

br,

//mike

 
 



Date: Mon, 17 Aug 2015 14:07:46 +0100
From: jgonzalez@xxxxxxxxxxxxxxx
To: tycho-user@xxxxxxxxxxx
Subject: Re: [tycho-user] Convert existing plugins and features to tycho maven

The probles is tha Tycho can not solved dependencies in the list of module specify in pom.xml aggregator and the repository defined en tag <repositories> in parent pom.xml. In your cases, this modules is in pom.xml aggregator. Check if path are correct, relative to pom.xml aggregator file
<module>../net.sourceforge.eclipseccase</module>
<module>../../code/net.sourceforge.clearcase</module>
<module>../net.sourceforge.eclipseccase.ui</module>



Un Saludo



2015-08-17 13:56 GMT+01:00 Mikael Petterson <mikaelpetterson@xxxxxxxxxxx>:
Hi,

Thanks for reply. I added it and I still get the same error message. Any more things  that I have missed that can cause these kind of errors?

//mike

 
 



Date: Mon, 17 Aug 2015 13:48:30 +0100
From: jgonzalez@xxxxxxxxxxxxxxx
To: tycho-user@xxxxxxxxxxx
Subject: Re: [tycho-user] Convert existing plugins and features to tycho maven


Hi, first I recommend you specify the runtime environment, add in yout parent pom setting the plugin "target-platform-configuration"

pe. generate for windows x86


 <plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>target-platform-configuration</artifactId>
        <version>${tycho.version}</version>
        <configuration>
          <filters>
            <!-- work around Equinox bug 348045 -->
            <filter>
              <type>p2-installable-unit</type>
              <id>org.eclipse.equinox.servletbridge.extensionbundle</id>
              <removeAll />
            </filter>
          </filters>
          <environments>
      <environment>
  <os>win32</os>
  <ws>win32</ws>
  <arch>x86</arch>
     </environment>
           </environments>
        </configuration>
      </plugin>



and after you can try with others environmet.




Un Saludo

Juan Antonio González Cano

2015-08-17 13:05 GMT+01:00 Mikael Petterson <mikaelpetterson@xxxxxxxxxxx>:
Hi,

I checked your plugin to support maven build and testing ( amongst others). I looks really interesting.

I am working with a eclipse plugin for clearcase useage in Eclipse. I currently has the following setup:

net.sourceforge.clearcase ( separate git repos) and I generate a jar from it.

Here is the MANIFEST.MF

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: net.sourceforge.clearcase
Bundle-Version: 2.2.36.qualifier
Bundle-ClassPath: clearcase.jar
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Export-Package: net.sourceforge.clearcase,
 net.sourceforge.clearcase.commandline,
 net.sourceforge.clearcase.events,
 net.sourceforge.clearcase.utils
Eclipse-ExtensibleAPI: true
Bundle-RequiredExecutionEnvironment: J2SE-1.5


Then I have the following eclipse plugins/features in another git repos.

net.sourceforge.eclipseccase ( this one depends on net.sourceforge. clearcase jar).
net.sourceforge.eclipseccase-feature
net.sourceforge.eclipseccase.ui
net.sourceforge.ecliseccase.updatesite


I have read various forums and tutorials so I have the following setup ( added these as recommended):

net.sourceforge.eclipseccase.aggreator
net.sourceforge.eclipseccase.parent

Parent pom.xml has the following:

<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <groupId>net.sourceforge.eclipseccase</groupId>
  <artifactId>net.sourceforge.eclipseccase.parent</artifactId>
  <version>2.2.36-SNAPSHOT</version>
  <packaging>pom</packaging>

 
 
  <profile>
          <id>platform-ganymede</id>
          <activation>
                <activeByDefault>true</activeByDefault>
                <property>
                      <name>platform-version-name</name>
                      <value>ganymede</value>
                </property>
          </activation>
          <properties>
                <eclipse-site>http://download.eclipse.org/releases/ganymede</eclipse-site>
                <platform-version>3.4</platform-version>
                <tycho.version>0.23.1</tycho.version>
          </properties>
    </profile>
</profiles>
<!-- repositories -->
<repositories>
  <repository>
    <id>eclipse platform</id>
    <url>${eclipse-site}</url>
    <layout>p2</layout>
  </repository>
</repositories>
 
  <build>
  <plugins>
    <plugin>
      <groupId>org.eclipse.tycho</groupId>
      <artifactId>tycho-maven-plugin</artifactId>
      <version>${tycho.version}</version>
      <extensions>true</extensions>
    </plugin>
  </plugins>
 
  <pluginManagement>
    <plugins>
      <plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>target-platform-configuration</artifactId>
        <version>${tycho.version}</version>
        <configuration>
          <filters>
            <!-- work around Equinox bug 348045 -->
            <filter>
              <type>p2-installable-unit</type>
              <id>org.eclipse.equinox.servletbridge.extensionbundle</id>
              <removeAll />
            </filter>
          </filters>
        </configuration>
      </plugin>
    </plugins>
  </pluginManagement>
</build>
 
</project>


Aggregator pom.xml has the following content:

<project>
    <modelVersion>4.0.0</modelVersion>
    <groupId>net.sourceforge.eclipseccase</groupId>
    <artifactId>net.sourceforge.eclipseccase.aggregator</artifactId>
    <version>2.2.36-SNAPSHOT</version>
    <packaging>pom</packaging>

    <parent>
        <groupId>net.sourceforge.eclipseccase</groupId>
        <artifactId>net.sourceforge.eclipseccase.parent</artifactId>
        <version>2.2.36-SNAPSHOT</version>
        <relativePath>../net.sourceforge.eclipseccase.parent</relativePath>
    </parent>

    <modules>
        <module>../net.sourceforge.eclipseccase</module>
        <module>../../code/net.sourceforge.clearcase</module>

        <module>../net.sourceforge.eclipseccase.ui</module>
    </modules>
</project>


When I execute 'build' using the aggregator pom.xml I get the following:

INFO] Scanning for projects...
[WARNING] No explicit target runtime environment configuration. Build is platform dependent.
[WARNING] No explicit target runtime environment configuration. Build is platform dependent.
[INFO] Computing target platform for MavenProject: net.sourceforge.eclipseccase:net.sourceforge.eclipseccase:2.2.36-SNAPSHOT @ C:\Users\eraonel\git\eclipse-ccase\net.sourceforge.eclipseccase\pom.xml
[INFO] Adding repository http://download.eclipse.org/releases/ganymede
[INFO] Resolving dependencies of MavenProject: net.sourceforge.eclipseccase:net.sourceforge.eclipseccase:2.2.36-SNAPSHOT @ C:\Users\eraonel\git\eclipse-ccase\net.sourceforge.eclipseccase\pom.xml
[INFO] {osgi.os=win32, osgi.ws=win32, org.eclipse.update.install.features=true, osgi.arch=x86_64}
[ERROR] Cannot resolve project dependencies:
[ERROR]   Software being installed: net.sourceforge.eclipseccase 2.2.36.qualifier
[ERROR]   Missing requirement: net.sourceforge.eclipseccase 2.2.36.qualifier requires 'bundle net.sourceforge.clearcase 2.2.36' but it could not be found
[ERROR]
[ERROR] See http://wiki.eclipse.org/Tycho/Dependency_Resolution_Troubleshooting for help.
[ERROR] Cannot resolve dependencies of MavenProject: net.sourceforge.eclipseccase:net.sourceforge.eclipseccase:2.2.36-SNAPSHOT @ C:\Users\eraonel\git\eclipse-ccase\net.sourceforge.eclipseccase\pom.xml: See log for details -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MavenExecutionException

What am I missing?

br,

//mike




 
 

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user


_______________________________________________ tycho-user mailing list tycho-user@xxxxxxxxxxx To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/tycho-user

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user


_______________________________________________ tycho-user mailing list tycho-user@xxxxxxxxxxx To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/tycho-user

Back to the top