Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:4.0.0-rc.2:generate-sources -


i trying build android application migrating android project maven 1 using netbeans ide. know questions same issue asked before none of solutions helped me solve problem.

here pom.xml content:

<?xml version="1.0" encoding="utf-8"?>  <project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"   xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">   <modelversion>4.0.0</modelversion>   <groupid>helloandroid</groupid>   <version>0.1.0</version>   <packaging>apk</packaging>   <artifactid>gs-maven-android</artifactid>   <properties>         <project.build.sourceencoding>utf-8</project.build.sourceencoding>         <project.reporting.outputencoding>utf-8</project.reporting.outputencoding>   </properties>   <dependencies>     <dependency>       <groupid>com.google.android</groupid>       <artifactid>android</artifactid>       <version>4.1.1.4</version>       <type>jar</type>     </dependency>   </dependencies>   <build>     <sourcedirectory>src</sourcedirectory>      <plugins>       <plugin>         <groupid>com.jayway.maven.plugins.android.generation2</groupid>         <artifactid>android-maven-plugin</artifactid>         <version>4.0.0-rc.2</version>            <extensions>true</extensions>         <configuration>             <sdk>                 <platform>26</platform>             </sdk>             <deleteconflictingfiles>true</deleteconflictingfiles>             <undeploybeforedeploy>true</undeploybeforedeploy>         </configuration>       </plugin>       <plugin>           <groupid>org.apache.maven.plugins</groupid>           <artifactid>maven-compiler-plugin</artifactid>           <version>3.6.2</version>           <configuration>               <source>1.8</source>               <target>1.8</target>           </configuration>       </plugin>     </plugins>     <resources>         <resource>             <directory>${project.basedir}/res</directory>             <filtering>true</filtering>         </resource>     </resources>   </build> </project> 

and here build error :

failed execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:4.0.0-rc.2:generate-sources (default-generate-sources) on project gs-maven-android:

found files or folders in non-standard locations in project! ....this might side-effect of migration android maven plugin 4+. ....please observe warnings specific files , folders above. ....ideally should restructure project. ....alternatively add explicit configuration overrides files or folders. ....finally set failonnonstandardstructure false, potentially resulting in other failures.

  • how can solve this?


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -