Dmitriy Setrakyan created IGNITE-82:
---------------------------------------
Summary: Need to make scala examples into a separate optional
profile
Key: IGNITE-82
URL: https://issues.apache.org/jira/browse/IGNITE-82
Project: Ignite
Issue Type: Improvement
Components: general
Reporter: Dmitriy Setrakyan
Assignee: Dmitriy Setrakyan
Fix For: sprint-1
I got this error while trying to build 6.5.6:
{noformat}
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for
org.gridgain:gridgain-examples:jar:6.5.6
[WARNING] 'version' contains an expression but should be a constant. @
org.gridgain:gridgain-examples:${gridgain.version},
/Users/Dmitriy/GridGain/release/6.5.6/gridgain-fabric-ent-6.5.6/examples/pom.xml,
line 29, column 14
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten
the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support
building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building gridgain-examples 6.5.6
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.gridgain:gridgain-scalar:jar:6.5.6 is invalid,
transitive dependencies (if any) will not be available, enable debug logging
for more details
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @
gridgain-examples ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 6 resources
[INFO] Copying 22 resources
[INFO]
[INFO] --- scala-maven-plugin:3.2.0:add-source (scala-compile-first) @
gridgain-examples ---
Downloading:
https://repo.maven.apache.org/maven2/org/scala-lang/scala-library/2.10.4/scala-library-2.10.4.pom
Downloaded:
https://repo.maven.apache.org/maven2/org/scala-lang/scala-library/2.10.4/scala-library-2.10.4.pom
(2 KB at 0.3 KB/sec)
Downloading:
https://repo.maven.apache.org/maven2/org/scala-lang/scala-library/2.10.3/scala-library-2.10.3.pom
Downloaded:
https://repo.maven.apache.org/maven2/org/scala-lang/scala-library/2.10.3/scala-library-2.10.3.pom
(2 KB at 1.0 KB/sec)
Downloading:
https://repo.maven.apache.org/maven2/org/scala-lang/scala-library/2.10.4/scala-library-2.10.4.jar
Downloaded:
https://repo.maven.apache.org/maven2/org/scala-lang/scala-library/2.10.4/scala-library-2.10.4.jar
(6960 KB at 491.4 KB/sec)
[INFO] Add Test Source directory:
/Users/Dmitriy/GridGain/release/6.5.6/gridgain-fabric-ent-6.5.6/examples/src/test/scala
[INFO]
[INFO] --- scala-maven-plugin:3.2.0:compile (scala-compile-first) @
gridgain-examples ---
[WARNING] you don't define org.scala-lang:scala-library as a dependency of the
project
[WARNING] Invalid POM for org.gridgain:gridgain-scalar:jar:6.5.6, transitive
dependencies (if any) will not be available, enable debug logging for more
details
[INFO]
/Users/Dmitriy/GridGain/release/6.5.6/gridgain-fabric-ent-6.5.6/examples/src/main/scala:-1:
info: compiling
[INFO] Compiling 18 source files to
/Users/Dmitriy/GridGain/release/6.5.6/gridgain-fabric-ent-6.5.6/examples/target/classes
at 1420514910309
Downloading:
http://www.gridgainsystems.com/nexus/content/repositories/external/org/scala-lang/scala-library/0.0.0/scala-library-0.0.0.jar
Downloading:
https://repo.maven.apache.org/maven2/org/scala-lang/scala-library/0.0.0/scala-library-0.0.0.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 27.633 s
[INFO] Finished at: 2015-01-05T19:28:33-08:00
[INFO] Final Memory: 11M/245M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
net.alchim31.maven:scala-maven-plugin:3.2.0:compile (scala-compile-first) on
project gridgain-examples: wrap:
org.apache.maven.artifact.resolver.ArtifactNotFoundException: Could not find
artifact org.scala-lang:scala-library:jar:0.0.0 in GridGain External Repository
(http://www.gridgainsystems.com/nexus/content/repositories/external)
[ERROR]
[ERROR] Try downloading the file manually from the project website.
[ERROR]
[ERROR] Then, install it using the command:
[ERROR] mvn install:install-file -DgroupId=org.scala-lang
-DartifactId=scala-library -Dversion=0.0.0 -Dpackaging=jar -Dfile=/path/to/file
[ERROR]
[ERROR] Alternatively, if you host your own repository you can deploy the file
there:
[ERROR] mvn deploy:deploy-file -DgroupId=org.scala-lang
-DartifactId=scala-library -Dversion=0.0.0 -Dpackaging=jar -Dfile=/path/to/file
-Durl=[url] -DrepositoryId=[id]
[ERROR]
[ERROR]
[ERROR] org.scala-lang:scala-library:jar:0.0.0
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR] GridGain External Repository
(http://www.gridgainsystems.com/nexus/content/repositories/external,
releases=true, snapshots=true),
[ERROR] central (https://repo.maven.apache.org/maven2, releases=true,
snapshots=false)
[ERROR] -> [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/MojoExecutionException
Process finished with exit code 1
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)