[JBoss JIRA] (SHRINKRES-93) Tests fails under windows and RHEL 6
by Karel Piwko (JIRA)
[ https://issues.jboss.org/browse/SHRINKRES-93?page=com.atlassian.jira.plug... ]
Karel Piwko commented on SHRINKRES-93:
--------------------------------------
Hmm...if we take SHRINKRES-94 in mind, it seems that ClasspathWorkspaceReader does not handle \ and / correctly w.r.t. java classpath conventions. Also, it seems that java classpath is simply construct differently in intelij/eclipse, while a specific structure is required by classpathworkspacereader impl.
Michal, are you able to verify that target/xyz directory are the same in eclipse/intellij? I'll try to reproduce the issue once I'm back on my windows machine.
> Tests fails under windows and RHEL 6
> ------------------------------------
>
> Key: SHRINKRES-93
> URL: https://issues.jboss.org/browse/SHRINKRES-93
> Project: ShrinkWrap Resolvers
> Issue Type: Bug
> Affects Versions: 2.0.0-alpha-5
> Environment: win7 x64
> RHEL 6
> Reporter: Michal Matloka
> Assignee: Andrew Rubinger
>
> I've tried to build today resolvers from both linux and windows.
>
> On Linux build successfully! On Eclipse on windows all tests passes! but, when building on windows from maven (cmd/cygwin) some tests fails.
> {noformat}
> Tests in error:
> shouldBeAbleToLoadArtifactDirectlyFromClassPath(org.jboss.shrinkwrap.resolver.impl.maven.integration.ClasspathWorkspaceReaderTestCase): Found 1 problems while building POM model from I:\Dev\JBoss\shrinkwrap resolver\impl-maven\pom.xml
> shouldFailWhileNotReadingReactor(org.jboss.shrinkwrap.resolver.impl.maven.integration.ClasspathWorkspaceReaderTestCase): Unexpected exception, expected<org.jboss.shrinkwrap.resolver.api.NoResolvedResultException> but was<org.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException>
> shouldHaveCentralMavenRepositoryDisabled(org.jboss.shrinkwrap.resolver.impl.maven.integration.DisabledCentralRepositoryTestCase): Unexpected exception, expected<org.jboss.shrinkwrap.resolver.api.NoResolvedResultException> but was<org.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException>
> control(org.jboss.shrinkwrap.resolver.impl.maven.integration.DisabledCentralRepositoryTestCase): Found 1 problems while building POM model from I:\Dev\JBoss\shrinkwrap resolver\impl-maven\pom.xml
> offlineProgramatically(org.jboss.shrinkwrap.resolver.impl.maven.integration.OfflineRepositoryTestCase): Unable to collect dependency tree for given dependencies, reason: Failed to collect dependencies for [junit:junit:jar:3.8.2 (compile)]
> {noformat}
> e.g.
> {noformat}
> shouldBeAbleToLoadArtifactDirectlyFromClassPath(org.jboss.shrinkwrap.resolver.impl.maven.integration.ClasspathWorkspaceReaderTestCase) Time elapsed: 0.696 sec <<< ERROR!
> org.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException: Found 1 problems while building POM model from I:\Dev\JBoss\shrinkwrap resolver\impl-maven\pom.xml
> 1/ [FATAL] Non-resolvable parent POM for org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-parent:2.0.0-alpha-6-SNAPSHOT: Failed to resolve POM for org.jboss:jboss-parent:8 due to Could not find artifact org.jboss:jboss-parent:pom:8 in central (http://repo1.maven.org/maven2) and 'parent.relativePath' points at wrong local POM @ org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-parent:2.0.0-alpha-6-SNAPSHOT, I:\Dev\JBoss\shrinkwrap resolver\pom.xml
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 5 months
[JBoss JIRA] (SHRINKRES-93) Tests fails under windows and RHEL 6
by Michal Matloka (JIRA)
[ https://issues.jboss.org/browse/SHRINKRES-93?page=com.atlassian.jira.plug... ]
Michal Matloka commented on SHRINKRES-93:
-----------------------------------------
I've spent some time yesterday to debug this. Updating dependecies to newer versions does not have any influence. Under InteliJ tests fail. I tried to debug offlineProgramatically(org.jboss.shrinkwrap.resolver.impl.maven.integration.OfflineRepositoryTestCase) but it seems that on the side of SHRINKRES everything goes the same in eclipse and intelij. Requests looks the same, repositories also, only aether returns different results. Updating aether does nothing. Running test separately gives the same errors.
> Tests fails under windows and RHEL 6
> ------------------------------------
>
> Key: SHRINKRES-93
> URL: https://issues.jboss.org/browse/SHRINKRES-93
> Project: ShrinkWrap Resolvers
> Issue Type: Bug
> Affects Versions: 2.0.0-alpha-5
> Environment: win7 x64
> RHEL 6
> Reporter: Michal Matloka
> Assignee: Andrew Rubinger
>
> I've tried to build today resolvers from both linux and windows.
>
> On Linux build successfully! On Eclipse on windows all tests passes! but, when building on windows from maven (cmd/cygwin) some tests fails.
> {noformat}
> Tests in error:
> shouldBeAbleToLoadArtifactDirectlyFromClassPath(org.jboss.shrinkwrap.resolver.impl.maven.integration.ClasspathWorkspaceReaderTestCase): Found 1 problems while building POM model from I:\Dev\JBoss\shrinkwrap resolver\impl-maven\pom.xml
> shouldFailWhileNotReadingReactor(org.jboss.shrinkwrap.resolver.impl.maven.integration.ClasspathWorkspaceReaderTestCase): Unexpected exception, expected<org.jboss.shrinkwrap.resolver.api.NoResolvedResultException> but was<org.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException>
> shouldHaveCentralMavenRepositoryDisabled(org.jboss.shrinkwrap.resolver.impl.maven.integration.DisabledCentralRepositoryTestCase): Unexpected exception, expected<org.jboss.shrinkwrap.resolver.api.NoResolvedResultException> but was<org.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException>
> control(org.jboss.shrinkwrap.resolver.impl.maven.integration.DisabledCentralRepositoryTestCase): Found 1 problems while building POM model from I:\Dev\JBoss\shrinkwrap resolver\impl-maven\pom.xml
> offlineProgramatically(org.jboss.shrinkwrap.resolver.impl.maven.integration.OfflineRepositoryTestCase): Unable to collect dependency tree for given dependencies, reason: Failed to collect dependencies for [junit:junit:jar:3.8.2 (compile)]
> {noformat}
> e.g.
> {noformat}
> shouldBeAbleToLoadArtifactDirectlyFromClassPath(org.jboss.shrinkwrap.resolver.impl.maven.integration.ClasspathWorkspaceReaderTestCase) Time elapsed: 0.696 sec <<< ERROR!
> org.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException: Found 1 problems while building POM model from I:\Dev\JBoss\shrinkwrap resolver\impl-maven\pom.xml
> 1/ [FATAL] Non-resolvable parent POM for org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-parent:2.0.0-alpha-6-SNAPSHOT: Failed to resolve POM for org.jboss:jboss-parent:8 due to Could not find artifact org.jboss:jboss-parent:pom:8 in central (http://repo1.maven.org/maven2) and 'parent.relativePath' points at wrong local POM @ org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-parent:2.0.0-alpha-6-SNAPSHOT, I:\Dev\JBoss\shrinkwrap resolver\pom.xml
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 5 months
[JBoss JIRA] (SHRINKDESC-137) Compilation fails under windows
by Michal Matloka (JIRA)
[ https://issues.jboss.org/browse/SHRINKDESC-137?page=com.atlassian.jira.pl... ]
Michal Matloka updated SHRINKDESC-137:
--------------------------------------
Status: Pull Request Sent (was: Pull Request Sent)
Git Pull Request: https://github.com/shrinkwrap/descriptors/pull/76 (was: https://github.com/shrinkwrap/descriptors/pull/74)
> Compilation fails under windows
> -------------------------------
>
> Key: SHRINKDESC-137
> URL: https://issues.jboss.org/browse/SHRINKDESC-137
> Project: ShrinkWrap Descriptors
> Issue Type: Bug
> Components: gen, metadata-parser
> Affects Versions: 2.0.0-alpha-4
> Environment: win7 x64
> Reporter: Michal Matloka
> Assignee: Michal Matloka
> Priority: Critical
>
> mvn clean install results in
> {noformat}
> [INFO]
> [INFO] --- shrinkwrap-descriptors-metadata-parser:2.0.0-alpha-5-SNAPSHOT:parse (executionJ2ee13) @ shrinkwrap-descriptors-gen ---
> Error at xsl:result-document on line 249 of :
> Resolved URL is malformed: unknown protocol: i
> [INFO] ------------------------------------------------------------------------
> {noformat}
> I've tried to upgrade to saxon-he 9.4, but under that version other error appears:
> {noformat}
> [INFO] --- shrinkwrap-descriptors-metadata-parser:2.0.0-alpha-5-SNAPSHOT:parse (executionJ2ee13) @ shrinkwrap-descriptors-gen ---
> Error on line 246
> XPTY0004: Required item type of value of variable $gVerbose is xs:boolean; supplied value
> has item type xs:string
> at xsl:call-template name="WriteInterface2" (#74)
> at xsl:call-template name="GenerateInterfaces" (#58)
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 5 months
[JBoss JIRA] (SHRINKRES-93) Tests fails under windows and RHEL 6
by Michal Matloka (JIRA)
[ https://issues.jboss.org/browse/SHRINKRES-93?page=com.atlassian.jira.plug... ]
Michal Matloka commented on SHRINKRES-93:
-----------------------------------------
[~alrubinger] https://community.jboss.org/message/779217#779217 you had some doubts concerning these tests
> Tests fails under windows and RHEL 6
> ------------------------------------
>
> Key: SHRINKRES-93
> URL: https://issues.jboss.org/browse/SHRINKRES-93
> Project: ShrinkWrap Resolvers
> Issue Type: Bug
> Affects Versions: 2.0.0-alpha-5
> Environment: win7 x64
> RHEL 6
> Reporter: Michal Matloka
> Assignee: Andrew Rubinger
>
> I've tried to build today resolvers from both linux and windows.
>
> On Linux build successfully! On Eclipse on windows all tests passes! but, when building on windows from maven (cmd/cygwin) some tests fails.
> {noformat}
> Tests in error:
> shouldBeAbleToLoadArtifactDirectlyFromClassPath(org.jboss.shrinkwrap.resolver.impl.maven.integration.ClasspathWorkspaceReaderTestCase): Found 1 problems while building POM model from I:\Dev\JBoss\shrinkwrap resolver\impl-maven\pom.xml
> shouldFailWhileNotReadingReactor(org.jboss.shrinkwrap.resolver.impl.maven.integration.ClasspathWorkspaceReaderTestCase): Unexpected exception, expected<org.jboss.shrinkwrap.resolver.api.NoResolvedResultException> but was<org.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException>
> shouldHaveCentralMavenRepositoryDisabled(org.jboss.shrinkwrap.resolver.impl.maven.integration.DisabledCentralRepositoryTestCase): Unexpected exception, expected<org.jboss.shrinkwrap.resolver.api.NoResolvedResultException> but was<org.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException>
> control(org.jboss.shrinkwrap.resolver.impl.maven.integration.DisabledCentralRepositoryTestCase): Found 1 problems while building POM model from I:\Dev\JBoss\shrinkwrap resolver\impl-maven\pom.xml
> offlineProgramatically(org.jboss.shrinkwrap.resolver.impl.maven.integration.OfflineRepositoryTestCase): Unable to collect dependency tree for given dependencies, reason: Failed to collect dependencies for [junit:junit:jar:3.8.2 (compile)]
> {noformat}
> e.g.
> {noformat}
> shouldBeAbleToLoadArtifactDirectlyFromClassPath(org.jboss.shrinkwrap.resolver.impl.maven.integration.ClasspathWorkspaceReaderTestCase) Time elapsed: 0.696 sec <<< ERROR!
> org.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException: Found 1 problems while building POM model from I:\Dev\JBoss\shrinkwrap resolver\impl-maven\pom.xml
> 1/ [FATAL] Non-resolvable parent POM for org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-parent:2.0.0-alpha-6-SNAPSHOT: Failed to resolve POM for org.jboss:jboss-parent:8 due to Could not find artifact org.jboss:jboss-parent:pom:8 in central (http://repo1.maven.org/maven2) and 'parent.relativePath' points at wrong local POM @ org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-parent:2.0.0-alpha-6-SNAPSHOT, I:\Dev\JBoss\shrinkwrap resolver\pom.xml
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 5 months
[JBoss JIRA] (SHRINKRES-81) Poor encapsulation, passing around Aether (Artifact) objects when we should be using our own
by Michal Matloka (JIRA)
[ https://issues.jboss.org/browse/SHRINKRES-81?page=com.atlassian.jira.plug... ]
Michal Matloka commented on SHRINKRES-81:
-----------------------------------------
For me it seems that all needed refactors were already performed in other issues, and probably this ticket can be closed?
> Poor encapsulation, passing around Aether (Artifact) objects when we should be using our own
> --------------------------------------------------------------------------------------------
>
> Key: SHRINKRES-81
> URL: https://issues.jboss.org/browse/SHRINKRES-81
> Project: ShrinkWrap Resolvers
> Issue Type: Task
> Components: api-maven, impl-maven
> Reporter: Michal Matloka
> Assignee: Michal Matloka
>
> TODO located in MavenStrategyBaseImpl
> // TODO Poor encapsulation, passing around Aether (Artifact) objects when we should be using our own
> // representation
> and
> MavenWorkingSession
> // TODO We're not really encapsulating much here, as we expose out Aether and Maven classes. Refactor this class and
> // usages to hide all implementation details of Maven and Aether *behind* this SPI facade
> Some of this refactors has to be made for SHRINKRES-27
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 5 months