Hello
I cannot build separately some modules, such as client or server.
The shared module works though.
Here is what I did:
- create a new 'helloscout' project
- change the Java version to 11 because that's what I'll have on the installation server, in the main pom.xml (artifact helloscout) :
<jdk.source.version>11</jdk.source.version>
<compiler.release>11</compiler.release>
- build the whole project:
cd helloscout
mvn clean install
- try to rebuild the client module:
cd ../helloscout.client
mvn install
It gives an error, the root pom is missing:
[ERROR] Failed to execute goal on project helloscout.client: Could not resolve dependencies for project org.eclipse.scout.apps:helloscout.client:jar:1.0.0-SNAPSHOT: Failed to collect dependencies at org.eclipse.scout.apps:helloscout.shared:jar:1.0.0-SNAPSHOT: Failed to read artifact descriptor for org.eclipse.scout.apps:helloscout.shared:jar:1.0.0-SNAPSHOT: Could not find artifact org.eclipse.scout.apps:helloscout-root:pom:1.0.0-SNAPSHOT in central (https://repo.maven.apache.org/maven2)
If I build with the -o option to have maven offline, I get:
ERROR] Failed to execute goal on project helloscout.client: Could not resolve dependencies for project org.eclipse.scout.apps:helloscout.client:jar:1.0.0-SNAPSHOT: Failed to collect dependencies at org.eclipse.scout.apps:helloscout.shared:jar:1.0.0-SNAPSHOT: Failed to read artifact descriptor for org.eclipse.scout.apps:helloscout.shared:jar:1.0.0-SNAPSHOT: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.eclipse.scout.apps:helloscout-root:pom:1.0.0-SNAPSHOT has not been downloaded from it before.
And with -U I see that he tries to download it... :
Downloading from central: https://repo.maven.apache.org/maven2/org/eclipse/scout/apps/helloscout-root/1.0.0-SNAPSHOT/helloscout-root-1.0.0-SNAPSHOT.pom
But of course it fails.
Indeed there is no pom in the helloscout-root repository.
$ ls -l helloscout-root/1.0.0-SNAPSHOT/
total 4
-rw-r--r--. 1 xxxxx xxxxx 278 31 juil. 11:38 helloscout-root-1.0.0-SNAPSHOT.pom.lastUpdated
-rw-r--r--. 1 xxxxx xxxxx 246 31 juil. 11:38 resolver-status.properties
But if I build helloscout.shared, it works. The problems are for the other modules.
I tried to change the root pom with :
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<inherited>false</inherited>
<configuration>
<skip>false</skip>
</configuration>
</plugin>
so that the pom will be installed, then I built from the root, then again from the helloscout (main module), and now rebuilding only the client module works.
My version of Maven is 3.6.3 and Java is Java 11 as already said.
Is it a bug ? What else could I do ?
Thank you