Quantcast
Channel: tycho-user
Viewing all 4647 articles
Browse latest View live

Re: [tycho-user] Creating a Product and then updating via Update Site

$
0
0
Hi Jeff,


2014/1/18 Jeff MAURY <jeffmaury@xxxxxxxxxxxxx>
Laurent,

is it still relevant ? I thought you've fixed it ?

Actually, I have since thursday been able to do a lot of trials and errors, thanks to the links, thanks to you ...

I haven't had the time to inform you, but I haven't been able to make the "intermediate product feature" solution work. 
Maybe I have misunderstood some explanation:

- I have created a ccw.product.feature feature, and now my ccw product includes only this feature in ccw.product
- I have a new tycho module for ccw.product.feature, and it basically declares all the features which were included directly in the product (Rcp, Application, JDT, CCW, EclipsecolorTheme, EGit, ...)

The Tycho builds a product, but I'm still unable to update eg CCW via the update site.

You were talking about a possible remaining issue with "root feature(s)" with this solution, I didn't at the time understand what you meant, maybe it's the missing piece ... ?
 

Jeff


On Thu, Jan 16, 2014 at 10:49 PM, Laurent PETIT <laurent.petit@xxxxxxxxx> wrote:
Hi Paul, 

So thanks to you and the link, I've been able to fix my problem. I had to remove the ccw feature definition from the product features list, and instead add a requires.x.name to my product's ccw.p2.inf file.

And the final step is to manually invoke the Director to install ccw.feature.feature.group to the product after the fact.

This is why I'm coming back to you. Since I've removed ccw.feature from the product features list, I don't find feature artifacts in my product's target/repository repository anymore. Before that, it was easy to point the Director to this directory.
So Ive pointed instead the directory to a relative path like ../ccw.updatesite/target/repository.

And it is working for ccw.feature, great !

BUT

I'd also like to make other features updatable independently by the user: egit, eclipse-colorthemes for instance.
And then starts the redundancy : I have already declared where to find these feature in my ccw.target.e47 target definition, but I don't know how to reuse this.
Instead, I find myself repeating tycho-eclipserun-plugin calls, an for each call, pasting the location of external p2 repositories ...

There must be a better way with tycho, right ? I'm sure I'm not using it to its full potential ....

thanks in advance for any guidance,

-- 
Laurent





2014/1/16 Laurent PETIT <laurent.petit@xxxxxxxxx>
Thank you both, Paul and Sandra, I will take a look at these links and try things ASAP.


2014/1/16 Paul Webster <pwebster@xxxxxxxxxxxxxxxxxxx>
On Thu, Jan 16, 2014 at 8:48 AM, Laurent PETIT <laurent.petit@xxxxxxxxx> wrote:

There's something not working yet: once the product is installed, users are unable to update the counterclockwise plugin via the counterclockwise update site, meaning that they need to download and install a new version of the Product everytime they want to upgrade ..


See http://aniefer.blogspot.ca/2009/07/composing-and-updating-custom-eclipse.html which has a section on upgrading components without upgrading the entire product.

If I'm reading it correctly, you need your product p2.inf to open up the ranges on the features the product include.

Later,
Paul

--
Paul Webster
Hi floor.  Make me a sammich! - GIR

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




_______________________________________________
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



Re: [tycho-user] rootFolder not working with Tycho 0.19 ?

$
0
0
Hello,

Am I the only one trying to use rootFolder attribute ? I'm interested in both success / failure feedbacks with this feature.

Thanks in advance,

-- 
Laurent



2014/1/17 Laurent PETIT <laurent.petit@xxxxxxxxx>
Hello,

I'm using tycho 0.19.

I have configured rootFolder / rootFolders as per http://wiki.eclipse.org/Tycho/Packaging_Types#Creating_Product_Zip_Files

You can check my product's pom.xml here:

when I launch mvn clean verify in my parent pom, wait for the product to be built, and then check it, there's still no root folder, even though I'm defining one.

Is there a problem with this with tycho 0.19 ?

Cheers,

-- 
Laurent

Re: [tycho-user] Support for Java 1.8

$
0
0
I think we¹re getting close to needing this. Igor can you provide
instructions how we can do this?

Thanks!
Doug.

On 12/30/2013, 3:15 PM, "Igor Fedorenko" <igor@xxxxxxxxxxxxxx> wrote:

>JDT compiler is a regular Maven dependency of tycho-compiler-plugin.
>Assuming JDT compiler API has changed, you can use newer/different
>compiler version without changing Tycho. You'll need to deploy/install
>new JDT compiler to a maven repository yourself, however. I can show how
>to do this, if you want.
>
>--
>Regards,
>Igor
>
>On 12/30/2013, 11:45, Doug Schaefer wrote:
>> Hey gang,
>>
>> We¹ve started work on porting Eclipse to JavaFX and want to use the 1.8
>> early release bits to work against to give us the latest Java 1.8.
>> That¹ll require an update to the JDT compiler that tycho is using. Does
>> anyone have that working or working on it?
>>
>> Thanks,
>> Doug.
>>
>>
>> _______________________________________________
>> tycho-user mailing list
>> tycho-user@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/tycho-user
>>
>_______________________________________________
>tycho-user mailing list
>tycho-user@xxxxxxxxxxx
>https://dev.eclipse.org/mailman/listinfo/tycho-user


Re: [tycho-user] Support for Java 1.8

$
0
0
Tycho parent pom has pretty verbose explanation how to do this [1], but
here is a shorter version


Assuming you are on OSX or Linux, have 'mvn' command on PATH and eclipse with java8 support is in /tmp/eclipse, the following snippet will install JDT compiler and APT compiler to your local maven repository (obviously replace JDT*VERSION with actual version your have)


PLUGINS=/tmp/eclipse/plugins

    CMD="mvn install:install-file -Dpackaging=jar"

    JDT_VERSION=3.9.2.v20140119-0104_BETA_JAVA8
    JDT_APT_VERSION=1.0.600.v20140119-0104_BETA_JAVA8

    $CMD -DgroupId=org.eclipse.tycho \
      -DartifactId=org.eclipse.jdt.core \
      -Dversion=$JDT_VERSION \
      -Dfile=$PLUGINS/org.eclipse.jdt.core_$JDT_VERSION.jar

    $CMD -DgroupId=org.eclipse.tycho \
      -DartifactId=org.eclipse.jdt.compiler.apt \
      -Dversion=$JDT_APT_VERSION \
      -Dfile=$PLUGINS/org.eclipse.jdt.compiler.apt_$JDT_APT_VERSION.jar


In your Tycho project, add the following xml snippet to build/pluginManagement/plugins sections (again, make sure version matches what you have)


<plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>tycho-compiler-plugin</artifactId> <version>${tycho-version}</version> <dependencies> <dependency> <groupId>org.eclipse.tycho</groupId> <artifactId>org.eclipse.jdt.core</artifactId> <version>3.9.2.v20140119-0104_BETA_JAVA8</version> </dependency> <dependency> <groupId>org.eclipse.tycho</groupId> <artifactId>org.eclipse.jdt.compiler.apt</artifactId> <version>1.0.600.v20140119-0104_BETA_JAVA8</version> </dependency> </dependencies> </plugin>



Then you will likely need to fix your code to actually compile under
java8. For example, m2e gave me tons of errors about
Comparator.thenComparingDouble not implemented... almost looks like a
bug in jdt compiler ;-)


[1] http://git.eclipse.org/c/tycho/org.eclipse.tycho.git/tree/pom.xml#n92


-- Regards, Igor


On 1/19/2014, 15:48, Doug Schaefer wrote:
I think we¹re getting close to needing this. Igor can you provide
instructions how we can do this?

Thanks!
Doug.

On 12/30/2013, 3:15 PM, "Igor Fedorenko" <igor@xxxxxxxxxxxxxx> wrote:

JDT compiler is a regular Maven dependency of tycho-compiler-plugin.
Assuming JDT compiler API has changed, you can use newer/different
compiler version without changing Tycho. You'll need to deploy/install
new JDT compiler to a maven repository yourself, however. I can show how
to do this, if you want.

--
Regards,
Igor

On 12/30/2013, 11:45, Doug Schaefer wrote:
Hey gang,

We¹ve started work on porting Eclipse to JavaFX and want to use the 1.8
early release bits to work against to give us the latest Java 1.8.
That¹ll require an update to the JDT compiler that tycho is using. Does
anyone have that working or working on it?

Thanks,
Doug.


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

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

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


Re: [tycho-user] Support for Java 1.8

$
0
0
Very cool. Thanks Igor! I’ll give a try over the next couple of days and
report back on my experiences.

Doug.

On 1/19/2014, 7:48 PM, "Igor Fedorenko" <igor@xxxxxxxxxxxxxx> wrote:

>Tycho parent pom has pretty verbose explanation how to do this [1], but
>here is a shorter version
>
>
>Assuming you are on OSX or Linux, have 'mvn' command on PATH and eclipse
>with java8 support is in /tmp/eclipse, the following snippet will
>install JDT compiler and APT compiler to your local maven repository
>(obviously replace JDT*VERSION with actual version your have)
>
>
>     PLUGINS=/tmp/eclipse/plugins
>
>     CMD="mvn install:install-file -Dpackaging=jar"
>
>     JDT_VERSION=3.9.2.v20140119-0104_BETA_JAVA8
>     JDT_APT_VERSION=1.0.600.v20140119-0104_BETA_JAVA8
>
>     $CMD -DgroupId=org.eclipse.tycho \
>       -DartifactId=org.eclipse.jdt.core \
>       -Dversion=$JDT_VERSION \
>       -Dfile=$PLUGINS/org.eclipse.jdt.core_$JDT_VERSION.jar
>
>     $CMD -DgroupId=org.eclipse.tycho \
>       -DartifactId=org.eclipse.jdt.compiler.apt \
>       -Dversion=$JDT_APT_VERSION \
>       -Dfile=$PLUGINS/org.eclipse.jdt.compiler.apt_$JDT_APT_VERSION.jar
>
>
>In your Tycho project, add the following xml snippet to
>build/pluginManagement/plugins sections (again, make sure version
>matches what you have)
>
>
>     <plugin>
>       <groupId>org.eclipse.tycho</groupId>
>       <artifactId>tycho-compiler-plugin</artifactId>
>       <version>${tycho-version}</version>
>       <dependencies>
>         <dependency>
>           <groupId>org.eclipse.tycho</groupId>
>           <artifactId>org.eclipse.jdt.core</artifactId>
>           <version>3.9.2.v20140119-0104_BETA_JAVA8</version>
>         </dependency>
>         <dependency>
>           <groupId>org.eclipse.tycho</groupId>
>           <artifactId>org.eclipse.jdt.compiler.apt</artifactId>
>           <version>1.0.600.v20140119-0104_BETA_JAVA8</version>
>         </dependency>
>       </dependencies>
>     </plugin>
>
>
>
>Then you will likely need to fix your code to actually compile under
>java8. For example, m2e gave me tons of errors about
>Comparator.thenComparingDouble not implemented... almost looks like a
>bug in jdt compiler ;-)
>
>
>[1] http://git.eclipse.org/c/tycho/org.eclipse.tycho.git/tree/pom.xml#n92
>
>
>--
>Regards,
>Igor
>
>
>On 1/19/2014, 15:48, Doug Schaefer wrote:
>> I think we¹re getting close to needing this. Igor can you provide
>> instructions how we can do this?
>>
>> Thanks!
>> Doug.
>>
>> On 12/30/2013, 3:15 PM, "Igor Fedorenko" <igor@xxxxxxxxxxxxxx> wrote:
>>
>>> JDT compiler is a regular Maven dependency of tycho-compiler-plugin.
>>> Assuming JDT compiler API has changed, you can use newer/different
>>> compiler version without changing Tycho. You'll need to deploy/install
>>> new JDT compiler to a maven repository yourself, however. I can show
>>>how
>>> to do this, if you want.
>>>
>>> --
>>> Regards,
>>> Igor
>>>
>>> On 12/30/2013, 11:45, Doug Schaefer wrote:
>>>> Hey gang,
>>>>
>>>> We¹ve started work on porting Eclipse to JavaFX and want to use the
>>>>1.8
>>>> early release bits to work against to give us the latest Java 1.8.
>>>> That¹ll require an update to the JDT compiler that tycho is using.
>>>>Does
>>>> anyone have that working or working on it?
>>>>
>>>> Thanks,
>>>> Doug.
>>>>
>>>>
>>>> _______________________________________________
>>>> tycho-user mailing list
>>>> tycho-user@xxxxxxxxxxx
>>>> https://dev.eclipse.org/mailman/listinfo/tycho-user
>>>>
>>> _______________________________________________
>>> tycho-user mailing list
>>> tycho-user@xxxxxxxxxxx
>>> https://dev.eclipse.org/mailman/listinfo/tycho-user
>>
>> _______________________________________________
>> tycho-user mailing list
>> tycho-user@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/tycho-user
>>
>_______________________________________________
>tycho-user mailing list
>tycho-user@xxxxxxxxxxx
>https://dev.eclipse.org/mailman/listinfo/tycho-user

Re: [tycho-user] rootFolder not working with Tycho 0.19 ?

$
0
0

http://git.eclipse.org/c/tycho/org.eclipse.tycho.git/tree/tycho-its/src/test/java/org/eclipse/tycho/test/TYCHO188P2EnabledRcp/Tycho188P2EnabledRcpTest.java#n133

 

 

 

From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Laurent PETIT
Sent: Sonntag, 19. Januar 2014 11:57
To: Tycho user list
Subject: Re: [tycho-user] rootFolder not working with Tycho 0.19 ?

 

Hello,

 

Am I the only one trying to use rootFolder attribute ? I'm interested in both success / failure feedbacks with this feature.

 

Thanks in advance,

 

-- 

Laurent

 

 

2014/1/17 Laurent PETIT <laurent.petit@xxxxxxxxx>

Hello,

 

I'm using tycho 0.19.

 

I have configured rootFolder / rootFolders as per http://wiki.eclipse.org/Tycho/Packaging_Types#Creating_Product_Zip_Files

 

You can check my product's pom.xml here:

 

when I launch mvn clean verify in my parent pom, wait for the product to be built, and then check it, there's still no root folder, even though I'm defining one.

 

Is there a problem with this with tycho 0.19 ?

 

Cheers,

 

-- 

Laurent

 

Re: [tycho-user] rootFolder not working with Tycho 0.19 ?

$
0
0

2014/1/20 Sievers, Jan <jan.sievers@xxxxxxx>

Thanks for the link, but I'm unable to interpret it.

Does that test the usage of the rootFolder attribute set through a real pom.xml file, as I would do as a regular user, or does that only prove that no tests fail (which may or may not help me at all, I don't know what the tests take as inputs and produce as outputs).

Regards,

--
Laurent
 

 

 

 

From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Laurent PETIT
Sent: Sonntag, 19. Januar 2014 11:57
To: Tycho user list
Subject: Re: [tycho-user] rootFolder not working with Tycho 0.19 ?

 

Hello,

 

Am I the only one trying to use rootFolder attribute ? I'm interested in both success / failure feedbacks with this feature.

 

Thanks in advance,

 

-- 

Laurent

 

 

2014/1/17 Laurent PETIT <laurent.petit@xxxxxxxxx>

Hello,

 

I'm using tycho 0.19.

 

I have configured rootFolder / rootFolders as per http://wiki.eclipse.org/Tycho/Packaging_Types#Creating_Product_Zip_Files

 

You can check my product's pom.xml here:

 

when I launch mvn clean verify in my parent pom, wait for the product to be built, and then check it, there's still no root folder, even though I'm defining one.

 

Is there a problem with this with tycho 0.19 ?

 

Cheers,

 

-- 

Laurent

 


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


Re: [tycho-user] rootFolder not working with Tycho 0.19 ?

$
0
0

the IT covering the scenario is successful

https://hudson.eclipse.org/tycho/job/tycho-its-linux-nightly/lastCompletedBuild/testReport/org.eclipse.tycho.test.TYCHO188P2EnabledRcp/Tycho188P2EnabledRcpTest/

 

Take it and go from there

 

Jan

 

From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Laurent PETIT
Sent: Montag, 20. Januar 2014 09:52
To: Tycho user list
Subject: Re: [tycho-user] rootFolder not working with Tycho 0.19 ?

 

 

2014/1/20 Sievers, Jan <jan.sievers@xxxxxxx>

 

Thanks for the link, but I'm unable to interpret it.

Does that test the usage of the rootFolder attribute set through a real pom.xml file, as I would do as a regular user, or does that only prove that no tests fail (which may or may not help me at all, I don't know what the tests take as inputs and produce as outputs).

Regards,

--
Laurent

 

 

 

 

From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Laurent PETIT
Sent: Sonntag, 19. Januar 2014 11:57
To: Tycho user list
Subject: Re: [tycho-user] rootFolder not working with Tycho 0.19 ?

 

Hello,

 

Am I the only one trying to use rootFolder attribute ? I'm interested in both success / failure feedbacks with this feature.

 

Thanks in advance,

 

-- 

Laurent

 

 

2014/1/17 Laurent PETIT <laurent.petit@xxxxxxxxx>

Hello,

 

I'm using tycho 0.19.

 

I have configured rootFolder / rootFolders as per http://wiki.eclipse.org/Tycho/Packaging_Types#Creating_Product_Zip_Files

 

You can check my product's pom.xml here:

 

when I launch mvn clean verify in my parent pom, wait for the product to be built, and then check it, there's still no root folder, even though I'm defining one.

 

Is there a problem with this with tycho 0.19 ?

 

Cheers,

 

-- 

Laurent

 


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

 


Re: [tycho-user] Building large projects

$
0
0
On 2013-09-10 10:13, Mickael Istria wrote:
If you see a lot of time spent in resolving the target platform, you can
set up some p2 mirrors on local filesystem and enable them for Tycho via
settings.xml. See
http://wiki.eclipse.org/Tycho/Target_Platform/Authentication_and_Mirrors. It
would replace all remote access to Nexus proxy by a filesystem access,
so it can save a lot of time.
For JBoss Tools, we also set up the concept of "unified" target platform
which avoids referencing too many sites from the target platform. This
unified target platform aggregate all the content of the various sites
we need, and put them in a single location. Having a single location
makes dependency resolution a bit faster.
Those possible improvements to target-platforms are explained here:
http://www.slideshare.net/mickaelistria/a-journey-with-target-platforms .

But there may be some other time-consuming operations. You'll need to
actually look at how build happens and find which operations that the
most time to figure out what can be improved.

Hi,

Picking up an old thread...

I tried setting up the target-platform-utils plugin to mirror a target platform as a p2 repo, but could not figure out how to specify the .target file name. This is what I tried:

			<plugin>
				<groupId>org.jboss.tools.tycho-plugins</groupId>
				<artifactId>target-platform-utils</artifactId>
				<version>0.19.0-SNAPSHOT</version>
				<executions>
					<execution>
						<id>create-mirror-repo</id>
						<phase>install</phase>
						<goals>
							<goal>mirror-target-to-repo</goal>
						</goals>
						<configuration>
							<targetFile>${basedir}/kepler.target</targetFile>
						</configuration>
					</execution>
				</executions>
			</plugin>

I search but couldn't find any documentation for this plugin.

/Jesper
--
*Jesper Eskilson* /Development Engineer/
IAR Systems AB
Box 23051, Strandbodgatan 1
SE-750 23 Uppsala, SWEDEN
E-mail: jesper.eskilson@xxxxxxx <mailto:jesper.eskilson@xxxxxxx>
Website: www.iar.com
<http://www.iar.com> Twitter: www.twitter.com/iarsystems
<http://www.twitter.com/iarsystems>

[tycho-user] can you please delete tycho-0.19.x from tycho?

Re: [tycho-user] Building large projects

$
0
0
Hi Jesper,

> I search but couldn't find any documentation for this plugin. 

"mvn help:describe" is your friend:

mvn help:describe -Ddetail
-Dcmd=org.jboss.tools.tycho-plugins:target-platform-utils:mirror-target-to-repo
> [INFO] 'org.jboss.tools.tycho-plugins:target-platform-utils:mirror-target-to-repo' is a plugin goal (aka mojo).
> Mojo: 'target-platform-utils:mirror-target-to-repo'
> target-platform-utils:mirror-target-to-repo
>   Description: Mirrors a target file as a p2 repo. Suitable for
>     sharing/caching target/dependency sites.
>   Implementation: org.jboss.tools.tycho.targets.TargetToRepoMojo
>   Language: java
> 
>   Available parameters:
> 
>     includeSources
>       User property: mirror-target-to-repo.includeSources
>       (no description available)
> 
>     outputRepository
>       Expression: ${project.build.directory}/${project.artifactId}.target.repo
>       (no description available)
> 
>     sourceTargetArtifact
>       (no description available)
> 
>     sourceTargetFile
>       (no description available)

As you can see, the configuration element you are looking for is called
sourceTargetArtifact or sourceTargetFile (not targetFile).

Neither of these properties can be set on the command line (only
includeSources can, through the given "user property"), but if not set
they will default to the current artifact/project.

Thus,

  mvn
org.jboss.tools.tycho-plugins:target-platform-utils:mirror-target-to-repo -pl
:TARGET_ARTIFACT_ID

should do what you want and mirror the given eclipse-target-definition
project.

Hope this helps.

Andreas

-- 
Codetrails UG (haftungsbeschränkt)
The knowledge transfer company

Robert-Bosch-Str. 7, 64293 Darmstadt
Mobile: +49-170-811-3791
http://www.codetrails.com/

Managing Director: Dr. Marcel Bruch
Handelsregister: Darmstadt HRB 91940

[tycho-user] Could not determine git commit timestamp

$
0
0
Hi Everyone,

I'm running into an build problem with the jgit timestamp provider throwing the error below. I'm not sure why it's throwing this error but I can see in my git logs that there are past commits which contain the pom.xml it's mentioned. Any ideas?


Thanh


[ERROR] Failed to execute goal org.eclipse.tycho:tycho-packaging-plugin:0.19.0:build-qualifier (default-build-qualifier) on project org.eclipse.jst.j2ee.core.tests: Could not determine git commit timestamp: MavenProject: org.eclipse.webtools.javaee:org.eclipse.jst.j2ee.core.tests:1.1.401-SNAPSHOT @ /buildroot/webtools.releng.aggregator/webtools.javaee.tests/tests/org.eclipse.jst.j2ee.core.tests/pom.xml is not in git repository working tree /buildroot/webtools.releng.aggregator/.git/modules -> [Help 1]


Re: [tycho-user] Could not determine git commit timestamp

$
0
0
Strangely I managed to resolve this issue by deleting my entire submodule directory from the aggregator and re-initializing it.


Thanh

On 21/01/14 02:22 PM, Thanh Ha wrote:
Hi Everyone,

I'm running into an build problem with the jgit timestamp provider throwing the error below. I'm not sure why it's throwing this error but I can see in my git logs that there are past commits which contain the pom.xml it's mentioned. Any ideas?


Thanh


[ERROR] Failed to execute goal org.eclipse.tycho:tycho-packaging-plugin:0.19.0:build-qualifier (default-build-qualifier) on project org.eclipse.jst.j2ee.core.tests: Could not determine git commit timestamp: MavenProject: org.eclipse.webtools.javaee:org.eclipse.jst.j2ee.core.tests:1.1.401-SNAPSHOT @ /buildroot/webtools.releng.aggregator/webtools.javaee.tests/tests/org.eclipse.jst.j2ee.core.tests/pom.xml is not in git repository working tree /buildroot/webtools.releng.aggregator/.git/modules -> [Help 1]
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user




Re: [tycho-user] tycho-surefire and testng

$
0
0
I further apologize for forgetting the attachment.. Sheesh.  Not a good day.
________________________________________
From: Tracy, Benjamin J
Sent: Thursday, January 23, 2014 2:50 PM
To: Tycho user list
Subject: RE: [tycho-user] tycho-surefire and testng

I apologize.  Please find attached a tgz with everything you need to replicate what I'm seeing.   What you need to do is:

cd foobar-dependencies.bundle
mvn p2:site install
cd ../foobar-common.bundle
mvn install
cd ../foobar-common.bundle.tests
mvn install

When I do that last install on the test fragment, I see two problems.  One is that the tycho-surefire plugin gets a class not found error related to TestNG.  I'm less concerned about that.  I can skip that at least for now because we don't need the whole OSGi framework to run the tests I care about.

The real problem is that the maven-surefire-plugin that I'm trying to invoke in the test fragment pom never runs.  Even if I do mvn test directly it doesn't run.

Again, I'm sorry for the misunderstanding about what you were looking for.  Thanks for your help.

Ben
________________________________________
From: tycho-user-bounces@xxxxxxxxxxx [tycho-user-bounces@xxxxxxxxxxx] on behalf of Igor Fedorenko [igor@xxxxxxxxxxxxxx]
Sent: Thursday, January 23, 2014 2:15 PM
To: tycho-user@xxxxxxxxxxx
Subject: Re: [tycho-user] tycho-surefire and testng

"small complete standalone example" == a zip or tgz file that includes
pom.xml and all sources necessary to demonstrate the problem. I want to
be able to unpack the archive, run "mvn test" (or some other build phase
you specify) and see the problem for myself. I am not good at guessing
what other configuration elements you pom files have and what happens
when maven interprets those poms.

--
Regards,
Igor

On 1/23/2014, 14:09, Tracy, Benjamin J wrote:
> Oops I forgot to mention that what I see when I run with this is that the maven surefire never runs.
> ________________________________________
> From: Tracy, Benjamin J
> Sent: Thursday, January 23, 2014 2:08 PM
> To: Tycho user list
> Subject: RE: [tycho-user] tycho-surefire and testng
>
> OK here's a smaller example:
>
> I believe that the following snippet should cause the maven-surefire plugin to run at the test phase and the tycho surefire plugin to run later.  Am I right about that?
>
>          <pluginManagement>
>                  <plugins>
>                          <plugin>
>                                  <artifactId>maven-surefire-plugin</artifactId>
>                                  <version>2.16</version>
>                                  <executions>
>                                          <execution>
>                                                  <phase>test</phase>
>                                                  <goals>
>                                                          <goal>test</goal>
>                                                  </goals>
>                                          </execution>
>                                  </executions>
>                                  <dependencies>
>                                          <dependency>
>                                                  <groupId>org.apache.maven.surefire</groupId>
>                                                  <artifactId>surefire-testng</artifactId>
>                                                  <version>2.16</version>
>                                                  <scope>test</scope>
>                                          </dependency>
>                                  </dependencies>
>                                  <configuration>
>                                          <testSourceDirectory>src/</testSourceDirectory>
>                                          <testClassesDirectory>target/classes/</testClassesDirectory>
>                                  </configuration>
>                          </plugin>
>                          <plugin>
>                                  <groupId>org.eclipse.tycho</groupId>
>                                  <artifactId>tycho-surefire-plugin</artifactId>
>                                  <version>${tycho-version}</version>
>                                  <configuration>
>                                          <providerHint>junit47</providerHint>
>                                          <useSystemClassLoader>false</useSystemClassLoader>
>                                          <dependencies>
>                                                  <dependency>
>                                                          <type>eclipse-plugin</type>
>                                                          <artifactId>apm-common.bundle</artifactId>
>                                                          <version>0.0.0</version>
>                                                  </dependency>
>                                          </dependencies>
>
>                                  </configuration>
>                                  <executions>
>                                          <execution>
>                                                  <id>JUnitTest</id>
>                                                  <goals>
>                                                          <goal>test</goal>
>                                                  </goals>
>                                                  <phase>install</phase>
>                                          </execution>
>                                  </executions>
>                          </plugin>
>                  </plugins>
>          </pluginManagement>
>
> ________________________________________
> From: tycho-user-bounces@xxxxxxxxxxx [tycho-user-bounces@xxxxxxxxxxx] on behalf of Igor Fedorenko [igor@xxxxxxxxxxxxxx]
> Sent: Thursday, January 23, 2014 11:28 AM
> To: Tycho user list
> Subject: Re: [tycho-user] tycho-surefire and testng
>
> Please provide small complete standalone example I can "mvn test" and
> see the exact failure you get? Also explain what you believe should
> happen to make the error go away.
>
> --
> Regards,
> Igor
>
> On 1/23/2014, 10:12, Tracy, Benjamin J wrote:
>> Thanks for taking the time.  I've attached a few pom files:  the parent, the test fragment and the target platform pom.   It's not a tiny example, but it's still pretty general.
>>
>> Thanks in advance!
>> Ben
>>
>>
>> ________________________________________
>> From: tycho-user-bounces@xxxxxxxxxxx [tycho-user-bounces@xxxxxxxxxxx] on behalf of Igor Fedorenko [igor@xxxxxxxxxxxxxx]
>> Sent: Thursday, January 23, 2014 9:57 AM
>> To: tycho-user@xxxxxxxxxxx
>> Subject: Re: [tycho-user] tycho-surefire and testng
>>
>> Tycho is supposed to map OSGi dependencies back to pom.xml model, so at
>> least theoretically is should be possible to use "plain"
>> maven-surefire-plugin for Tycho projects. Whether this will work in
>> practice depends on your project structure and dependencies your project
>> uses. If you can provide a small standalone example that shows your
>> setup I may be able to provide more specific recommendation.
>>
>> --
>> Regards,
>> Igor
>>
>> On 1/23/2014, 9:48, Tracy, Benjamin J wrote:
>>>> Are you sure you get up to the correct lifecycle phase? Running mvn test
>>>> will not do, as the tycho surefire plugin hooks into the
>>>> integration-test phase by default:
>>>> http://www.eclipse.org/tycho/sitedocs/tycho-surefire/tycho-surefire-plugin/test-mojo.html
>>>
>>> Thanks for your quick response!
>>>
>>> I noticed that the tycho-surefire runs at integration test.  I had given
>>> up on that plugin because there was no provider hint for TestNG (which
>>> led me to believe what I had read that TestNG was not supported) and
>>> when I give the JUnit 4.7 provider hint, I get an exception
>>> (ClassNotFound on OsgiEnabledJUintCoreProvider).  So I had added
>>> "<skip>true</skip>" to the tycho-surefire so that I could try to get
>>> TestNG working the regular way and that isn't working for me either.
>>>
>>> What am I supposed to do to get TestNG to work?
>>>
>>> Ben
>>>
>>>
>>> _______________________________________________
>>> tycho-user mailing list
>>> tycho-user@xxxxxxxxxxx
>>> https://dev.eclipse.org/mailman/listinfo/tycho-user
>>>
>> _______________________________________________
>> tycho-user mailing list
>> tycho-user@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/tycho-user
>>
>>
>>
>> _______________________________________________
>> tycho-user mailing list
>> tycho-user@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/tycho-user
>>
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/tycho-user
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/tycho-user
>
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user

Attachment: test_case.tgz
Description: test_case.tgz

Re: [tycho-user] rootFolder not working with Tycho 0.19 ?

$
0
0
Beyond the project in tycho-its mentioned by Jan, I have also derived a smallish project where I can reproduce the problem : https://github.com/laurentpetit/rootFolder-issue

Please note that I know it should work: I have followed where rootFolder / getRootFolder, etc. is used in the source code of the director plugin. I have not been able to re-build tycho myself to do more tests.

Cheers,

-- 
Laurent



2014/1/23 Laurent PETIT <laurent.petit@xxxxxxxxx>
sorry, but I have downloaded tycho, gone to the tycho-its/projects/TYCHO188P2EnabledRcp folder, fixed the tycho version to 0.19.0, run mvn clean verify on it, and I don't see any zip artifact with the right rootFolder.


2014/1/20 Sievers, Jan <jan.sievers@xxxxxxx>

the IT covering the scenario is successful

https://hudson.eclipse.org/tycho/job/tycho-its-linux-nightly/lastCompletedBuild/testReport/org.eclipse.tycho.test.TYCHO188P2EnabledRcp/Tycho188P2EnabledRcpTest/

 

Take it and go from there

 

Jan

 

From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Laurent PETIT
Sent: Montag, 20. Januar 2014 09:52


To: Tycho user list
Subject: Re: [tycho-user] rootFolder not working with Tycho 0.19 ?

 

 

2014/1/20 Sievers, Jan <jan.sievers@xxxxxxx>

 

Thanks for the link, but I'm unable to interpret it.

Does that test the usage of the rootFolder attribute set through a real pom.xml file, as I would do as a regular user, or does that only prove that no tests fail (which may or may not help me at all, I don't know what the tests take as inputs and produce as outputs).

Regards,

--
Laurent

 

 

 

 

From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Laurent PETIT
Sent: Sonntag, 19. Januar 2014 11:57
To: Tycho user list
Subject: Re: [tycho-user] rootFolder not working with Tycho 0.19 ?

 

Hello,

 

Am I the only one trying to use rootFolder attribute ? I'm interested in both success / failure feedbacks with this feature.

 

Thanks in advance,

 

-- 

Laurent

 

 

2014/1/17 Laurent PETIT <laurent.petit@xxxxxxxxx>

Hello,

 

I'm using tycho 0.19.

 

I have configured rootFolder / rootFolders as per http://wiki.eclipse.org/Tycho/Packaging_Types#Creating_Product_Zip_Files

 

You can check my product's pom.xml here:

 

when I launch mvn clean verify in my parent pom, wait for the product to be built, and then check it, there's still no root folder, even though I'm defining one.

 

Is there a problem with this with tycho 0.19 ?

 

Cheers,

 

-- 

Laurent

 


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

 


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




Re: [tycho-user] Creating a Product and then updating via Update Site

$
0
0
Can you also comment on Bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=361722 that you also like to have that functionality for your Eclipse IDE incarnation? I think it is important to indicate that in the Bugreports directly, so that it is not lost in the flow of information.

Best regards, Lars


2014/1/23 Laurent PETIT <laurent.petit@xxxxxxxxx>


Le jeudi 23 janvier 2014, Lars Vogel <lars.vogel@xxxxxxxxx> a écrit :

Hi Laurent,

I'm not sure how the Tycho committer are planning to solve this. I personally hope for a Tycho flag which tells Tycho to install all features as root level features. I think that is also what EPP would need, but also I'm not sure here.

Best regards, Lars

What you describe sounds great :) 


2014/1/23 Laurent PETIT <laurent.petit@xxxxxxxxx>
Thanks for the information, Lars !

Do I understand right that when the bug 361722 is solved in Tycho, this will be a way to automate what is described here: http://aniefer.blogspot.fr/2009/07/composing-and-updating-custom-eclipse.html ?

If so, then it's great. I have currently made appropriate changes to my build to do what is described in the blog post. But since it leads to lots of configuration in my product's pom.xml, as well as duplications of information (duplicating what's in the target platform for the root features repositories, for instance), I have currently only done that for 1 feature, my own plugin's feature. Far from ideal, then, because lots (if not all) of the other features included ( Eclipse default features, Eclipse colortheme, EGit, m2e, etc., etc. ) could use the same treatment.

Cheers,

-- 
Laurent





2014/1/23 Lars Vogel <lars.vogel@xxxxxxxxx>
Hi Laurent,

AFAIK you want the feature what is hopefully delivered with the next Tycho release, install root level features into product install. 


Best regards, Lars


2014/1/18 Laurent PETIT <laurent.petit@xxxxxxxxx>
Hi Jeff,


2014/1/18 Jeff MAURY <jeffmaury@xxxxxxxxxxxxx>
Laurent,

is it still relevant ? I thought you've fixed it ?

Actually, I have since thursday been able to do a lot of trials and errors, thanks to the links, thanks to you ...

I haven't had the time to inform you, but I haven't been able to make the "intermediate product feature" solution work. 
Maybe I have misunderstood some explanation:

- I have created a ccw.product.feature feature, and now my ccw product includes only this feature in ccw.product
- I have a new tycho module for ccw.product.feature, and it basically declares all the features which were included directly in the product (Rcp, Application, JDT, CCW, EclipsecolorTheme, EGit, ...)

The Tycho builds a product, but I'm still unable to update eg CCW via the update site.

You were talking about a possible remaining issue with "root feature(s)" with this solution, I didn't at the time understand what you meant, maybe it's the missing piece ... ?
 

Jeff


On Thu, Jan 16, 2014 at 10:49 PM, Laurent PETIT <laurent.petit@xxxxxxxxx> wrote:
Hi Paul, 

So thanks to you and the link, I've been able to fix my problem. I had to remove the ccw feature definition from the product features list, and instead add a requires.x.name to my product's ccw.p2.inf file.

<

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


Re: [tycho-user] Creating a Product and then updating via Update Site

$
0
0
done


2014/1/23 Lars Vogel <lars.vogel@xxxxxxxxx>
Can you also comment on Bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=361722 that you also like to have that functionality for your Eclipse IDE incarnation? I think it is important to indicate that in the Bugreports directly, so that it is not lost in the flow of information.

Best regards, Lars


2014/1/23 Laurent PETIT <laurent.petit@xxxxxxxxx>


Le jeudi 23 janvier 2014, Lars Vogel <lars.vogel@xxxxxxxxx> a écrit :

Hi Laurent,

I'm not sure how the Tycho committer are planning to solve this. I personally hope for a Tycho flag which tells Tycho to install all features as root level features. I think that is also what EPP would need, but also I'm not sure here.

Best regards, Lars

What you describe sounds great :) 


2014/1/23 Laurent PETIT <laurent.petit@xxxxxxxxx>
Thanks for the information, Lars !

Do I understand right that when the bug 361722 is solved in Tycho, this will be a way to automate what is described here: http://aniefer.blogspot.fr/2009/07/composing-and-updating-custom-eclipse.html ?

If so, then it's great. I have currently made appropriate changes to my build to do what is described in the blog post. But since it leads to lots of configuration in my product's pom.xml, as well as duplications of information (duplicating what's in the target platform for the root features repositories, for instance), I have currently only done that for 1 feature, my own plugin's feature. Far from ideal, then, because lots (if not all) of the other features included ( Eclipse default features, Eclipse colortheme, EGit, m2e, etc., etc. ) could use the same treatment.

Cheers,

-- 
Laurent





2014/1/23 Lars Vogel <lars.vogel@xxxxxxxxx>
Hi Laurent,

AFAIK you want the feature what is hopefully delivered with the next Tycho release, install root level features into product install. 


Best regards, Lars


2014/1/18 Laurent PETIT <laurent.petit@xxxxxxxxx>
Hi Jeff,


2014/1/18 Jeff MAURY <jeffmaury@xxxxxxxxxxxxx>
Laurent,

is it still relevant ? I thought you've fixed it ?

Actually, I have since thursday been able to do a lot of trials and errors, thanks to the links, thanks to you ...

I haven't had the time to inform you, but I haven't been able to make the "intermediate product feature" solution work. 
Maybe I have misunderstood some explanation:

- I have created a ccw.product.feature feature, and now my ccw product includes only this feature in ccw.product
- I have a new tycho module for ccw.product.feature, and it basically declares all the features which were included directly in the product (Rcp, Application, JDT, CCW, EclipsecolorTheme, EGit, ...)

The Tycho builds a product, but I'm still unable to update eg CCW via the update site.

You were talking about a possible remaining issue with "root feature(s)" with this solution, I didn't at the time understand what you meant, maybe it's the missing piece ... ?
 

Jeff


On Thu, Jan 16, 2014 at 10:49 PM, Laurent PETIT <laurent.petit@xxxxxxxxx> wrote:
Hi Paul, 

So thanks to you and the link, I've been able to fix my problem. I had to remove the ccw feature definition from the product features list, and instead add a requires.x.name to my product's ccw.p2.inf file.

<

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



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


Re: [tycho-user] tycho-surefire and testng

$
0
0
maven-surefire-plugin must be listed under build/plugins pom.xml
section. Attached is a fixed pom.xml file, which does run
maven-surefire-plugin. Tests fail with classnotfound exception but I
assume the project dependencies are not fully configured.

--
Regards,
Igor

On 1/23/2014, 14:51, Tracy, Benjamin J wrote:
I further apologize for forgetting the attachment.. Sheesh.  Not a good day.
________________________________________
From: Tracy, Benjamin J
Sent: Thursday, January 23, 2014 2:50 PM
To: Tycho user list
Subject: RE: [tycho-user] tycho-surefire and testng

I apologize.  Please find attached a tgz with everything you need to replicate what I'm seeing.   What you need to do is:

cd foobar-dependencies.bundle
mvn p2:site install
cd ../foobar-common.bundle
mvn install
cd ../foobar-common.bundle.tests
mvn install

When I do that last install on the test fragment, I see two problems.  One is that the tycho-surefire plugin gets a class not found error related to TestNG.  I'm less concerned about that.  I can skip that at least for now because we don't need the whole OSGi framework to run the tests I care about.

The real problem is that the maven-surefire-plugin that I'm trying to invoke in the test fragment pom never runs.  Even if I do mvn test directly it doesn't run.

Again, I'm sorry for the misunderstanding about what you were looking for.  Thanks for your help.

Ben
________________________________________
From: tycho-user-bounces@xxxxxxxxxxx [tycho-user-bounces@xxxxxxxxxxx] on behalf of Igor Fedorenko [igor@xxxxxxxxxxxxxx]
Sent: Thursday, January 23, 2014 2:15 PM
To: tycho-user@xxxxxxxxxxx
Subject: Re: [tycho-user] tycho-surefire and testng

"small complete standalone example" == a zip or tgz file that includes
pom.xml and all sources necessary to demonstrate the problem. I want to
be able to unpack the archive, run "mvn test" (or some other build phase
you specify) and see the problem for myself. I am not good at guessing
what other configuration elements you pom files have and what happens
when maven interprets those poms.

--
Regards,
Igor

On 1/23/2014, 14:09, Tracy, Benjamin J wrote:
Oops I forgot to mention that what I see when I run with this is that the maven surefire never runs.
________________________________________
From: Tracy, Benjamin J
Sent: Thursday, January 23, 2014 2:08 PM
To: Tycho user list
Subject: RE: [tycho-user] tycho-surefire and testng

OK here's a smaller example:

I believe that the following snippet should cause the maven-surefire plugin to run at the test phase and the tycho surefire plugin to run later.  Am I right about that?

          <pluginManagement>
                  <plugins>
                          <plugin>
                                  <artifactId>maven-surefire-plugin</artifactId>
                                  <version>2.16</version>
                                  <executions>
                                          <execution>
                                                  <phase>test</phase>
                                                  <goals>
                                                          <goal>test</goal>
                                                  </goals>
                                          </execution>
                                  </executions>
                                  <dependencies>
                                          <dependency>
                                                  <groupId>org.apache.maven.surefire</groupId>
                                                  <artifactId>surefire-testng</artifactId>
                                                  <version>2.16</version>
                                                  <scope>test</scope>
                                          </dependency>
                                  </dependencies>
                                  <configuration>
                                          <testSourceDirectory>src/</testSourceDirectory>
                                          <testClassesDirectory>target/classes/</testClassesDirectory>
                                  </configuration>
                          </plugin>
                          <plugin>
                                  <groupId>org.eclipse.tycho</groupId>
                                  <artifactId>tycho-surefire-plugin</artifactId>
                                  <version>${tycho-version}</version>
                                  <configuration>
                                          <providerHint>junit47</providerHint>
                                          <useSystemClassLoader>false</useSystemClassLoader>
                                          <dependencies>
                                                  <dependency>
                                                          <type>eclipse-plugin</type>
                                                          <artifactId>apm-common.bundle</artifactId>
                                                          <version>0.0.0</version>
                                                  </dependency>
                                          </dependencies>

                                  </configuration>
                                  <executions>
                                          <execution>
                                                  <id>JUnitTest</id>
                                                  <goals>
                                                          <goal>test</goal>
                                                  </goals>
                                                  <phase>install</phase>
                                          </execution>
                                  </executions>
                          </plugin>
                  </plugins>
          </pluginManagement>

________________________________________
From: tycho-user-bounces@xxxxxxxxxxx [tycho-user-bounces@xxxxxxxxxxx] on behalf of Igor Fedorenko [igor@xxxxxxxxxxxxxx]
Sent: Thursday, January 23, 2014 11:28 AM
To: Tycho user list
Subject: Re: [tycho-user] tycho-surefire and testng

Please provide small complete standalone example I can "mvn test" and
see the exact failure you get? Also explain what you believe should
happen to make the error go away.

--
Regards,
Igor

On 1/23/2014, 10:12, Tracy, Benjamin J wrote:
Thanks for taking the time.  I've attached a few pom files:  the parent, the test fragment and the target platform pom.   It's not a tiny example, but it's still pretty general.

Thanks in advance!
Ben


________________________________________ From: tycho-user-bounces@xxxxxxxxxxx [tycho-user-bounces@xxxxxxxxxxx] on behalf of Igor Fedorenko [igor@xxxxxxxxxxxxxx] Sent: Thursday, January 23, 2014 9:57 AM To: tycho-user@xxxxxxxxxxx Subject: Re: [tycho-user] tycho-surefire and testng

Tycho is supposed to map OSGi dependencies back to pom.xml model, so at
least theoretically is should be possible to use "plain"
maven-surefire-plugin for Tycho projects. Whether this will work in
practice depends on your project structure and dependencies your project
uses. If you can provide a small standalone example that shows your
setup I may be able to provide more specific recommendation.

--
Regards,
Igor

On 1/23/2014, 9:48, Tracy, Benjamin J wrote:
Are you sure you get up to the correct lifecycle phase? Running mvn test
will not do, as the tycho surefire plugin hooks into the
integration-test phase by default:
http://www.eclipse.org/tycho/sitedocs/tycho-surefire/tycho-surefire-plugin/test-mojo.html

Thanks for your quick response!

I noticed that the tycho-surefire runs at integration test.  I had given
up on that plugin because there was no provider hint for TestNG (which
led me to believe what I had read that TestNG was not supported) and
when I give the JUnit 4.7 provider hint, I get an exception
(ClassNotFound on OsgiEnabledJUintCoreProvider).  So I had added
"<skip>true</skip>" to the tycho-surefire so that I could try to get
TestNG working the regular way and that isn't working for me either.

What am I supposed to do to get TestNG to work?

Ben


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

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



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

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

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



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

<project xmlns="http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd&quot;>
	<modelVersion>4.0.0</modelVersion>
	<artifactId>foobar-common.bundle.tests</artifactId>
	<packaging>eclipse-test-plugin</packaging>
	<parent>
		<groupId>org.foobar</groupId>
		<artifactId>foobar-parent.bundle</artifactId>
		<version>1.0.0-SNAPSHOT</version>
		<relativePath>../foobar-parent.bundle</relativePath>
	</parent>
	<build>
		<plugins>
			<plugin>
				<artifactId>maven-surefire-plugin</artifactId>
				<version>2.16</version>
				<executions>
					<execution>
						<phase>test</phase>
						<goals>
							<goal>test</goal>
						</goals>
					</execution>
				</executions>
				<dependencies>
					<dependency>
						<groupId>org.apache.maven.surefire</groupId>
						<artifactId>surefire-testng</artifactId>
						<version>2.16</version>
					</dependency>
				</dependencies>
				<configuration>
					<testSourceDirectory>src/</testSourceDirectory>
					<testClassesDirectory>target/classes/</testClassesDirectory>
				</configuration>
			</plugin>
		</plugins>
	<pluginManagement>
		<plugins>
 			<plugin>
				<groupId>org.eclipse.tycho</groupId>
				<artifactId>tycho-surefire-plugin</artifactId>
				<version>${tycho-version}</version>
				<configuration>
					<providerHint>junit47</providerHint>
					<useSystemClassLoader>false</useSystemClassLoader>
					<dependencies>
						<dependency>
							<type>eclipse-plugin</type>
							<artifactId>foobar-common.bundle</artifactId>
							<version>0.0.0</version>
						</dependency>
					</dependencies>

				</configuration>
				<executions>
					<execution>
						<id>JUnitTest</id>
						<goals>
							<goal>test</goal>
						</goals>
						<phase>install</phase>
						<configuration>

						</configuration>
					</execution>
				</executions>
			</plugin>
 		</plugins>
	</pluginManagement>
</build> 
</project>

Re: [tycho-user] rootFolder not working with Tycho 0.19 ?

$
0
0
most probably the problem with

https://github.com/laurentpetit/rootFolder-issue/blob/master/product/pom.xml 

is that you are configuring the rootFolder inside the <execution> element of the archive goal instead of on plugin level.
That's too late as the root folder is created during product installation, not when archiving it.

As I said earlier, just look at the working example 

http://git.eclipse.org/c/tycho/org.eclipse.tycho.git/tree/tycho-its/projects/TYCHO188P2EnabledRcp/eclipse-repository/pom.xml

and spot the differences.

Jan


From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Laurent PETIT
Sent: Donnerstag, 23. Januar 2014 21:06
To: Tycho user list
Subject: Re: [tycho-user] rootFolder not working with Tycho 0.19 ?

Beyond the project in tycho-its mentioned by Jan, I have also derived a smallish project where I can reproduce the problem : https://github.com/laurentpetit/rootFolder-issue

Please note that I know it should work: I have followed where rootFolder / getRootFolder, etc. is used in the source code of the director plugin. I have not been able to re-build tycho myself to do more tests.

Cheers,

-- 
Laurent


2014/1/23 Laurent PETIT <laurent.petit@xxxxxxxxx>
sorry, but I have downloaded tycho, gone to the tycho-its/projects/TYCHO188P2EnabledRcp folder, fixed the tycho version to 0.19.0, run mvn clean verify on it, and I don't see any zip artifact with the right rootFolder.

2014/1/20 Sievers, Jan <jan.sievers@xxxxxxx>

the IT covering the scenario is successful
https://hudson.eclipse.org/tycho/job/tycho-its-linux-nightly/lastCompletedBuild/testReport/org.eclipse.tycho.test.TYCHO188P2EnabledRcp/Tycho188P2EnabledRcpTest/ 
 
Take it and go from there
 
Jan
 
From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Laurent PETIT
Sent: Montag, 20. Januar 2014 09:52

To: Tycho user list
Subject: Re: [tycho-user] rootFolder not working with Tycho 0.19 ?
 
 
2014/1/20 Sievers, Jan <jan.sievers@xxxxxxx>
http://git.eclipse.org/c/tycho/org.eclipse.tycho.git/tree/tycho-its/src/test/java/org/eclipse/tycho/test/TYCHO188P2EnabledRcp/Tycho188P2EnabledRcpTest.java#n133
 
Thanks for the link, but I'm unable to interpret it.
Does that test the usage of the rootFolder attribute set through a real pom.xml file, as I would do as a regular user, or does that only prove that no tests fail (which may or may not help me at all, I don't know what the tests take as inputs and produce as outputs).
Regards,

-- 
Laurent
 
 
 
 
From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Laurent PETIT
Sent: Sonntag, 19. Januar 2014 11:57
To: Tycho user list
Subject: Re: [tycho-user] rootFolder not working with Tycho 0.19 ?
 
Hello,
 
Am I the only one trying to use rootFolder attribute ? I'm interested in both success / failure feedbacks with this feature.
 
Thanks in advance,
 
-- 
Laurent
 
 
2014/1/17 Laurent PETIT <laurent.petit@xxxxxxxxx>
Hello,
 
I'm using tycho 0.19.
 
I have configured rootFolder / rootFolders as per http://wiki.eclipse.org/Tycho/Packaging_Types#Creating_Product_Zip_Files
 
You can check my product's pom.xml here:
https://github.com/laurentpetit/ccw/blob/master/ccw.product/pom.xml#L370
 
when I launch mvn clean verify in my parent pom, wait for the product to be built, and then check it, there's still no root folder, even though I'm defining one.
 
Is there a problem with this with tycho 0.19 ?
 
Cheers,
 
-- 
Laurent
 

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

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



Re: [tycho-user] rootFolder not working with Tycho 0.19 ?

$
0
0
OK Jan, I will do the test again.

But I repeat that I have grapped the TYCHO188P2EnabledRcp project, built it, and there was no root folder either.


2014/1/24 Sievers, Jan <jan.sievers@xxxxxxx>
most probably the problem with

https://github.com/laurentpetit/rootFolder-issue/blob/master/product/pom.xml

is that you are configuring the rootFolder inside the <execution> element of the archive goal instead of on plugin level.
That's too late as the root folder is created during product installation, not when archiving it.

As I said earlier, just look at the working example

http://git.eclipse.org/c/tycho/org.eclipse.tycho.git/tree/tycho-its/projects/TYCHO188P2EnabledRcp/eclipse-repository/pom.xml

and spot the differences.

Jan


From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Laurent PETIT
Sent: Donnerstag, 23. Januar 2014 21:06
To: Tycho user list
Subject: Re: [tycho-user] rootFolder not working with Tycho 0.19 ?

Beyond the project in tycho-its mentioned by Jan, I have also derived a smallish project where I can reproduce the problem : https://github.com/laurentpetit/rootFolder-issue

Please note that I know it should work: I have followed where rootFolder / getRootFolder, etc. is used in the source code of the director plugin. I have not been able to re-build tycho myself to do more tests.

Cheers,

-- 
Laurent


2014/1/23 Laurent PETIT <laurent.petit@xxxxxxxxx>
sorry, but I have downloaded tycho, gone to the tycho-its/projects/TYCHO188P2EnabledRcp folder, fixed the tycho version to 0.19.0, run mvn clean verify on it, and I don't see any zip artifact with the right rootFolder.

2014/1/20 Sievers, Jan <jan.sievers@xxxxxxx>

the IT covering the scenario is successful
https://hudson.eclipse.org/tycho/job/tycho-its-linux-nightly/lastCompletedBuild/testReport/org.eclipse.tycho.test.TYCHO188P2EnabledRcp/Tycho188P2EnabledRcpTest/
 
Take it and go from there
 
Jan
 
From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Laurent PETIT
Sent: Montag, 20. Januar 2014 09:52

To: Tycho user list
Subject: Re: [tycho-user] rootFolder not working with Tycho 0.19 ?
 
 
2014/1/20 Sievers, Jan <jan.sievers@xxxxxxx>
http://git.eclipse.org/c/tycho/org.eclipse.tycho.git/tree/tycho-its/src/test/java/org/eclipse/tycho/test/TYCHO188P2EnabledRcp/Tycho188P2EnabledRcpTest.java#n133
 
Thanks for the link, but I'm unable to interpret it.
Does that test the usage of the rootFolder attribute set through a real pom.xml file, as I would do as a regular user, or does that only prove that no tests fail (which may or may not help me at all, I don't know what the tests take as inputs and produce as outputs).
Regards,

--
Laurent
 
 
 
 
From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Laurent PETIT
Sent: Sonntag, 19. Januar 2014 11:57
To: Tycho user list
Subject: Re: [tycho-user] rootFolder not working with Tycho 0.19 ?
 
Hello,
 
Am I the only one trying to use rootFolder attribute ? I'm interested in both success / failure feedbacks with this feature.
 
Thanks in advance,
 
-- 
Laurent
 
 
2014/1/17 Laurent PETIT <laurent.petit@xxxxxxxxx>
Hello,
 
I'm using tycho 0.19.
 
I have configured rootFolder / rootFolders as per http://wiki.eclipse.org/Tycho/Packaging_Types#Creating_Product_Zip_Files
 
You can check my product's pom.xml here:
https://github.com/laurentpetit/ccw/blob/master/ccw.product/pom.xml#L370
 
when I launch mvn clean verify in my parent pom, wait for the product to be built, and then check it, there's still no root folder, even though I'm defining one.
 
Is there a problem with this with tycho 0.19 ?
 
Cheers,
 
-- 
Laurent
 

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

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


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

Viewing all 4647 articles
Browse latest View live