I am not sure I follow. Can you explain what actually happens and how
forcing <type> element for all projects dependencies is expected to help
the problem?

--
Regards,
Igor

On 2014-12-07, 19:25, William Ferguson wrote:
## Cross posting to Maven Dev list

One solution to this would be to change the POM specification to require
the type element for dependencies.
That would allow Maven and MavenCentral to immediately fail POMs based
upon dependencies that are missing the type element.

Yes, it goes against convention over configuration, but Maven is now
used by many more build types than just plain Java builds so maybe we
need to consider that the convention is no longer to assume jar
dependencies.

I would rather require a little more configuration to ensure that builds
are more deterministic.
If we want to shrink the size of the POM then the new POM format is a
better solution.

William


On Thursday, December 4, 2014 1:47:33 AM UTC+10, Andreas Schildbach wrote:

    I'm using maven-android-plugin 4.0.0 with Maven 3.0.5. I've got
    troubles declaring an aar dependency. Here is the pom.xml declaration:

    |
    <dependency>
    <groupId>com.android.support</groupId>
    <artifactId>support-v13</artifactId>
    <version>21.0.2</version>
    <type>aar</type>
    </dependency>
    |

    Just about any Maven command, even "mvn dependency:tree" yields:

    [ERROR] Failed to execute goal on project wallet: Could not resolve
    dependencies for project de.schildbach.wallet:wallet:apk:4.13-test:
    Failure to find com.android.support:support-v4:jar:21.0.2 in
    file:///home/aschildbach/dev/android-sdk/extras/android/m2repository
    was cached in the local repository, resolution will not be
    reattempted until the update interval of android-support has elapsed
    or updates are forced -> [Help 1]

    Where does that .jar type in the error message stem from? I declared
    aar.




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to