azure-sdk-for-java icon indicating copy to clipboard operation
azure-sdk-for-java copied to clipboard

compile failure on master -- missing dependency?

Open ajfabbri opened this issue 11 years ago • 2 comments

On master:

$ mvn clean verify

...

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.910 s
[INFO] Finished at: 2015-09-16T10:56:50-07:00
[INFO] Final Memory: 29M/447M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project azure-core-test: Compilation failure: Compilation failure:
[ERROR] /Users/fabbri/Code/azure-sdk-for-java/core/azure-core-test/src/main/java/com/microsoft/windowsazure/MockIntegrationTestBase.java:[26,23] package org.mortbay.log does not exist
[ERROR] /Users/fabbri/Code/azure-sdk-for-java/core/azure-core-test/src/main/java/com/microsoft/windowsazure/MockIntegrationTestBase.java:[178,25] cannot find symbol
[ERROR] symbol: variable Log
[ERROR] /Users/fabbri/Code/azure-sdk-for-java/core/azure-core-test/src/main/java/com/microsoft/windowsazure/MockIntegrationTestBase.java:[206,25] cannot find symbol
[ERROR] symbol: variable Log
[ERROR] /Users/fabbri/Code/azure-sdk-for-java/core/azure-core-test/src/main/java/com/microsoft/windowsazure/MockIntegrationTestBase.java:[226,25] cannot find symbol
[ERROR] symbol: variable Log
[ERROR] -> [Help 1]

Where is the org.mortbay.log dependency supposed to come from? I see no mention in any of the pom.xml files.

My maven environment:

$ mvn -v
Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T04:57:37-07:00)
Maven home: /usr/local/Cellar/maven/3.3.3/libexec
Java version: 1.7.0_80, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.10.5", arch: "x86_64", family: "mac"

ajfabbri avatar Sep 16 '15 17:09 ajfabbri

Hi,

I also hit this issue, are you by any chance using an internal mirror in Maven? My user level Maven settings are messy, so to fix this issue I created a clean settings file that I use to compile the Azure Java SDK:

~/.m2/settingsPublic.xml

<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/settings/1.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
    <localRepository>${user.home}/.m2/repositoryPublic</localRepository>
</settings>

Then use -s to build: mvn clean install -s ~/.m2/settingsPublic.xml I am sure there are better solutions, but I do not really want to clean my settings file :)

DanielGuarnieri avatar Dec 20 '15 17:12 DanielGuarnieri

obsolete - please use the latest version of the Azure Management Libraries for Java.

martinsawicki avatar Jul 25 '17 20:07 martinsawicki