On Fri, 2 Sep 2005, Ashley Williams wrote: Hi,
first on your previous mail (one of them anyway): a local fix is easy, if you have the plugin checked out and your m2 is beta-1-SNAPSHOT. Just fix it and run m2 install. > Ok I get four different types of behaviour in eclipse depending on > what text I put in sourceDirectory after running eclipse:eclipse > > <sourceDirectory></sourceDirectory> - StringIndexOutOfBoundsException > running eclipse:eclipse I can imagine why.. Are your sources really in the same directory as where your pom.xml is? I.e. projectdir/pom.xml projectdir/com/yourcompany/SourceFile.java ? Eclipse won't like that! Anyway, fixed in svn HEAD. > <sourceDirectory>.</sourceDirectory> - sources in default package, > dependency libs are ther Works for me.If sources are in the default package that means that they don't have a 'package' declaration. Else eclipse would warn about the package declaration not matching the source location. > <sourceDirectory>/</sourceDirectory> - no package, no dependcy libs, > java files directly under project root icon Correct. Sources are expected in / but there aren't any. The rest of the files in the dir where .classpath and .project are are considered normal files, not marked as source. This is expected. > <sourceDirectory>\\</sourceDirectory> - no package yes depency libs, > java files directly under project root icon Same here. \ gets replaced with /. > Which is the syntax I should be using anyway? the relative path to the directory where your package structure begins. '.' was ok. -- Kenney > > On 2 Sep 2005, at 17:32, Ashley Williams wrote: > > > Actually forget my last comment I've just seen that eclipse:eclipse > > fails in the same way in the following method: > > > > private static String toRelative( File basedir, String > > absolutePath ) > > { > > String relative; > > > > if ( absolutePath.startsWith( basedir.getAbsolutePath() ) ) > > { > > JUST HERE>>> relative = absolutePath.substring > > ( basedir.getAbsolutePath().length() + 1 ); > > } > > else > > { > > relative = absolutePath; > > } > > > > relative = StringUtils.replace( relative, "\\", "/" ); > > > > return relative; > > } > > > > exception is java.lang.StringIndexOutOfBoundsException: String > > index out of range: -1 > > > > Also if I wanted to do a local fix, how easy is it to build the > > eclipse plugin on its own and get it into my repository?? > > > > Thanks > > - AW > > > > > > > > On 2 Sep 2005, at 17:17, Ashley Williams wrote: > > > > > >> Ok the latest maven seems to work despite the build exception and > >> happily I was able to run the eclipse:eclipse goal successfully. > >> However when I open the project in eclipse the files appear under > >> the (default package) node which means eclipse red crosses > >> everywhere. This despite the fact that the source code was created > >> under com.blah.... and installed okay. > >> > >> > >> On 2 Sep 2005, at 16:27, Ashley Williams wrote: > >> > >> > >> > >>> Oh happy day - not! > >>> > >>> Just had a glance at my console only to see the pasted text below > >>> - is this going to be a build breaker? I'm using Java 5 by > >>> default, is this a mistake?? Also Mac OS X doesn't appear to have > >>> a tools.jar file. > >>> > >>> > >>> > >>> COPY AND PASTE... > >>> Running maven-core integration tests ... > >>> > >>> Using default local repository: /Users/developer/.m2/repository > >>> it0063... FAILED > >>> ----- Standard Out ----- > >>> Command: /Applications/maven-latest/bin/m2 -e --no-plugin- > >>> registry --batch-mode -Dmaven.repo.local=/Users/developer/.m2/ > >>> repository clean:clean package > >>> > >>> ----- Standard Error ----- > >>> Exit code: 1 > >>> > >>> >>>>>> Error Stacktrace: > >>> org.apache.maven.it.VerificationException > >>> at org.apache.maven.it.Verifier.executeGoals > >>> (Verifier.java:574) > >>> at org.apache.maven.it.Verifier.main(Verifier.java:677) > >>> <<<<<< Error Stacktrace > >>> Log file contents: > >>> + Error stacktraces are turned on. > >>> [INFO] Searching repository for plugin with prefix: 'clean'. > >>> [INFO] > >>> -------------------------------------------------------------------- > >>> -------- > >>> [INFO] Building org.apache.maven.it:maven-core-it0063:jar:1.0 > >>> [INFO] task-segment: [clean:clean, package] > >>> [INFO] > >>> -------------------------------------------------------------------- > >>> -------- > >>> [INFO] [clean:clean] > >>> [INFO] [resources:resources] > >>> [INFO] > >>> -------------------------------------------------------------------- > >>> -------- > >>> [INFO] BUILD FAILURE > >>> [INFO] > >>> -------------------------------------------------------------------- > >>> -------- > >>> [INFO] Main Error: > >>> System artifact: jdk-tools:jdk-tools:jar:1.4.2 not found in > >>> path: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/ > >>> Home/../lib/tools.jar > >>> jdk-tools:jdk-tools:1.4.2:jar > >>> > >>> Path to dependency: > >>> 1) org.apache.maven.it:maven-core-it0063:jar:1.0 > >>> 2) jdk-tools:jdk-tools:jar:1.4.2 > >>> > >>> > >>> > >>> Root error: > >>> System artifact: jdk-tools:jdk-tools:jar:1.4.2 not found in > >>> path: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/ > >>> Home/../lib/tools.jar > >>> jdk-tools:jdk-tools:1.4.2:jar > >>> > >>> Path to dependency: > >>> 1) org.apache.maven.it:maven-core-it0063:jar:1.0 > >>> 2) jdk-tools:jdk-tools:jar:1.4.2 > >>> > >>> > >>> > >>> On 2 Sep 2005, at 15:52, Trygve Laugstøl wrote: > >>> > >>> > >>> > >>> > >>>> On Fri, Sep 02, 2005 at 03:34:59PM +0100, Ashley Williams wrote: > >>>> > >>>> > >>>> > >>>> > >>>>> Don't understand what you're saying the problem is, but will > >>>>> the fix > >>>>> be quick, i.e. 10 minutes?? If so then I don't mind waiting... > >>>>> > >>>>> > >>>>> > >>>>> > >>>> > >>>> Try now. > >>>> > >>>> -- > >>>> Trygve > >>>> > >>>> > >>>> > >>>> > >>> > >>> > >>> -------------------------------------------------------------------- > >>> - > >>> To unsubscribe, e-mail: [EMAIL PROTECTED] > >>> For additional commands, e-mail: [EMAIL PROTECTED] > >>> > >>> > >>> > >>> > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > >> > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]