Frank,

With 1.8.0 I have the following which works:
 <dependency>
            <groupId>org.snmp4j.smi</groupId>
            <artifactId>snmp4j-smi-pro</artifactId>
            <version>1.8.0</version>
 </dependency>

For 1.9.2 I have the following which causes the Maven error:
 <dependency>
            <groupId>org.snmp4j.smi</groupId>
            <artifactId>snmp4j-smi-pro</artifactId>
            <version>1.9.2</version>
            <classifier>jar-with-dependencies</classifier>
 </dependency>

That is the only difference in the pom file from when it works and doesn’t.

I have taken the jar with dependencies and included it directly in the java 
build path in Eclipse as an external library and removed the dependency from my 
pom file.  This works correctly and I am able to build and run my application.

Thanks,
DonB



From: Frank Fock [mailto:f...@agentpp.com]
Sent: Wednesday, September 20, 2017 4:26 PM
To: Broderick, Don <d...@mitre.org>
Cc: snmp4j@agentpp.org
Subject: Re: [SNMP4J] SNMP4J-SMI-PRO Missing artifact in Maven repository?


Don,

The JASMI classes are in the packages com.agentpp.smi and com.agentpp.smiparser 
for example.
They are all included in the jar-with-dependencies.
Something must be still wrong with your pom.xml
A dependency to JASMI should not exists in that pom.xml nor induced due to 
transitive dependencies.

Best regards,
Frank

On 20. Sep 2017, at 17:16, Broderick, Don 
<d...@mitre.org<mailto:d...@mitre.org>> wrote:

Frank,

No problem, I am grateful you are being so helpful!

Unfortunately I am getting "Missing artifact com.oosnmp:jasmi:jar:4.2.2" now.  
I examined our Artifactory and see  
snmp4j-smi-pro-1.9.2-jar-with-dependencies.jar that is 893.84 KB.  When I 
examine what is in the jar using the Artifactory web interface I see under com 
it has agentpp, objectspace, and snmp4j.  Should it show oosnmp that has jasmi 
also?

Thanks for all your help,
DonB

-----Original Message-----
From: Frank Fock [mailto:f...@agentpp.com]
Sent: Thursday, September 14, 2017 8:37 PM
To: Broderick, Don <d...@mitre.org<mailto:d...@mitre.org>>
Cc: snmp4j@agentpp.org<mailto:snmp4j@agentpp.org>
Subject: Re: [SNMP4J] SNMP4J-SMI-PRO Missing artifact in Maven repository?

Don,

You are right. It was my fault. The classifier for the JAR with dependencies 
was 'jar-with-dep’ in 1.9.1 instead the “standard” classifier 
'jar-with-dependencies’.
I have fixed that with version 1.9.2 which is now available.

I took a long time to sort this out. Please excuse that. I had to understand 
how you access the repository with the JAR first, in order to understand what 
was going wrong.

Best regards,
Frank


On 14. Sep 2017, at 15:23, Broderick, Don 
<d...@mitre.org<mailto:d...@mitre.org>> wrote:

Frank,

We have a corporate repository using Artifactory that mirrors your repository.  
I can see the jar and pom files on our repository and the pom file there is the 
same as the one on your repository.  I have been consulting with some other 
people internally that are more experienced with Maven than I am and have not 
been able to resolve the issue.  I am unable to directly go to your repository 
due to the corporate firewall and security configuration of our network.

Artifactory says to use "jar-with-dep" classifier to access this
artifact.  I have tried this and get missing artifact for
jasmi:jar:4.2.2

This is the only artifact I am having issues with and this is only since 1.9.1. 
 If necessary I will have to see if I can manually load the jar on our 
repository using a simple pom file that won't need the classifier.

Thanks,
DonB

-----Original Message-----
From: Frank Fock [mailto:f...@agentpp.com]
Sent: Monday, September 11, 2017 6:18 PM
To: Broderick, Don <d...@mitre.org<mailto:d...@mitre.org>>
Cc: snmp4j@agentpp.org<mailto:snmp4j@agentpp.org>
Subject: Re: [SNMP4J] SNMP4J-SMI-PRO Missing artifact in Maven repository?

Hi Don,

I am confused. What Maven repository are you using? (And if it is not
oosnmp.net<http://oosnmp.net>, then how did you deploy SNMP4J-SMI-PRO there?)

Best regards,
Frank



On 11. Sep 2017, at 18:29, Broderick, Don 
<d...@mitre.org<mailto:d...@mitre.org>> wrote:

Hi Frank,

When I added the classifier I know get the following error:
Missing artifact
org.snmp4j.smi:snmp4j-smi-pro:jar:jar-with-dependencies:1.9.1

 <dependency>
            <groupId>org.snmp4j.smi</groupId>
            <artifactId>snmp4j-smi-pro</artifactId>
            <version>1.9.1</version>
            <classifier>jar-with-dependencies</classifier>
 </dependency>

Any other suggetions?

Thanks,
DonB

-----Original Message-----
From: Frank Fock [mailto:f...@agentpp.com]
Sent: Thursday, September 07, 2017 1:29 AM
To: Broderick, Don <d...@mitre.org<mailto:d...@mitre.org>>
Cc: snmp4j@agentpp.org<mailto:snmp4j@agentpp.org>
Subject: Re: [SNMP4J] SNMP4J-SMI-PRO Missing artifact in Maven repository?

Hi Don,

Please just add the following line to your dependency definition:

<classifier>jar-with-dependencies</classifier>

I have also added the complete example to the FAQ at:
https://oosnmp.net/confluence/pages/viewpage.action?pageId=5799973

Best regards,
Frank


On 6. Sep 2017, at 13:31, Broderick, Don 
<d...@mitre.org<mailto:d...@mitre.org>> wrote:

Sorry if this is a duplicate, I am not sure if the first one went out.

Frank,

I only have this in my POM, if I don't have this I will need to manually 
download and install the jar on each system.
<dependency>
            <groupId>org.snmp4j.smi</groupId>
            <artifactId>snmp4j-smi-pro</artifactId>
            <version>1.9.1</version>
</dependency>

When I build with 1.8.0 it works fine and the POM for 1.8.0 in your Maven 
repository is:

<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd<http://maven.apache.org/POM/4.0.0%20%0bhttp:/maven.apache.org/xsd/maven-4.0.0.xsd>">
<modelVersion>4.0.0</modelVersion>
<groupId>org.snmp4j.smi</groupId>
<artifactId>snmp4j-smi-pro</artifactId>
<version>1.8.0</version>
<description>SNMP4J-SMI-PRO MIB Parser API</description></project>

The POM in your repository for 1.9.1 is very different and lists the 
dependencies that are causing the problem.  Shouldn't the POM in the repository 
for 1.9.1 be the same as the 1.8.0 one except for the version number?

Thanks,
DonB

-----Original Message-----
From: Frank Fock [mailto:f...@agentpp.com]
Sent: Tuesday, August 29, 2017 5:13 PM
To: Broderick, Don <d...@mitre.org<mailto:d...@mitre.org>>
Cc: snmp4j@agentpp.org<mailto:snmp4j@agentpp.org>
Subject: Re: [SNMP4J] SNMP4J-SMI-PRO Missing artifact in Maven repository?

Hi Don,
The pom.xml your are using is wrong, i.e. remove all missing dependencies and 
use the SNMP4J SMI PRO jar that comes with the distribution file.
Best regards
Frank


Am 24.08.2017 um 23:20 schrieb Frank Fock 
<f...@agentpp.com<mailto:f...@agentpp.com>>:

Hi Don,

The artefacts you are missing are internal ones and are already included in the 
SNMP4J-SMI-PRO 1.9.1 JAR file.Why do you think that those classes are missing? 
Do you get any class not found exception?

Best regards,
Frank



On 24. Aug 2017, at 17:19, Broderick, Don 
<d...@mitre.org<mailto:d...@mitre.org>> wrote:

I am trying to upgrade so v1.9.1 and get the following error:
com.oosnmp:jasmi:jar:4.2.2, com.oosnmp:valueconverter:jar:3.0.4:
Could not find artifact

I have looked in https://oosnmp.net/dist/release/com/oosnmp/ and do not see 
jasmi, is this missing from the repository?

Thanks,
DonB
_______________________________________________
SNMP4J mailing list
SNMP4J@agentpp.org<mailto:SNMP4J@agentpp.org>
https://oosnmp.net/mailman/listinfo/snmp4j

_______________________________________________
SNMP4J mailing list
SNMP4J@agentpp.org<mailto:SNMP4J@agentpp.org>
https://oosnmp.net/mailman/listinfo/snmp4j





_______________________________________________
SNMP4J mailing list
SNMP4J@agentpp.org
https://oosnmp.net/mailman/listinfo/snmp4j

Reply via email to