Discussion:
[testng-dev] Unable to compile and get target jar from just downloaded Github clone
d***@sympatico.ca
2016-02-28 13:18:30 UTC
Permalink
I just downloaded the testng github to a Fedora Linux 64bit virtual machine
and attempted to build testng. But it fails to create a target jar file.
What is missing from the process?

*TestNG website instructions*

Build TestNG from source code

TestNG is also hosted on GitHub, where you can download the source and
build the distribution yourself:
$ git clone git://github.com/cbeust/testng.git
$ cd testng
$ ./build-with-gradle

You will then find the jar file in the target directory




*Doing action and the progress*I did './build-with-gradle' once and it
took 4-5 mins (no target directory) . Then did it again and below is ouput,
and still no JAR.

Notice a org.testng.internal.Version error, but based on query to Aug 2015
this generated by the build. I would say not.

***@xfcefed64 testng]$ ./build-with-gradle
Creating Version file: 6.9.11-SNAPSHOT in
/home/user1/ws_testng/testng/src/generated/java/org/testng/internal
:clean
:myDir UP-TO-DATE
:createVersion
:compileGeneratedJava
warning: [options] bootstrap class path not set in conjunction with -source
1.7
1 warning
:processGeneratedResources UP-TO-DATE
:generatedClasses
:compileJava
warning: [options] bootstrap class path not set in conjunction with -source
1.7
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
:processResources
:classes
:jar
:javadoc
/home/user1/ws_testng/testng/src/main/java/org/testng/TestNG.java:37:
error: cannot find symbol
import org.testng.internal.Version;
^
symbol: class Version
location: package org.testng.internal
/home/user1/ws_testng/testng/src/main/java/org/testng/TestNG.java:1074:
warning - @return tag has no arguments.
2 warnings
:javadocJar
:sourcesJar
:signArchives SKIPPED
:assemble
:compileTestJava
warning: [options] bootstrap class path not set in conjunction with -source
1.7
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
:processTestResources
:testClasses
:test
:check
:build

BUILD SUCCESSFUL

Total time: 1 mins 42.873 secs
[***@xfcefed64 testng]$ ls
ANNOUNCEMENT.txt doc pictures TESTNG-5.11beta
ant eclipse-projects pom.xml test-output
appveyor.yml FILES README test-output-tests
bin gradle README.build TODO.txt
build gradlew README.dev travis.sh
build.gradle gradlew.bat README.md update-beust.com
build-with-gradle kobalt README-publish upload-beta
build-with-maven kobaltw settings.gradle verify-release
bundle-pom.xml lib-supplied sitemap.xml www
CHANGES.txt LICENSE.txt src
CHECKLIST maven testng-1.0.dtd.html
deploy-to-maven NOTES testng-1.0.dtd.php
[***@xfcefed64 testng]$





*SO WHERE IS the target directory.Any help would be appreciated.*
--
You received this message because you are subscribed to the Google Groups "testng-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-dev+***@googlegroups.com.
To post to this group, send email to testng-***@googlegroups.com.
Visit this group at https://groups.google.com/group/testng-dev.
For more options, visit https://groups.google.com/d/optout.
Cédric Beust ♔
2016-02-28 15:24:13 UTC
Permalink
I just did the exact same thing in a fresh directory and ./build-with-gradle
produced the following jars:

./build/libs/testng-6.9.11-SNAPSHOT-javadoc.jar
./build/libs/testng-6.9.11-SNAPSHOT-sources.jar
./build/libs/testng-6.9.11-SNAPSHOT.jar

​
--
Cédric
Post by d***@sympatico.ca
I just downloaded the testng github to a Fedora Linux 64bit virtual
machine and attempted to build testng. But it fails to create a target jar
file. What is missing from the process?
*TestNG website instructions*
Build TestNG from source code
TestNG is also hosted on GitHub, where you can download the source and
$ git clone git://github.com/cbeust/testng.git
$ cd testng
$ ./build-with-gradle
You will then find the jar file in the target directory
*Doing action and the progress*I did './build-with-gradle' once and it
took 4-5 mins (no target directory) . Then did it again and below is ouput,
and still no JAR.
Notice a org.testng.internal.Version error, but based on query to Aug 2015
this generated by the build. I would say not.
Creating Version file: 6.9.11-SNAPSHOT in
/home/user1/ws_testng/testng/src/generated/java/org/testng/internal
:clean
:myDir UP-TO-DATE
:createVersion
:compileGeneratedJava
warning: [options] bootstrap class path not set in conjunction with
-source 1.7
1 warning
:processGeneratedResources UP-TO-DATE
:generatedClasses
:compileJava
warning: [options] bootstrap class path not set in conjunction with
-source 1.7
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
:processResources
:classes
:jar
:javadoc
error: cannot find symbol
import org.testng.internal.Version;
^
symbol: class Version
location: package org.testng.internal
2 warnings
:javadocJar
:sourcesJar
:signArchives SKIPPED
:assemble
:compileTestJava
warning: [options] bootstrap class path not set in conjunction with
-source 1.7
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
:processTestResources
:testClasses
:test
:check
:build
BUILD SUCCESSFUL
Total time: 1 mins 42.873 secs
ANNOUNCEMENT.txt doc pictures TESTNG-5.11beta
ant eclipse-projects pom.xml test-output
appveyor.yml FILES README test-output-tests
bin gradle README.build TODO.txt
build gradlew README.dev travis.sh
build.gradle gradlew.bat README.md update-beust.com
build-with-gradle kobalt README-publish upload-beta
build-with-maven kobaltw settings.gradle verify-release
bundle-pom.xml lib-supplied sitemap.xml www
CHANGES.txt LICENSE.txt src
CHECKLIST maven testng-1.0.dtd.html
deploy-to-maven NOTES testng-1.0.dtd.php
*SO WHERE IS the target directory.Any help would be appreciated.*
--
You received this message because you are subscribed to the Google Groups
"testng-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/group/testng-dev.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "testng-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-dev+***@googlegroups.com.
To post to this group, send email to testng-***@googlegroups.com.
Visit this group at https://groups.google.com/group/testng-dev.
For more options, visit https://groups.google.com/d/optout.
d***@sympatico.ca
2016-03-04 19:29:39 UTC
Permalink
Thank you very much.

Being an IDE user rather than maven/gradle the 'build' directory is not a
usual place to look for finished JAR files.
Post by Cédric Beust ♔
I just did the exact same thing in a fresh directory and
./build/libs/testng-6.9.11-SNAPSHOT-javadoc.jar
./build/libs/testng-6.9.11-SNAPSHOT-sources.jar
./build/libs/testng-6.9.11-SNAPSHOT.jar
​
--
Cédric
Post by d***@sympatico.ca
I just downloaded the testng github to a Fedora Linux 64bit virtual
machine and attempted to build testng. But it fails to create a target jar
file. What is missing from the process?
*TestNG website instructions*
Build TestNG from source code
TestNG is also hosted on GitHub, where you can download the source and
$ git clone git://github.com/cbeust/testng.git
$ cd testng
$ ./build-with-gradle
You will then find the jar file in the target directory
*Doing action and the progress*I did './build-with-gradle' once and it
took 4-5 mins (no target directory) . Then did it again and below is ouput,
and still no JAR.
Notice a org.testng.internal.Version error, but based on query to Aug
2015 this generated by the build. I would say not.
Creating Version file: 6.9.11-SNAPSHOT in
/home/user1/ws_testng/testng/src/generated/java/org/testng/internal
:clean
:myDir UP-TO-DATE
:createVersion
:compileGeneratedJava
warning: [options] bootstrap class path not set in conjunction with
-source 1.7
1 warning
:processGeneratedResources UP-TO-DATE
:generatedClasses
:compileJava
warning: [options] bootstrap class path not set in conjunction with
-source 1.7
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
:processResources
:classes
:jar
:javadoc
error: cannot find symbol
import org.testng.internal.Version;
^
symbol: class Version
location: package org.testng.internal
2 warnings
:javadocJar
:sourcesJar
:signArchives SKIPPED
:assemble
:compileTestJava
warning: [options] bootstrap class path not set in conjunction with
-source 1.7
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
:processTestResources
:testClasses
:test
:check
:build
BUILD SUCCESSFUL
Total time: 1 mins 42.873 secs
ANNOUNCEMENT.txt doc pictures TESTNG-5.11beta
ant eclipse-projects pom.xml test-output
appveyor.yml FILES README
test-output-tests
bin gradle README.build TODO.txt
build gradlew README.dev travis.sh
build.gradle gradlew.bat README.md
update-beust.com
build-with-gradle kobalt README-publish upload-beta
build-with-maven kobaltw settings.gradle verify-release
bundle-pom.xml lib-supplied sitemap.xml www
CHANGES.txt LICENSE.txt src
CHECKLIST maven testng-1.0.dtd.html
deploy-to-maven NOTES testng-1.0.dtd.php
*SO WHERE IS the target directory.Any help would be appreciated.*
--
You received this message because you are subscribed to the Google Groups
"testng-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an
<javascript:>.
Visit this group at https://groups.google.com/group/testng-dev.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "testng-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-dev+***@googlegroups.com.
To post to this group, send email to testng-***@googlegroups.com.
Visit this group at https://groups.google.com/group/testng-dev.
For more options, visit https://groups.google.com/d/optout.
Loading...