Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work, build fails, test fails, tried everything #48

Open
rohan90 opened this issue Jul 11, 2015 · 8 comments
Open

Does not work, build fails, test fails, tried everything #48

rohan90 opened this issue Jul 11, 2015 · 8 comments

Comments

@rohan90
Copy link

rohan90 commented Jul 11, 2015

Hi
I cloned your repo and ran mvn install.

  1. build fails on 1.6 1.7 and 1.8 java
  2. two test cases fail after replacing a variable SourceVersion_RELEASE8 with RELEASE7 in src/main/java/org/versly/rest/wsdoc/AnnotationProcessor.java

Results :
Failed tests: stabilitySettings(org.versly.rest.wsdoc.JaxRSRestAnnotationProcessorTest): RAML expected to contain experimental trait
stabilitySettings(org.versly.rest.wsdoc.SpringMVCRestAnnotationProcessorTest): RAML expected to contain experimental trait

so obvious;y the jar in .m2 1.1-006 or something might be gltitchy even after skipping tests and building.

  1. copied entire versly repo fro frogerock which has 1.1 and 1.2 snapshot jars but still when i include the pom dependency in my webapp build fails due to AnnotationProcessor not found.
    ps (there is a xml mistake in the readme.md for the pom specified, though that was no biggie)

I am on Ubuntu14.04 64 bit, all javas and maven3.0.4. I gave it a full night, at a loss on what to do.

Help would be appreciated.

@balthorium
Copy link
Contributor

Hey there, would be happy to look at this with you. Can you post the error
you see in the build when using 1.8?

On Sat, Jul 11, 2015, 3:21 AM rohan90 [email protected] wrote:

Hi
I cloned your repo and ran mvn install.

  1. build fails on 1.6 1.7 and 1.8 java
  2. two test cases fail after replacing a variable SourceVersion_RELEASE8
    with RELEASE7 in
    src/main/java/org/versly/rest/wsdoc/AnnotationProcessor.java

Results :

Failed tests:
stabilitySettings(org.versly.rest.wsdoc.JaxRSRestAnnotationProcessorTest):
RAML expected to contain experimental trait

stabilitySettings(org.versly.rest.wsdoc.SpringMVCRestAnnotationProcessorTest):
RAML expected to contain experimental trait

so obvious;y the jar in .m2 1.1-006 or something might be gltitchy even
after skipping tests and building.

  1. copied entire versly repo fro frogerock which has 1.1 and 1.2
    snapshot jars but still when i include the pom dependency in my webapp
    build fails due to AnnotationProcessor not found. ps (there is a xml
    mistake in the readme.md for the pom specified, though that was no
    biggie)

I am on Ubuntu14.04 64 bit, all javas and maven3.0.4. I gave it a full
night, at a loss on what to do.

Help would be appreciated.


Reply to this email directly or view it on GitHub
#48.

@lukasbradley
Copy link

The following updates to the POM will fix the issue:

  1. Increase Java version to whatever is needed. I'm using 8:
                <source>1.8</source>
                <target>1.8</target>
  1. Upgrade TestNG and exclude SnakeYaml
<dependency>
    <groupId>org.testng</groupId>
    <artifactId>testng</artifactId>
    <version>6.8.8</version>
    <scope>test</scope>
       <exclusions>
       <exclusion>
         <artifactId>snakeyaml</artifactId>
         <groupId>org.yaml</groupId>
    </exclusion>
  </exclusions>
</dependency>

@rohan90
Copy link
Author

rohan90 commented Aug 25, 2015

Hey Lukas , thanks.. Currently I'm awol for around 3 months. I'm sorry I
don't dnt get back in touch before. Will definitely try this.
On Aug 25, 2015 6:33 AM, "Lukas Bradley" [email protected] wrote:

The following updates to the POM will fix the issue:

  1. Increase Java version to whatever is needed. I'm using 8:
            <source>1.8</source>
            <target>1.8</target>

Upgrade TestNG and exclude SnakeYaml

org.testng testng 6.8.8 test snakeyaml org.yaml


Reply to this email directly or view it on GitHub
#48 (comment).

balthorium added a commit to balthorium/wsdoc that referenced this issue Sep 4, 2015
@balthorium
Copy link
Contributor

Thanks for the fix lukas!

With the above changeset, I've built and run tests using building with HotSpot 1.8.0_20, and using each of 1.6, 1.7, and 1.8 as the source and target language versions in the pom.xml. All seems to work now w/o warnings.

@scofier
Copy link

scofier commented Jan 5, 2017

i have tried for hours , but still don't know how to run it .

any one can help me?

@lukasbradley
Copy link

@scofier Can you give us a little more information as to what you're having problems with?

@pcl
Copy link
Member

pcl commented Jan 5, 2017

I belivee that @scofier's question is also covered in #59.

@scofier
Copy link

scofier commented Jan 6, 2017

thanks for @lukasbradley and @pcl i run the sample successfully.

i have another question,

i have put SnowReportController.java nest class "public interface SnowReport" into another file SnowReport.java

how can i run SnowReportController.java with SnowReport.java ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants