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

Plugin use in test scope #21

Open
DarkFelex opened this issue Dec 20, 2016 · 0 comments
Open

Plugin use in test scope #21

DarkFelex opened this issue Dec 20, 2016 · 0 comments

Comments

@DarkFelex
Copy link

DarkFelex commented Dec 20, 2016

Given following plugin configuration:

<plugin>
    <groupId>ru.lanwen.raml</groupId>
    <artifactId>rarc-maven-plugin</artifactId>
    <version>1.2</version>
    <executions>
        <execution>
            <id>yard-api</id>
            <phase>generate-test-sources</phase>
            <goals>
                <goal>generate-client</goal>
            </goals>
            <configuration>
                <ramlFile>${project.basedir}/spec/server-api.raml</ramlFile>
                <basePackage>com.example.server.api</basePackage>
                <outputDir>${project.basedir}/target/generated-test-sources</outputDir>
            </configuration>
        </execution>
    </executions>
</plugin>

REST-client is generated fine. But maven does not even compile REST-client classes and fails with errors like:

[ERROR] /Users/darkfelex/projects/my-lovely-project/src/test/java/com/example/server/integration/Test1.java:[14,45] package com.example.server.api.projectname does not exist
[ERROR] /Users/darkfelex/projects/my-lovely-project/src/test/java/com/example/server/integration/Test1.java:[15,68] package com.example.server.api.projectname.releasetag.iterationid does not exist
[ERROR] /Users/darkfelex/projects/my-lovely-project/src/test/java/com/example/server/integration/Test1.java:[43,31] cannot find symbol
[ERROR] symbol:   class ApiReleaseIteration
[ERROR] location: class com.example.server.integration.Test1
[ERROR] /Users/darkfelex/projects/my-lovely-project/src/test/java/com/example/server/integration/Test1.java:[44,31] cannot find symbol
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

1 participant