atlasmap-attic / atlasmap-runtime

AtlasMap runtime engine and design time services
http://atlasmap.io
Other
3 stars 8 forks source link

Build failure on a fresh repo #56

Open apupier opened 7 years ago

apupier commented 7 years ago

[ERROR] Failed to execute goal on project atlas-java-module: Could not resolve dependencies for project io.atlasmap:atlas-java-module:bundle:1.15.0-SNAPSHOT: Failure to find io.atlasmap:atlas-core:jar:tests:1.15.0-SNAPSHOT in http://maven.restlet.com was cached in the local repository, resolution will not be reattempted until the update interval of maven-restlet has elapsed or updates are forced -> [Help 1]

I tried:

I'm using Maven 3.3.9

apupier commented 7 years ago

hum I have a different exception when I don't skip tests:

Tests in error: AtlasUtilTest.testFindClassesForPackage:105 » IllegalArgument Unable to detect...

I'm on Windows, maybe this test is failing on Windows?

Would nice to have the build working when skipTest is used anyway.

rhuss commented 7 years ago

See https://github.com/atlasmap/atlasmap/issues/23 for a duplicate (and resolution) of this.

apupier commented 7 years ago

this is a different issue.

i'm using java 1.8.0_112

rhuss commented 7 years ago

Sorry, my fault. The issue is that you have to run it with -Pfull on the first time launch. Should be documented somewhere, though. See also https://github.com/atlasmap/atlasmap/blob/master/.circleci/config.yml for how the CI does it.

apupier commented 7 years ago

i think that it is another issue again because "full" profile is active by default: https://github.com/atlasmap/atlasmap/blob/master/pom.xml#L138

there are 2 different issues:

rhuss commented 7 years ago

@mattrpav could you please have a look ?

mattrpav commented 7 years ago
  1. atlas-java-module failing to resolve atlas-core/tests classifier. Looks like a need-to-fix-the-build type problem.
  2. As for the test failing, the code looks to be platform agnostic.

@apupier i'm wondering if the atlas-model isn't built so the test is failing to find the classes. The test looks for 'io.atlasmap.v2' classes, which are from the atlas-model module.

Can you delete your ~/.m2/repository/io/atlasmap/* and rebuild from scratch? I'll try to catch up w/ you on IRC as well

mattrpav commented 7 years ago

Recap of IRC discussion.. @apupier is dedicated to Fuse projects and may not have time to capture full build output. @mattrpav to hunt down an alternative windows systen to test the build.

mattrpav commented 7 years ago

@apupier please retest with the fixes applied! Thanks =)

apupier commented 7 years ago
igarashitm commented 7 years ago

Is this still a problem? I tried 'rm -rf ~/.m2/repository/io/atlasmap' and mvn clean install just succeeded.

mattrpav commented 7 years ago

Discussed.. don't use -DskipTests b/c it causes the jar plugin to not build the -tests jars which contain test modules used in itests projects.

Use -Dmaven.test.skip=true instead