Hello

I now got a little bit further. I have run the 'test' and 'install' targets 
correctly, but when I try to create a distribution package (according to 
instrictions on http://cwiki.apache.org/FTPSERVER/building.html)  i get another 
error (see below). Do I have to manually download the ftplet-api manually, or 
is this an error you can correct?

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: org.apache.ftpserver
ArtifactId: ftplet-api
Version: 1.0-incubator-SNAPSHOT

Reason: Unable to download the artifact from any repository

Try downloading the file manually from the project website.

Then, install it using the command:
    mvn install:install-file -DgroupId=org.apache.ftpserver -DartifactId=ftplet-
api \
        -Dversion=1.0-incubator-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file


  org.apache.ftpserver:ftplet-api:jar:1.0-incubator-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository)


[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to find artifact.

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:564)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:480)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:459)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:311)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:278)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to find artifa
ct.
        at org.apache.maven.plugin.dependency.fromConfiguration.AbstractFromConf
igurationMojo.getArtifact(AbstractFromConfigurationMojo.java:213)
        at org.apache.maven.plugin.dependency.fromConfiguration.AbstractFromConf
igurationMojo.getProcessedArtifactItems(AbstractFromConfigurationMojo.java:139)
        at org.apache.maven.plugin.dependency.fromConfiguration.UnpackMojo.execu
te(UnpackMojo.java:67)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:420)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:539)
        ... 16 more
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable
to download the artifact from any repository

Try downloading the file manually from the project website.

Then, install it using the command:
    mvn install:install-file -DgroupId=org.apache.ftpserver -DartifactId=ftplet-
api \
        -Dversion=1.0-incubator-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file


  org.apache.ftpserver:ftplet-api:jar:1.0-incubator-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository)

        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
faultArtifactResolver.java:197)
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
faultArtifactResolver.java:73)
        at org.apache.maven.plugin.dependency.fromConfiguration.AbstractFromConf
igurationMojo.getArtifact(AbstractFromConfigurationMojo.java:205)
        ... 20 more
Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to downl
oad the artifact from any repository
        at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(Def
aultWagonManager.java:308)
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
faultArtifactResolver.java:185)
        ... 22 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9 seconds
[INFO] Finished at: Sat Feb 24 07:46:34 CET 2007
[INFO] Final Memory: 13M/24M
[INFO] ------------------------------------------------------------------------

-----Oprindelig meddelelse-----
Fra: news [mailto:[EMAIL PROTECTED] På vegne af Niklas Gustavsson
Sendt: 23. februar 2007 17:40
Til: [email protected]
Emne: [Possible SPAM] Re: cannot build ftpserver from trunk
Prioritet: Lav

Benny Pedersen wrote:
> Hello
> 
> I'm trying to get the apache FtpServer up and running and have some 
> problems. I have never used Maven, so maybe I have just overlooked 
> something.
> 
> Here is what i have done so far:
> 
> 
> Downloaded Maven 2.0.5 and added <maven-home>\bin to PATH
> 
> C:\src>svn checkout
> http://svn.apache.org/repos/asf/incubator/ftpserver/trunk ftpserver
> 
> cd c:\src\ftpserver
> 
> mvn -U -e test
> (output from unit tests)
> 
> After the section 'Apache Incubator FtpServer Admin GUI' i get the 
> following error:
> org.apache.maven.lifecycle.LifecycleExecutionException: No Java test 
> frameworks found

I belive this might be due to a bug in the Maven Surefire plugin. I've added to 
our POM to specify the latest released version of Surefire to make sure you get 
the right version when building. Could you please try again with the latest 
from trunk? Also, what Maven version are you using?

> After Googl'ing a little bit around, I added the following entry ind 
> the
> ftpserver/pom.xml:
>  
>       <plugin>
>          <groupId>org.apache.maven.plugins</groupId>
>          <artifactId>maven-surefire-plugin</artifactId>
>          <configuration>
>            <skip>true</skip>
>          </configuration>
>        </plugin>
>  
> And now the test was successfull!

That would disable all the unit tests which we don't really want :-)

> I then did a mvn -U -e install wich also completed successfully.
> 
> Finally, i ran
> 
> mvn -U -e assembly
>  
> wich gave me the following trace:
>  
> org.apache.maven.BuildFailureException: Invalid task 'assembly': you 
> must specif y a valid lifecycle phase, or a goal in the format 
> plugin:goal or
> pluginGroupId:
> pluginArtifactId:pluginVersion:goal
> 
> Now i'm stuck. I don't know what maven i trying to tell me.

That me writing incorrect documentation (I'm guessing you got this from our 
site). I've now updated the documentation. Sorry for the confusion:
http://cwiki.apache.org/FTPSERVER/building.html

Please ask further if this doesn't help you!

/niklas

Reply via email to