Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/83.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Maven生成的源代码/注释_Java_Amazon Web Services_Annotations_Maven Plugin - Fatal编程技术网

Java Maven生成的源代码/注释

Java Maven生成的源代码/注释,java,amazon-web-services,annotations,maven-plugin,Java,Amazon Web Services,Annotations,Maven Plugin,嘿,伙计,我发布这个问题花了很多时间研究,但没有找到详细的答案。目前,我在从AWS工作流生成源时遇到问题。我正在使用Mavenapt Maven插件和aspectj Maven插件。这些插件都用于为活动生成客户机类,但在针对我的工作流类运行mvn clean package或mvn clean install时失败,并出现以下错误。 错误 插件 org.codehaus.mojo aptmaven插件 1.0-α-5 过程 org.codehaus.mojo aspectj maven插件 1

嘿,伙计,我发布这个问题花了很多时间研究,但没有找到详细的答案。目前,我在从AWS工作流生成源时遇到问题。我正在使用Maven
apt Maven插件
aspectj Maven插件
。这些插件都用于为活动生成客户机类,但在针对我的工作流类运行
mvn clean package
mvn clean install
时失败,并出现以下错误。
错误

插件

org.codehaus.mojo
aptmaven插件
1.0-α-5
过程
org.codehaus.mojo
aspectj maven插件
1.7
亚马逊网站
aws java sdk流构建工具
1.7
真的
真的
${basedir}/target/generated sources/annotation
src/main/java
**/*.爪哇
编译
测试编译

我不确定如何着手解决这个问题,任何帮助都会很好。

错误消息很清楚-mvn无法找到/target/generated sources/annotation,但在pom中它被称为aspectj maven插件的源代码

您的代码是否打算在/target/generated sources/annotation下生成源代码?如果是的话,那么这一代人就有问题了,你需要暴露更多的pom,让我告诉你哪里出了问题。如果没有,为什么不拆下这个零件,再拍一次呢

<source>
     <basedir>${basedir}/target/generated-sources/annotations</basedir>
</source>

${basedir}/target/generated sources/annotation
附言:我宁愿把这当作评论,但我不能:(

            <groupId>org.codehaus.mojo</groupId>
            <artifactId>apt-maven-plugin</artifactId>
            <version>1.0-alpha-5</version>
            <executions>
                <execution>
                    <goals>
                        <goal>process</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
        <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>aspectj-maven-plugin</artifactId>
            <version>1.7</version>
            <configuration>
                <aspectLibraries>
                    <aspectLibrary>
                        <groupId>com.amazonaws</groupId>
                        <artifactId>aws-java-sdk-flow-build-tools</artifactId>
                    </aspectLibrary>
                </aspectLibraries>
                <complianceLevel>1.7</complianceLevel>
                <showWeaveInfo>true</showWeaveInfo>
                <verbose>true</verbose>
                <sources>
                    <source>
                        <basedir>${basedir}/target/generated-sources/annotations</basedir>
                    </source>
                    <source>
                        <basedir>src/main/java</basedir>
                        <includes>
                            <include>**/*.java</include>
                        </includes>
                    </source>
                </sources>
            </configuration>
            <executions>
                <execution>
                    <goals>
                        <goal>compile</goal>
                        <goal>test-compile</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
<source>
     <basedir>${basedir}/target/generated-sources/annotations</basedir>
</source>