Hello Barrie,

Thanks for your reply!

I removed the white spaces from the directory name.

Yes there is a classes in the test-classes directory.

The point you make about my mvn trying to install the artefact into the
jboss repository is very relevant but do I really need a repository manager
even though I am the only developer on this project? Don't you think there
might be something wrong with my settings.xml instead?

Here it is:

<?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";>
    <profiles>
        <profile>
            <id>julien</id>
            <repositories>
                <repository>
                    <id>jboss</id>
                    <url>http://repository.jboss.org/maven2</url>
                </repository>
                <repository>
                    <id>tapestry</id>
                    <url>http://tapestry.formos.com/maven-repository</url>
                </repository>
            </repositories>
        </profile>
    </profiles>
    <activeProfiles>
        <activeProfile>julien</activeProfile>
    </activeProfiles>
</settings>

I am sure I am missing something in the settings.xml file...

What do you think?

Julien.

P.S. I am still going to have a look at Nexus in the meantime.

2011/7/19 Barrie Treloar <baerr...@gmail.com>

> On Sun, Jul 17, 2011 at 7:21 PM, Julien Martin <bal...@gmail.com> wrote:
>
> Julien, you need to setup a repository manager at your work.
>
> [del]
> > [INFO] snapshot com.cheetah:cheetah-domain:1.0-SNAPSHOT: checking for
> > updates from jboss
> > [DEBUG] Using Wagon implementation lightweight from default mapping for
> > protocol http
> > [DEBUG] Checking for pre-existing User-Agent configuration.
> > [DEBUG] Adding User-Agent configuration.
> > [DEBUG] Connecting to repository: 'jboss' with url: '
> > http://repository.jboss.org/maven2/'.
> > [DEBUG] Using Wagon implementation lightweight from default mapping for
> > protocol http
> > [WARNING] repository metadata for: 'snapshot
> > com.cheetah:cheetah-domain:1.0-SNAPSHOT' could not be retrieved from
> > repository: jboss due to an error: Authorization failed: Access denied
> to:
> >
> http://repository.jboss.org/maven2/com/cheetah/cheetah-domain/1.0-SNAPSHOT/maven-metadata.xml
> > [DEBUG] Exception
> > org.apache.maven.wagon.TransferFailedException: Authorization failed:
> Access
>
> Your maven build is reaching out over the internet to look for things
> it will never find (i.e. your locally installed artifacts)
>
>
> From your output:
> [DEBUG]   (f) compileSourceRoots =
> [/home/julien/Documents/donnees/projets/Site emploi
> finance/java/cheetah/web/src/test/java]
> [DEBUG]   (f) compilerId = javac
> [DEBUG]   (f) debug = true
> [DEBUG]   (f) failOnError = true
> [DEBUG]   (f) fork = false
> [DEBUG]   (f) optimize = false
> [DEBUG]   (f) outputDirectory =
> /home/julien/Documents/donnees/projets/Site emploi
> finance/java/cheetah/web/target/test-classes
> [DEBUG]   (f) outputFileName = cheetah-web-1.0-SNAPSHOT
> [DEBUG]   (f) showDeprecation = false
> [DEBUG]   (f) showWarnings = false
> [DEBUG]   (f) source = 1.6
> [DEBUG]   (f) staleMillis = 0
> [DEBUG]   (f) target = 1.6
> [DEBUG]   (f) verbose = false
> [DEBUG] -- end configuration --
> [INFO] [compiler:testCompile {execution: default-testCompile}]
> [DEBUG] Using compiler 'javac'.
> [DEBUG] Source directories:
> [/home/julien/Documents/donnees/projets/Site emploi
> finance/java/cheetah/web/src/test/java]
> [DEBUG] Classpath: [/home/julien/Documents/donnees/projets/Site emploi
> [del]
> [DEBUG] Output directory: /home/julien/Documents/donnees/projets/Site
> emploi finance/java/cheetah/web/target/test-classes
> [INFO] Nothing to compile - all classes are up to date
>
> Either there is nothing in this
> "/home/julien/Documents/donnees/projets/Site emploi
> finance/java/cheetah/web/src/test/java" directory to compile or its
> all up to date.
> Can you confirm that there is a .class file in
> "/home/julien/Documents/donnees/projets/Site emploi
> finance/java/cheetah/web/target/test-classes" that matches
> CreateJobPostingTest?
>
> You can see from the output that no tests have been selected for running.:
> Running TestSuite
> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.362 sec
>
> i dont believe spaces in folder names is an issue, but you can try
> renaming your directory structure to avoid spaces.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

Reply via email to