Ivo K. Koga wrote:
> Hi Richard,
>
> When I type ant I got the same error:
>
> -----------
> [exec] [ERROR] BUILD ERROR
> [exec] [INFO]
> -------------------------------------------------------------
> -----------
> [exec] [INFO] The plugin
'org.apache.felix.plugins:maven-osgi-plugin
'
> does
> not exist or no valid version could be found
You could try to build tools/maven/maven-osgi/plugin manually too. This
is another plugin. Maven is strange with plugins, it wants to find them
in a repository first, even if they are part of the project you are
building. Thus you can sometimes fix your dependency issues by building
the plugins first so they get installed into your local repository. If
you build this plugin, then perhaps you can try ant at the top level
again.
I don't know why you are having this difficulty. It is almost like you
cannot access the snapshot repository.
>
> But when I type: mvn clean install, I got a:
> [INFO] BUILD SUCCESSFUL
>
> Is there any problem using mvn clean install instead of Ant build.xml?
"mvn clean install" won't do anything in the trunk because it won't find
any modules to build. Due to another Maven bug that we are working
around, we had to define different "packaging profiles" for our
different subprojects that use different maven packaging plugins.
Thus, you HAVE to specify a packaging profile to compile the subprojects
associated with the given packaging profile; look into the build.xml to
see what it does to get an idea.
For example, if you want to build the framework, core bundles, and
other, you MUST type:
mvn -Dpackaging=bundle clean install
This builds all subprojects that use the "maven-bundle-plugin". You can
search the pom.xml file for <profile> to see the various profiles that
are available.
We are hopeful that the Maven team will fix this packaging bug so that
in the future we can put all subprojects in the same profile and then we
won't need the ant file at all.
-> richard
>
> Regards,
>
> Ivo Koga
>
>
> On 3/8/07, Richard S. Hall <[EMAIL PROTECTED]> wrote:
>>
>> Strange. I just deleted my local maven repo and rebuilt from scratch
and
>> it worked for me. Make sure you try again, since sometimes these
things
>> are spurious.
>>
>> iPOJO definitely exists in the SNAPSHOT repo.
>>
>> Perhaps you could try to 'cd' into the iPOJO subprojects manually and
do
>> "mvn clean install" to see if you can get them to build. If so, then
try
>> again with the build.xml file.
>>
>> -> richard
>>
>> Ivo K. Koga wrote:
>> > Hi Felix!
>> >
>> > That was exactly the ant error. Thanks!
>> >
>> > But now I´m facing some problem inside maven (I think). This is the
>> > output:
>> >
>> > [exec] [ERROR] BUILD ERROR
>> > [exec] [INFO]
>> > -------------------------------------------------------------
>> > -----------
>> > [exec] [INFO] The plugin '
>> > org.apache.felix:org.apache.felix.ipojo.plugin' d
>> > oes not exist or no valid version could be found
>> >
>> > Does anyone know how to fix that?
>> >
>> > Regards
>> >
>> > Ivo Koga
>> >
>> >
>> > On 3/8/07, Felix Meschberger <[EMAIL PROTECTED]> wrote:
>> >>
>> >> Hi,
>> >>
>> >> This seems in fact to be a Windows issue :-)
>> >>
>> >> The problems seems to be that the maven bin folder contains a
mvn.bat
>> >> and
>> >> a
>> >> mvn file. The mvn.bat file is a dos batch file while mvn is the
unix
>> >> shell
>> >> script. It now seems that when ant is trying to call the mvn
>> executable,
>> >> the
>> >> Java VM or Windows or whoever does not resovle "mvn" to "mvn.bat".
>> If I
>> >> change 'executable="mvn"' to 'executable="mvn.bat"' it seems to
work.
>> >>
>> >> By testing for the OS and using a variable to take the mvn
executale
>> >> name,
>> >> I
>> >> could get to run on my windows and linux boxes:
>> >>
>> >> Regards
>> >> Felix
>> >>
>> >> The hacked up build.xml :
>> >> <!--
>> >> 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.
>> >> -->
>> >> <project default="all">
>> >> <target name="init">
>> >> <condition property="mvn" value="mvn.bat">
>> >> <os family="dos" />
>> >> </condition>
>> >> <condition property="mvn" value="mvn">
>> >> <not>
>> >> <isset property="mvn" />
>> >> </not>
>> >> </condition>
>> >> </target>
>> >> <target name="clean" depends="init">
>> >> <exec executable="${mvn}" failonerror="true">
>> >> <arg line="-Dpackaging=bundle clean" />
>> >> </exec>
>> >> <exec executable="${mvn}" failonerror="true">
>> >> <arg line="-Dpackaging=osgi-bundle clean" />
>> >> </exec>
>> >> <exec executable="${mvn}" failonerror="true">
>> >> <arg line="-Dpackaging=ipojo-bundle clean" />
>> >> </exec>
>> >> <exec executable="${mvn}" failonerror="true">
>> >> <arg line="-Dpackaging=osgi-bundle-mosgi clean" />
>> >> </exec>
>> >> </target>
>> >> <target name="install" depends="init">
>> >> <exec executable="${mvn}" failonerror="true">
>> >> <arg line="-Dpackaging=bundle install" />
>> >> </exec>
>> >> <exec executable="${mvn}" failonerror="true">
>> >> <arg line="-Dpackaging=osgi-bundle install" />
>> >> </exec>
>> >> <exec executable="${mvn}" failonerror="true">
>> >> <arg line="-Dpackaging=ipojo-bundle install" />
>> >> </exec>
>> >> <exec executable="${mvn}" failonerror="true">
>> >> <arg line="-Dpackaging=osgi-bundle-mosgi install" />
>> >> </exec>
>> >> </target>
>> >> <target name="all" depends="init">
>> >> <exec executable="${mvn}" failonerror="true">
>> >> <arg line="-Dpackaging=bundle clean install" />
>> >> </exec>
>> >> <exec executable="${mvn}" failonerror="true">
>> >> <arg line="-Dpackaging=osgi-bundle clean install" />
>> >> </exec>
>> >> <exec executable="${mvn}" failonerror="true">
>> >> <arg line="-Dpackaging=ipojo-bundle clean install" />
>> >> </exec>
>> >> <exec executable="${mvn}" failonerror="true">
>> >> <arg line="-Dpackaging=osgi-bundle-mosgi clean
>> install" />
>> >> </exec>
>> >> </target>
>> >> </project>
>> >>
>> >
>> >
>> >
>>
>
>
>