// Path: src/main/java/com/tobedevoured/naether/Const.java
// public final class Const {
//     
//     public static final String TEST_JAR = "test-jar";
//     public static final String POM = "pom";
//     public static final String JAR = "jar";
//     public static final String TEST = "test";
//     
//     public static final String _TO_ = " to ";
//     public static final String _FROM_ = " from ";
// }


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.sonatype.aether.AbstractRepositoryListener;
import org.sonatype.aether.RepositoryEvent;
import com.tobedevoured.naether.Const;
package com.tobedevoured.naether.repo;

/**
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements. See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership. The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License. You may obtain a copy of the License at
   *
 * http://www.apache.org/licenses/LICENSE-2.0
   *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */





/**
 * Based on Sonatype's
 * https://github.com/sonatype/sonatype-aether/blob/master/aether-demo/src/main/java/demo/util/ConsoleRepositoryListener.java
 */
public class LogRepositoryListener
    extends AbstractRepositoryListener {

    private static Logger log = LoggerFactory.getLogger("NaetherRepository");

    public void artifactDeployed( RepositoryEvent event )
    {
// Path: src/main/java/com/tobedevoured/naether/Const.java
// public final class Const {
//     
//     public static final String TEST_JAR = "test-jar";
//     public static final String POM = "pom";
//     public static final String JAR = "jar";
//     public static final String TEST = "test";
//     
//     public static final String _TO_ = " to ";
//     public static final String _FROM_ = " from ";
// }


// Path: src/main/java/com/tobedevoured/naether/repo/LogRepositoryListener.java
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.sonatype.aether.AbstractRepositoryListener;
import org.sonatype.aether.RepositoryEvent;
import com.tobedevoured.naether.Const;

package com.tobedevoured.naether.repo;

/**
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements. See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership. The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License. You may obtain a copy of the License at
   *
 * http://www.apache.org/licenses/LICENSE-2.0
   *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */





/**
 * Based on Sonatype's
 * https://github.com/sonatype/sonatype-aether/blob/master/aether-demo/src/main/java/demo/util/ConsoleRepositoryListener.java
 */
public class LogRepositoryListener
    extends AbstractRepositoryListener {

    private static Logger log = LoggerFactory.getLogger("NaetherRepository");

    public void artifactDeployed( RepositoryEvent event )
    {
        log.info( "Deployed " + event.getArtifact() + Const._TO_ + event.getRepository() );