Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Building PDE Projects using Tycho automatically

Piyush,

First, I'm assuming you have m2e installed. If so, you can run from your build within eclipse by selecting the parent (or aggregator project - see the tycho-demo), and selecting "run as..." from the right-mouse menu. Choose "Maven build" (if the ide recognizes it as a maven project - the project has been converted to maven, or you've select the pom you want to run).

-Eric

On 20/01/2012 4:06 AM, PIYUSH BAJAJ wrote:
Hi Eric,

Thanks for your reply, i have installed "Tycho Project Configurator" but did not find any information as how to use this plugin for build.

I have a simple plugin project in my workspace and want to build it.

It says : “Maven support for building Eclipse and OSGI artifacts on command line”


Do we have to run in command line?
Can you please help me in this?

Thanks in advance,
Piyush


On Thu, Jan 19, 2012 at 7:16 PM, Eric Gwin <eric.gwin@xxxxxxxxxx> wrote:
Piyush,

You need to install the "tycho project configurators".  I can never remember the exact procedure, but a quick search on the web for "install tycho configurators" looks like it should get you what you need.

-Eric


On 19/01/2012 12:34 AM, PIYUSH BAJAJ wrote:
Hi Igor,

Thanks for your reply.

We have the pom.xml created via script, but i want to eliminate the step where <build> tag is added to pom.xml manually.
If this is not done getting the error as - ( [ERROR] Unknown packaging: eclipse-plugin @ line 8, column 14 ) while doing mvn install.

Do you know any way i can do this automatically or in a different way.

Regarding your other point about p2 repositories, can you please let me know how the command will look like? I don't have much background.

Best Regards,
Piyush


On Wed, Jan 18, 2012 at 9:27 PM, Igor Fedorenko <igor@xxxxxxxxxxxxxx> wrote:
Couple of comments

* Regardless of how pom.xml was created, i.e. manually or generated via
script, pom.xml file is expected to be part of project source tree. This
will eliminate any manual steps during actual project build.

* -Dtycho.targetPlatform is deprecated and strongly discouraged. Use
remote p2 repositories to resolve project dependencies.

--
Regards,
Igor

Check in pom.xml


On 12-01-18 7:42 AM, PIYUSH BAJAJ wrote:

Hi Experts,

I have a use case in which a plug-in project (PDE) needs to be build
using maven.

I am following these steps:

-------------------------------------------------------------------------------------------------------
1.Created a simple plug-in project

2.Ran following command to generate pom.xml :

mvn org.sonatype.tycho:maven-tycho-plugin:generate-poms
-DgroupId=tychodemo.grp
-Dtycho.targetPlatform=C:/Work/IDEs/eclipse-jpaas-indogo-sr1-win64/

Build success. Pom created using the above command.

3.Ran following command for installation:

mvn clean install

Build Failed, [ERROR] Unknown packaging: eclipse-plugin @ line 8, column
14 : Added Tycho related build in pom.xml (manually)
This manual add was required since eclipse-plugin is not known to maven,
and tycho being an extension of maven knows about it.

<properties>
<tycho-version>0.13.0</tycho-version>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-maven-plugin</artifactId>
<version>${tycho-version}</version>
<extensions>true</extensions>
</plugin>
</plugins>
</build>

Using reference : http://wiki.eclipse.org/Tycho/Reference_Card

4.Ran following command :

mvn clean install
-Dtycho.targetPlatform=C:/Work/IDEs/eclipse-jpaas-indogo-sr1-win64/

Build Success.

-------------------------------------------------------------------------------------------------------

Now the build is done, is there a possibility I can eliminate the manual
step of adding tycho related tags in
pom.xml as in step 3 above, and the complete build is achieved by just
commands?

Please let me know if you need more information.

Any help is appreciated.

Thanks & Regards,
Piyush



_______________________________________________
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

Back to the top