mirror of https://github.com/apache/archiva.git
Fixes for JDK11
This commit is contained in:
parent
36249f6646
commit
f39fc917a8
|
@ -17,12 +17,10 @@
|
|||
~ specific language governing permissions and limitations
|
||||
~ under the License.
|
||||
-->
|
||||
<enunciate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://enunciate.webcohesion.com/schemas/enunciate-2.0.0.xsd">
|
||||
|
||||
<services>
|
||||
<rest defaultRestSubcontext="restServices"/>
|
||||
</services>
|
||||
<enunciate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/stoicflame/enunciate/v2.12.0/top/src/main/resources/META-INF/enunciate-2.2.0.xsd" >
|
||||
|
||||
<title>Apache Archiva REST API</title>
|
||||
<modules>
|
||||
|
||||
<cxf disabled="false"/>
|
||||
|
@ -32,12 +30,16 @@
|
|||
<obj-c disabled="true"/>
|
||||
<jaxws-ri disabled="true"/>
|
||||
<jaxws-support disabled="true"/>
|
||||
<jaxrs>
|
||||
<application path="restServices"/>
|
||||
</jaxrs>
|
||||
|
||||
<docs disabled="false" title="Apache Archiva REST API" includeExampleXml="true" includeExampleJson="true"
|
||||
includeDefaultDownloads="false" docsSubdir="" freemarkerTemplate="${project.basedir}/src/enunciate/archiva.fmt" css="${project.basedir}/src/enunciate/archiva.css" >
|
||||
<docs disabled="false"
|
||||
docsSubdir="" freemarkerTemplate="${project.basedir}/src/enunciate/archiva.fmt" css="${project.basedir}/src/enunciate/archiva.css" >
|
||||
<!--<war docsDir="apidocs" />-->
|
||||
</docs>
|
||||
|
||||
|
||||
</modules>
|
||||
|
||||
</enunciate>
|
|
@ -376,11 +376,13 @@ public class BrowseServiceTest
|
|||
// START SNIPPET: get-artifacts-by-property
|
||||
BrowseService browseService = getBrowseService( authorizationHeader, true );
|
||||
|
||||
List<Artifact> artifactDownloadInfos =
|
||||
browseService.getArtifactsByProperty( "org.name", "The Apache Software Foundation", TEST_REPO_ID );
|
||||
tryAssert( ( ) -> {
|
||||
List<Artifact> artifactDownloadInfos =
|
||||
browseService.getArtifactsByProperty( "org.name", "The Apache Software Foundation", TEST_REPO_ID );
|
||||
|
||||
assertThat( artifactDownloadInfos ).isNotNull().isNotEmpty().hasSize( 7 );
|
||||
// END SNIPPET: get-artifacts-by-property
|
||||
assertThat( artifactDownloadInfos ).isNotNull( ).isNotEmpty( ).hasSize( 7 );
|
||||
// END SNIPPET: get-artifacts-by-property
|
||||
} );
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -132,7 +132,7 @@ public class NewArtifactsRssFeedProcessorTest
|
|||
assertEquals( entries.size(), 1 );
|
||||
assertTrue(
|
||||
entries.get( 0 ).getTitle().contains( "New Artifacts in Repository 'test-repo' as of " ));
|
||||
assertTrue( entries.get( 0 ).getPublishedDate().toInstant().equals( whenGathered.toInstant() ) );
|
||||
assertTrue( entries.get( 0 ).getPublishedDate().toInstant().truncatedTo( ChronoUnit.MILLIS ).equals( whenGathered.toInstant().truncatedTo( ChronoUnit.MILLIS ) ) );
|
||||
}
|
||||
|
||||
private ArtifactMetadata createArtifact( String artifactId, String version, ZonedDateTime whenGathered )
|
||||
|
|
|
@ -17,25 +17,31 @@
|
|||
~ specific language governing permissions and limitations
|
||||
~ under the License.
|
||||
-->
|
||||
<enunciate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://enunciate.webcohesion.com/schemas/enunciate-2.0.0.xsd">
|
||||
|
||||
<services>
|
||||
<rest defaultRestSubcontext="archivaUiServices"/>
|
||||
</services>
|
||||
<enunciate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/stoicflame/enunciate/v2.12.0/top/src/main/resources/META-INF/enunciate-2.2.0.xsd">
|
||||
|
||||
<title>Archiva UI Rest API</title>
|
||||
<modules>
|
||||
|
||||
<jaxrs>
|
||||
<application path="archivaUiServices" />
|
||||
</jaxrs>
|
||||
|
||||
|
||||
<cxf disabled="false"/>
|
||||
<jersey disabled="true" />
|
||||
<jersey disabled="true"/>
|
||||
<c disabled="true"/>
|
||||
<csharp disabled="true"/>
|
||||
<obj-c disabled="true"/>
|
||||
<jaxws-ri disabled="true"/>
|
||||
<jaxws-support disabled="true"/>
|
||||
<jaxon1 disabled="true"/>
|
||||
|
||||
<docs disabled="false" title="Apache Archiva UI REST API" includeExampleXml="true" includeExampleJson="true"
|
||||
includeDefaultDownloads="false" docsSubdir="" freemarkerTemplate="${project.basedir}/src/enunciate/archiva.fmt" css="${project.basedir}/src/enunciate/archiva.css">
|
||||
<!-- <war docsDir="apidocs" />-->
|
||||
<docs disabled="false"
|
||||
docsSubdir=""
|
||||
freemarkerTemplate="${project.basedir}/src/enunciate/archiva.fmt"
|
||||
css="${project.basedir}/src/enunciate/archiva.css">
|
||||
<!-- <war docsDir="apidocs" />-->
|
||||
</docs>
|
||||
|
||||
</modules>
|
||||
|
|
Loading…
Reference in New Issue