Let me add an explanation: maven2 would automatically download junit but we added a custom configuration to prevent maven from downloading dependencies from untrusted repositories and junit is currently not available in the repositories we marked as trusted (ASF ones).

The fourth solution would be to add ibiblio as the last repository in the pom.xml:
-----
    <repository>
      <id>ibiblio</id>
      <name>Main maven repo</name>
      <url>http://repo1.maven.org/maven2</url>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
    </repository>
-----
This will automatically download junit when needed.

Stefano

Stefano Bagnara wrote:
Guillermo Grandes wrote:
well, I try this... mvn assembly:assembly say: "junit missing"
[...]
Missing:
----------
1) junit:junit:jar:3.8.1

 Try downloading the file manually from the project website.

 Then, install it using the command:
     mvn install:install-file -DgroupId=junit -DartifactId=junit \
         -Dversion=3.8.1 -Dpackaging=jar -Dfile=/path/to/file

 Path to dependency:
       1) org.apache.james:jspf:jar:0.9-SNAPSHOT
       2) junit:junit:jar:3.8.1
[...]
Any idea?

Yes, this is a bug.

You can fix this in 3 ways:
1) do the think explained above (download the jar and manually call the mvn install:install-file). 2) download the junit jar and put it in the jspf subfolder repos/third-party-m1/junit/jars/junit-3.8.1.jar 3) add "-Dmaven.test.skip=true" to your mvn command arguments so you don't need the tests to pass to build jspf.

Currently you will need #3 anyway because our tests do not pass in trunk.

I don't know if we should include junit in our repository or not, we'll talk about this later.

Stefano



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to