I'm attempted to manually add JARs to Artifactory through the bundle
upload, but Maven is unable to resolve the artifacts in the search.  I'll
describe everything below, but note that everything looks good in
Artifactory.  I can see the jars through the web UI, but the dependency
search in Netbeans can't find the added libraries.  I don't see any errors
in the log (Glassfish's server.log), either.  Do you see anything that I'm
overlooking?

First, my ~/.m2/settings.xml:
$ more settings.xml
<?xml version="1.0" encoding="UTF-8"?>
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd"; xmlns="
http://maven.apache.org/SETTINGS/1.0.0";
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>

    <profiles>
        <profile>
            <repositories>
                <repository>
                    <snapshots>
                        <enabled>true</enabled>
                    </snapshots>
                    <id>central</id>
                    <name>libs-release</name>
                    <url>http://192.168.1.145:8080/artifactory/libs-release
</url>
                </repository>
                <repository>
                    <snapshots />
                    <id>snapshots</id>
                    <name>libs-snapshot</name>
                    <url>http://192.168.1.145:8080/artifactory/libs-snapshot
</url>
                </repository>
            </repositories>
            <pluginRepositories>
                <pluginRepository>
                    <snapshots>
                        <enabled>false</enabled>
                    </snapshots>
                    <id>central</id>
                    <name>plugins-release</name>
                    <url>
http://192.168.1.145:8080/artifactory/plugins-release</url>
                </pluginRepository>
                <pluginRepository>
                    <snapshots />
                    <id>snapshots</id>
                    <name>plugins-snapshot</name>
                    <url>
http://192.168.1.145:8080/artifactory/plugins-snapshot</url>
                </pluginRepository>
            </pluginRepositories>
            <id>artifactory</id>
        </profile>
    </profiles>
    <activeProfiles>
        <activeProfile>artifactory</activeProfile>
    </activeProfiles>
</settings>

*====================================*
Next, testing the config:
$ mvn help:effective-settings
[INFO] Scanning for projects...
[INFO]

[INFO]
------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-help-plugin:2.2:effective-settings (default-cli) @
standalone-pom ---
[INFO]
Effective user-specific configuration settings:

<?xml version="1.0" encoding="UTF-8"?>
<!-- ======================================================================
-->
<!--
-->
<!-- Generated by Maven Help Plugin on 2013-04-05T04:11:36
-->
<!-- See: http://maven.apache.org/plugins/maven-help-plugin/
-->
<!--
-->
<!-- ======================================================================
-->

<!-- ======================================================================
-->
<!--
-->
<!-- Effective Settings for 'jmanko' on 'PCID075'
-->
<!--
-->
<!-- ======================================================================
-->

<settings xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="
http://maven.apache.org/SETTINGS/1.1.0
http://maven.apache.org/xsd/settings-1.1.0.xsd";>
  <localRepository xmlns="http://maven.apache.org/SETTINGS/1.1.0
">/home/jmanko/.m2/repository</localRepository>
  <profiles xmlns="http://maven.apache.org/SETTINGS/1.1.0";>
    <profile>
      <repositories>
        <repository>
          <snapshots />
          <id>central</id>
          <name>libs-release</name>
          <url>http://192.168.1.145:8080/artifactory/libs-release</url>
        </repository>
        <repository>
          <snapshots />
          <id>snapshots</id>
          <name>libs-snapshot</name>
          <url>http://192.168.1.145:8080/artifactory/libs-snapshot</url>
        </repository>
      </repositories>
      <pluginRepositories>
        <pluginRepository>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
          <id>central</id>
          <name>plugins-release</name>
          <url>http://192.168.1.145:8080/artifactory/plugins-release</url>
        </pluginRepository>
        <pluginRepository>
          <snapshots />
          <id>snapshots</id>
          <name>plugins-snapshot</name>
          <url>http://192.168.1.145:8080/artifactory/plugins-snapshot</url>
        </pluginRepository>
      </pluginRepositories>
      <id>artifactory</id>
    </profile>
    <profile>
      <repositories>
        <repository>
          <releases>
            <updatePolicy>never</updatePolicy>
          </releases>
          <snapshots>
            <updatePolicy>never</updatePolicy>
          </snapshots>
          <id>jboss-public-repository-group</id>
          <name>JBoss Public Maven Repository Group</name>
          <url>https://repository.jboss.org/nexus/content/groups/public/
</url>
        </repository>
      </repositories>
      <pluginRepositories>
        <pluginRepository>
          <releases>
            <updatePolicy>never</updatePolicy>
          </releases>
          <snapshots>
            <updatePolicy>never</updatePolicy>
          </snapshots>
          <id>jboss-public-repository-group</id>
          <name>JBoss Public Maven Repository Group</name>
          <url>https://repository.jboss.org/nexus/content/groups/public/
</url>
        </pluginRepository>
      </pluginRepositories>
      <id>jboss-public-repository</id>
    </profile>
  </profiles>
  <activeProfiles xmlns="http://maven.apache.org/SETTINGS/1.1.0";>
    <activeProfile>artifactory</activeProfile>
    <activeProfile>jboss-public-repository</activeProfile>
  </activeProfiles>
  <pluginGroups xmlns="http://maven.apache.org/SETTINGS/1.1.0";>
    <pluginGroup>org.apache.maven.plugins</pluginGroup>
    <pluginGroup>org.codehaus.mojo</pluginGroup>
  </pluginGroups>
</settings>

[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1.008s
[INFO] Finished at: Fri Apr 05 16:11:36 EDT 2013
[INFO] Final Memory: 6M/238M
[INFO]
------------------------------------------------------------------------

*========================================*
Next, the layout of the upload tar.gz file:
org/libreoffice/uno-parent/4.0.2/pom.xml
org/libreoffice/unoil/4.0.2/unoil-4.0.2.jar
org/libreoffice/ridl/4.0.2/ridl-4.0.2.jar
org/libreoffice/officebean/4.0.2/officebean-4.0.2.jar
org/libreoffice/jurt/4.0.2/jurt-4.0.2.jar
org/libreoffice/juh/4.0.2/juh-4.0.2.jar

*========================================*

The contents of org/libreoffice/uno-parent/4.0.2/pom.xml:
<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance";
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
    <modelVersion>4.0.0</modelVersion>
    <groupId>org.libreoffice</groupId>
    <artifactId>uno-parent</artifactId>
    <version>4.0.2</version>

    <dependencies>
        <dependency>
            <groupId>org.libreoffice</groupId>
            <artifactId>juh</artifactId>
            <version>4.0.2</version>
        </dependency>
        <dependency>
            <groupId>org.libreoffice</groupId>
            <artifactId>jurt</artifactId>
            <version>4.0.2</version>
        </dependency>
        <dependency>
            <groupId>org.libreoffice</groupId>
            <artifactId>officebean</artifactId>
            <version>4.0.2</version>
        </dependency>
        <dependency>
            <groupId>org.libreoffice</groupId>
            <artifactId>ridl</artifactId>
            <version>4.0.2</version>
        </dependency>
        <dependency>
            <groupId>org.libreoffice</groupId>
            <artifactId>unoil</artifactId>
            <version>4.0.2</version>
        </dependency>
    </dependencies>
</project>

*========================================*

Tracing one of the jars:
$ GET
http://192.168.1.145:8080/artifactory/libs-release/org/libreoffice/juh/4.0.2/juh-4.0.2.jar?trace
Request ID: 5f344432
Repo Path ID: libs-release:org/libreoffice/juh/4.0.2/juh-4.0.2.jar
Method Name: GET
User: anonymous
Time: 2013-04-05T16:17:44.797-04:00
Thread: http-thread-pool-8080(5)
Steps:
2013-04-05T16:17:44.797-04:00 Received request
2013-04-05T16:17:44.797-04:00 Request source = 192.168.1.132, Last modified
= 31-12-69 18:59:59 EST, If modified since = -1, Thread name =
http-thread-pool-8080(5)
2013-04-05T16:17:44.798-04:00 Retrieving info
2013-04-05T16:17:44.798-04:00 Consulting the virtual repo download strategy
2013-04-05T16:17:44.798-04:00 Trying to retrieve resource info from the
local storage
2013-04-05T16:17:44.798-04:00 Unable to find resource in
libs-release:org/libreoffice/juh/4.0.2/juh-4.0.2.jar
2013-04-05T16:17:44.798-04:00 Releasing the cached resource read lock
2013-04-05T16:17:44.798-04:00 Searching for info in aggregated repositories
2013-04-05T16:17:44.798-04:00 Preparing list of aggregated repositories to
search in
2013-04-05T16:17:44.798-04:00 Appending the virtual repository
'libs-release'
2013-04-05T16:17:44.798-04:00 Appending the virtual repository
'libs-release'
2013-04-05T16:17:44.798-04:00 Appending the virtual repository
'libs-release'
2013-04-05T16:17:44.798-04:00 Appending collective local repositories
2013-04-05T16:17:44.798-04:00 Appending collective local cache repositories
2013-04-05T16:17:44.798-04:00 Appending collective remote repositories
2013-04-05T16:17:44.798-04:00 Intercepting info request with
'MavenMetadataInterceptor'
2013-04-05T16:17:44.798-04:00 Intercepting info request with
'PomInterceptor'
2013-04-05T16:17:44.798-04:00 Processing request as a release resource
2013-04-05T16:17:44.798-04:00 Searching for the resource within
libs-release-local
2013-04-05T16:17:44.800-04:00 Identified resource as a file
2013-04-05T16:17:44.800-04:00 Releasing the read lock from the resource
2013-04-05T16:17:44.800-04:00 Resource was found in libs-release-local
2013-04-05T16:17:44.800-04:00 Resource is an exact match - returning
2013-04-05T16:17:44.800-04:00 Returning resource as found in the aggregated
repositories
2013-04-05T16:17:44.800-04:00 Intercepting found resource with
'MavenMetadataInterceptor'
2013-04-05T16:17:44.800-04:00 Intercepting found resource with
'PomInterceptor'
2013-04-05T16:17:44.801-04:00 Requested resource is found = true
2013-04-05T16:17:44.801-04:00 Request is HEAD = false
2013-04-05T16:17:44.801-04:00 Request is for a checksum = false
2013-04-05T16:17:44.801-04:00 Target repository is not remote or doesn't
store locally = true
2013-04-05T16:17:44.801-04:00 Requested resource was not modified = false
2013-04-05T16:17:44.801-04:00 Responding with found resource
2013-04-05T16:17:44.801-04:00 Executing any AltResponse user plugins that
may exist
2013-04-05T16:17:44.801-04:00 Alternative response status is set to -1 and
message to 'null'
2013-04-05T16:17:44.801-04:00 Found no alternative content handles
2013-04-05T16:17:44.801-04:00 Retrieving a content handle from target repo
2013-04-05T16:17:44.801-04:00 The requested resource isn't pre-resolved
2013-04-05T16:17:44.802-04:00 Target repository isn't virtual - verifying
that downloading is allowed
2013-04-05T16:17:44.802-04:00 Creating a resource handle from
'libs-release-local'
2013-04-05T16:17:44.802-04:00 Identified requested resource as a file
2013-04-05T16:17:44.819-04:00 Requested resource is an ordinary artifact -
using normal content handle with length '57070'
2013-04-05T16:17:44.819-04:00 Executing any BeforeDownload user plugins
that may exist
2013-04-05T16:17:44.819-04:00 Responding with selected content handle
2013-04-05T16:17:44.819-04:00 Request succeeded

*========================================*
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to