Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » ScoutBoot-Task: How do I start from Eclipse IDE
ScoutBoot-Task: How do I start from Eclipse IDE [message #1759451] Tue, 11 April 2017 10:27 Go to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1243
Registered: October 2011
Senior Member
I wanted to test the Eclipse Scout and SpringBoot integration. I have imported both repositories in my workspace (Eclipse for Scout developers - Oxygen M6 Version)

https://github.com/BSI-Business-Systems-Integration-AG/ScoutBoot
https://github.com/BSI-Business-Systems-Integration-AG/ScoutBoot-Tasks

Everything seems to be OK and there are no compile errors in the workspace. But how do I start the application from the IDE?
Re: ScoutBoot-Task: How do I start from Eclipse IDE [message #1759453 is a reply to message #1759451] Tue, 11 April 2017 19:20 Go to previous messageGo to next message
Matthias Zimmermann is currently offline Matthias ZimmermannFriend
Messages: 202
Registered: June 2015
Senior Member
(1) Try running class TaskApplication [1] using the context menu "Run as ... -> Java Application"
(2) After startup the application should be available under localhost:8080
(3) login with user 'root' and password 'eclipse'

[1] https://github.com/BSI-Business-Systems-Integration-AG/ScoutBoot-Tasks/blob/7.0.x/standalone/src/main/java/org/eclipse/scout/boot/tasks/standalone/TasksApplication.java
Re: ScoutBoot-Task: How do I start from Eclipse IDE [message #1759472 is a reply to message #1759453] Wed, 12 April 2017 04:55 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1243
Registered: October 2011
Senior Member
Thank you. This is the information I have missed.
I had some trouble with the Eclipse Metada files, but when it was fixed, the application was easy to start and to use.
Re: ScoutBoot-Task: How do I start from Eclipse IDE [message #1759473 is a reply to message #1759451] Wed, 12 April 2017 05:11 Go to previous messageGo to next message
Peter Pfeifer is currently offline Peter PfeiferFriend
Messages: 189
Registered: November 2014
Senior Member

Hi there,

I did try the same. But I didn't manage to import the projects correctly I guess, since the structure in my Package Explorer view doesn't not look like, if these projects are registered as Java/Maven/Scout projects:

index.php/fa/29027/0/

First I tried to import it with:

index.php/fa/29028/0/

Then it says, that there are no projects found.

In my next try it did this:

index.php/fa/29029/0/

There I chose the root directory "ScoutBoot-Tasks" and imported everything, which then led me to my project layout above.

Furthermore I always get the error message
Project build error: Non-resolvable parent POM for org.eclipse.scout.boot.tasks:tasks:0.1.0-SNAPSHOT: Could not find artifact org.eclipse.scout.boot:scout-boot:pom:7.0.0-SNAPSHOT 
 and 'parent.relativePath' points at wrong local POM


What did I do wrong?

Thanks,
Peter
  • Attachment: scout01.png
    (Size: 153.28KB, Downloaded 189 times)
  • Attachment: scout02.png
    (Size: 38.00KB, Downloaded 184 times)
  • Attachment: scout03.png
    (Size: 37.12KB, Downloaded 188 times)
Re: ScoutBoot-Task: How do I start from Eclipse IDE [message #1759534 is a reply to message #1759473] Wed, 12 April 2017 15:34 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1243
Registered: October 2011
Senior Member
Yes this is exactly what I meant with "I had to set and modify the Eclipse metadata manually". I think that the Eclipse Importer is somehow broken with this project. I had to modify the ".project" and some of the ".classpath" manually. I have also added some ressouces filter to avoid duplicate display of the subfolders that are also projects.

I will try to push all the metadata you need in as a commit (in the main repository or on a fork). Probably tomorrow.
Re: ScoutBoot-Task: How do I start from Eclipse IDE [message #1759559 is a reply to message #1759534] Wed, 12 April 2017 22:02 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1243
Registered: October 2011
Senior Member
Have a look at the files added with theses Pull Requests:
* https://github.com/BSI-Business-Systems-Integration-AG/ScoutBoot/pull/2
* https://github.com/BSI-Business-Systems-Integration-AG/ScoutBoot-Tasks/pull/2

I would be great if you could test if this also works for you.
Of course this is a minimal set of files. Java Prefs (formatter...) should also be added.

Personally I am convinced that the Eclipse Metadata Files should be pushed to the repository. And I am not the only one.
* How to provide a specific nature to every project
* The fight over committing IDE meta files: misconceptions, misunderstandings, and solutions (slides, video)
Re: ScoutBoot-Task: How do I start from Eclipse IDE [message #1760188 is a reply to message #1759559] Mon, 24 April 2017 12:51 Go to previous messageGo to next message
Peter Pfeifer is currently offline Peter PfeiferFriend
Messages: 189
Registered: November 2014
Senior Member

HI Jeremie,

sorry but I didn't see any files... Or do I have to clone a another branch?

Peter
Re: ScoutBoot-Task: How do I start from Eclipse IDE [message #1760207 is a reply to message #1760188] Mon, 24 April 2017 14:35 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1243
Registered: October 2011
Senior Member
Yes, the pull request is not merged. The Branch is on my fork:
https://github.com/jmini/ScoutBoot/tree/eclipse-metadata
https://github.com/jmini/ScoutBoot-Tasks/tree/eclipse-metadata
Re: ScoutBoot-Task: How do I start from Eclipse IDE [message #1760224 is a reply to message #1760207] Mon, 24 April 2017 18:28 Go to previous messageGo to next message
Peter Pfeifer is currently offline Peter PfeiferFriend
Messages: 189
Registered: November 2014
Senior Member

Hi.
Ok. Now it works. Now I have got a lot of questions Smile)

They will come later when I understand, whats going on in my workspace... Or perhaps I don't understand it...

But there is one question though: Will there be something like a new Scout/Boot Project Wizard with the final Oxygen release, which helps setting up such a project?

Thx

Peter
Re: ScoutBoot-Task: How do I start from Eclipse IDE [message #1760604 is a reply to message #1760224] Fri, 28 April 2017 18:55 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1243
Registered: October 2011
Senior Member
Peter Pfeifer wrote on Mon, 24 April 2017 20:28
But there is one question though: Will there be something like a new Scout/Boot Project Wizard with the final Oxygen release, which helps setting up such a project?


I do not think that this is in the pipeline yet. The SpringBoot integration is experimental and at early stage.

I like the idea. I hope it can be added to the backlog.
Re: ScoutBoot-Task: How do I start from Eclipse IDE [message #1760735 is a reply to message #1760604] Tue, 02 May 2017 13:18 Go to previous messageGo to next message
Peter Pfeifer is currently offline Peter PfeiferFriend
Messages: 189
Registered: November 2014
Senior Member

Hi,
Jeremie Bresson wrote on Fri, 28 April 2017 18:55

I like the idea. I hope it can be added to the backlog.


I like the idea very much too...

Creating business applications would be so simple and sophisticated then... Using Scout for the frontend gives a powerful, neat, flexible and responsive UI and on the backend you can use SpringBoot to concentrate on just the business logic without producing too much boilerplate code.

That sounds like a dream to me.

Peter

[Updated on: Tue, 02 May 2017 13:19]

Report message to a moderator

Re: ScoutBoot-Task: How do I start from Eclipse IDE [message #1764117 is a reply to message #1760735] Thu, 25 May 2017 07:26 Go to previous messageGo to next message
Peter Pfeifer is currently offline Peter PfeiferFriend
Messages: 189
Registered: November 2014
Senior Member

Hi there,

I just try to follow the instruactions on https://github.com/BSI-Business-Systems-Integration-AG/ScoutBoot to generate a Scout-Spring Boot Project:
mvn archetype:generate \   
-DarchetypeGroupId=org.eclipse.scout.boot \
-DarchetypeArtifactId=scout-boot-archetype-minimal \
-DarchetypeVersion=7.0.0-SNAPSHOT \
-DgroupId=scout.boot.example \
-DartifactId=minimal

But it always stops with this error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:generate (default-cli) on project standalone-pom: The desired archetype does not exist (org.eclipse.scout.boot:scout-boot-archetype-minimal:7.0.0-SNAPSHOT) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:generate (default-cli) on project standalone-pom: The desired archetype does not exist (org.eclipse.scout.boot:scout-boot-archetype-minimal:7.0.0-SNAPSHOT)


Does anyone have an idea how to circumvent this problem?

Thanks,

Peter
Re: ScoutBoot-Task: How do I start from Eclipse IDE [message #1764118 is a reply to message #1764117] Thu, 25 May 2017 07:27 Go to previous messageGo to next message
Peter Pfeifer is currently offline Peter PfeiferFriend
Messages: 189
Registered: November 2014
Senior Member

Hi there,

I just try to follow the instructions on https://github.com/BSI-Business-Systems-Integration-AG/ScoutBoot to generate a Scout-Spring Boot Project:
mvn archetype:generate \   
-DarchetypeGroupId=org.eclipse.scout.boot \
-DarchetypeArtifactId=scout-boot-archetype-minimal \
-DarchetypeVersion=7.0.0-SNAPSHOT \
-DgroupId=scout.boot.example \
-DartifactId=minimal

But it always stops with this error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:generate (default-cli) on project standalone-pom: The desired archetype does not exist (org.eclipse.scout.boot:scout-boot-archetype-minimal:7.0.0-SNAPSHOT) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:generate (default-cli) on project standalone-pom: The desired archetype does not exist (org.eclipse.scout.boot:scout-boot-archetype-minimal:7.0.0-SNAPSHOT)


Does anyone have an idea how to circumvent this problem?

Thanks,

Peter

[Updated on: Thu, 25 May 2017 07:29]

Report message to a moderator

Re: ScoutBoot-Task: How do I start from Eclipse IDE [message #1764460 is a reply to message #1764118] Tue, 30 May 2017 07:51 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1243
Registered: October 2011
Senior Member
My guess is, that you do not have any maven repository (local or remote) that contains the requested artifact "org.eclipse.scout.boot:scout-boot-archetype-minimal:7.0.0-SNAPSHOT".

You can:
* Build this artifact locally (version 7.0.0-SNAPSHOT)
* Use the version "7.0.0.alpha1" that I have built last month and that is published on this maven repository:
https://dl.bintray.com/jmini/democamp-2017/

See below how to do it.

---

How-To: Use the "scout-boot-archetype-minimal" Archetype from a remote repository.

In your work folder (C:/tmp/work) in my case, create a settings file (C:/tmp/work/my-settings.xml):
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
                          https://maven.apache.org/xsd/settings-1.0.0.xsd">

  <profiles>
    <profile>
      <id>achetype-profile</id>
      <repositories>
        <repository>
          <id>archetype</id>
          <url>https://dl.bintray.com/jmini/democamp-2017/</url>
        </repository>
      </repositories>
    </profile>
  </profiles>

  <activeProfiles>
    <activeProfile>achetype-profile</activeProfile>
  </activeProfiles>
</settings>


Append "-s my-settings.xml" to the "mvn archetype:generate" command you have mentioned in your post. Something like:
mvn archetype:generate -s my-settings.xml -DarchetypeGroupId=org.eclipse.scout.boot -DarchetypeArtifactId=scout-boot-archetype-minimal -DarchetypeVersion=7.0.0.alpha1 -DgroupId=scout.boot.example -DartifactId=minimal


---

Later this week: I will try to push a new version of the archetype using the latest 7.0.x version published on maven central.
On the long term, we need to automate the build and the publish process.

[Updated on: Tue, 30 May 2017 08:14]

Report message to a moderator

Re: ScoutBoot-Task: How do I start from Eclipse IDE [message #1764796 is a reply to message #1764460] Fri, 02 June 2017 09:56 Go to previous messageGo to next message
Peter Pfeifer is currently offline Peter PfeiferFriend
Messages: 189
Registered: November 2014
Senior Member

Hi Jeremie,

thanks for your efforts. With your help I was able to generate the project. After importing it into Eclipse I had the same problem, since it didn't find the artifact in the maven repo.

So I'll wait for

Jeremie Bresson wrote on Tue, 30 May 2017 07:51

Later this week: I will try to push a new version of the archetype using the latest 7.0.x version published on maven central.
On the long term, we need to automate the build and the publish process.


:)

Thanks a lot though

Peter
Re: ScoutBoot-Task: How do I start from Eclipse IDE [message #1767245 is a reply to message #1764796] Tue, 04 July 2017 07:26 Go to previous messageGo to next message
Peter Pfeifer is currently offline Peter PfeiferFriend
Messages: 189
Registered: November 2014
Senior Member

Hello there.

Is the archetype "org.eclipse.scout.boot:scout-boot-archetype-minimal" already available in the maven repos?

Thx.

Peter
Re: ScoutBoot-Task: How do I start from Eclipse IDE [message #1768319 is a reply to message #1767245] Mon, 17 July 2017 12:52 Go to previous message
Peter Pfeifer is currently offline Peter PfeiferFriend
Messages: 189
Registered: November 2014
Senior Member

Is there any news on that topic?
Previous Topic:[neon] ProcessButton positioning
Next Topic:[neon] Display errors on AbstractTableField
Goto Forum:
  


Current Time: Thu Aug 17 17:39:48 GMT 2017

Powered by FUDForum. Page generated in 0.04907 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software