Sonatype Nexus下载罐子的问题

时间:2016-03-17 08:56:31

标签: maven build repository nexus dynamic-jasper

我正在尝试为我的应用程序配置SonaType Nexus OSS,目前当构建从Web上的相应存储库下载jar时。该 设置文件的结构是:

    Try
            If uni = guessnumber Then
                MessageBox.Show("You guessed my Number!")
            ElseIf uni < guessnumber Then
                MessageBox.Show("Your guess is too low")
            ElseIf uni > guessnumber Then
       MessageBox.Show("Your guess is too high.")
       End If
 Catch E1 As InvalidCastException
MessageBox.Show("Please enter a number and try again.")
  End Try

我的应用程序正在使用Dynamic Jasper,我必须在pom中明确提到存储库:

<settings>
  <mirrors>
    <mirror>
      <!--This sends everything else to /public -->
      <id>nexus</id>
      <mirrorOf>*</mirrorOf>
      <url>http://localhost:8081/nexus/content/groups/public</url>
    </mirror>
  </mirrors>
  <profiles>
    <profile>
      <id>nexus</id>
      <!--Enable snapshots for the built in central repo to direct -->
      <!--all requests to nexus via the mirror -->
      <repositories>
        <repository>
          <id>central</id>
          <url>http://central</url>
          <releases><enabled>true</enabled></releases>
          <snapshots><enabled>true</enabled></snapshots>
        </repository>
      </repositories>
     <pluginRepositories>
        <pluginRepository>
          <id>central</id>
          <url>http://central</url>
          <releases><enabled>true</enabled></releases>
          <snapshots><enabled>true</enabled></snapshots>
        </pluginRepository>
      </pluginRepositories>
    </profile>
  </profiles>
  <activeProfiles>
    <!--make the profile active all the time -->
    <activeProfile>nexus</activeProfile>
  </activeProfiles>
</settings>

相应的依赖是:

<repository>
    <id>djmaven2</id>
    <url>http://nexus.fdvs.com.ar/content/groups/public/</url>
    <name>DynamicJasper public Repository</name>
</repository>

不提及-s settings.xml,构建工作完美,但是当我传递设置文件时,我收到此错误:

<dependency>
    <groupId>ar.com.fdvs</groupId>
    <artifactId>DynamicJasper</artifactId>
    <version>5.0.0</version>
</dependency>

我甚至手动将工件上传到Nexus声纳型Nexus的第三方存储库,但这也无济于事。

有人可以建议我在哪里出错吗?

0 个答案:

没有答案
相关问题