New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with clashing names (different cases) on windows #215

Closed
drdozer opened this Issue Jun 25, 2013 · 9 comments

Comments

Projects
None yet
3 participants
@drdozer

drdozer commented Jun 25, 2013

I have a 3rd party XSD (a whole slew of them that fit together) which define things that differ only by case. This causes Very Bad Things to happen on windows. It seems to work on linux.

Schemas like this exist 'in the wild' and I don't own them so can't fix the problem at the XSD level. Can scalaxb do something more sensible to avoid these problems? For example, scoping generated entities so that they are less likely to clash.

Here's an example schema that causes problem:

ftp://ftp.sra.ebi.ac.uk/meta/xsd/sra_1_5

ENA.root.xsd is the parent xsd. It imports all the others.

@eed3si9n

This comment has been minimized.

Show comment
Hide comment
@eed3si9n

eed3si9n Jun 25, 2013

Owner

Thanks for opening this. Have you tried --prepend-family (prependFamily in scalaxb in Comple := true) that I mentioned? I am wondering if it could provide a workaround.

Owner

eed3si9n commented Jun 25, 2013

Thanks for opening this. Have you tried --prepend-family (prependFamily in scalaxb in Comple := true) that I mentioned? I am wondering if it could provide a workaround.

@drdozer

This comment has been minimized.

Show comment
Hide comment
@drdozer

drdozer Jun 25, 2013

What is the maven foo for this? Do I put something in the plugin's block?

drdozer commented Jun 25, 2013

What is the maven foo for this? Do I put something in the plugin's block?

@eed3si9n

This comment has been minimized.

Show comment
Hide comment
@eed3si9n

eed3si9n Jun 25, 2013

Owner

Normally yes, but mvn-scalaxb mojo seems to be missing prependFamily. /cc @martiell

Owner

eed3si9n commented Jun 25, 2013

Normally yes, but mvn-scalaxb mojo seems to be missing prependFamily. /cc @martiell

@martiell

This comment has been minimized.

Show comment
Hide comment
@martiell

martiell Jun 25, 2013

Collaborator

Try scalaxb-maven-plugin 1.1.1-SNAPSHOT with prependFamily in the configuration:

      <plugin>
        <groupId>org.scalaxb</groupId>
        <artifactId>scalaxb-maven-plugin</artifactId>
        <version>1.1.1-SNAPSHOT</version>
        <configuration>
          <prependFamily>true</prependFamily>
          <!-- ... -->
        </configuration>
        <executions>
          <execution>
            <id>scalaxb</id>
            <goals>
              <goal>generate</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

You can also use -Dscalaxb.prependFamily=true.

Collaborator

martiell commented Jun 25, 2013

Try scalaxb-maven-plugin 1.1.1-SNAPSHOT with prependFamily in the configuration:

      <plugin>
        <groupId>org.scalaxb</groupId>
        <artifactId>scalaxb-maven-plugin</artifactId>
        <version>1.1.1-SNAPSHOT</version>
        <configuration>
          <prependFamily>true</prependFamily>
          <!-- ... -->
        </configuration>
        <executions>
          <execution>
            <id>scalaxb</id>
            <goals>
              <goal>generate</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

You can also use -Dscalaxb.prependFamily=true.

@drdozer

This comment has been minimized.

Show comment
Hide comment
@drdozer

drdozer Jun 25, 2013

I've managed to coax sbt into building the project from a git checkout but it's publishing the artifacts to .ivy2 rather than .m2. What's the trick for getting these artifacts somewhere that I can see them in my maven build?

drdozer commented Jun 25, 2013

I've managed to coax sbt into building the project from a git checkout but it's publishing the artifacts to .ivy2 rather than .m2. What's the trick for getting these artifacts somewhere that I can see them in my maven build?

@eed3si9n

This comment has been minimized.

Show comment
Hide comment
@eed3si9n

eed3si9n Jun 26, 2013

Owner

What's the trick for getting these artifacts somewhere that I can see them in my maven build?

With current sbt 0.12, it's a bit hard but doable. See Using publish-local to publish to local Maven repository
.

Owner

eed3si9n commented Jun 26, 2013

What's the trick for getting these artifacts somewhere that I can see them in my maven build?

With current sbt 0.12, it's a bit hard but doable. See Using publish-local to publish to local Maven repository
.

@drdozer

This comment has been minimized.

Show comment
Hide comment
@drdozer

drdozer Jun 26, 2013

OK, tried that. No lollipop. Still getting lots of case warnings.

On 25 June 2013 23:21, Martin Ellis notifications@github.com wrote:

Try scalaxb-maven-plugin 1.1.1-SNAPSHOT with prependFamily in the
configuration:

  <plugin>
    <groupId>org.scalaxb</groupId>
    <artifactId>scalaxb-maven-plugin</artifactId>
    <version>1.1.1-SNAPSHOT</version>
    <configuration>
      <prependFamily>true</prependFamily>
      <!-- ... -->
    </configuration>
    <executions>
      <execution>
        <id>scalaxb</id>
        <goals>
          <goal>generate</goal>
        </goals>
      </execution>
    </executions>
  </plugin>

You can also use -Dscalaxb.prependFamily=true.


Reply to this email directly or view it on GitHubhttps://github.com/eed3si9n/scalaxb/issues/215#issuecomment-20011904
.

Dr Matthew Pocock
Turing ate my hamster LTD
mailto: turingatemyhamster@gmail.com

Integrative Bioinformatics Group, School of Computing Science, Newcastle
University
mailto: matthew.pocock@ncl.ac.uk

gchat: turingatemyhamster@gmail.com
msn: matthew_pocock@yahoo.co.uk
irc.freenode.net: drdozer
skype: matthew.pocock
tel: (0191) 2566550
mob: +447535664143

drdozer commented Jun 26, 2013

OK, tried that. No lollipop. Still getting lots of case warnings.

On 25 June 2013 23:21, Martin Ellis notifications@github.com wrote:

Try scalaxb-maven-plugin 1.1.1-SNAPSHOT with prependFamily in the
configuration:

  <plugin>
    <groupId>org.scalaxb</groupId>
    <artifactId>scalaxb-maven-plugin</artifactId>
    <version>1.1.1-SNAPSHOT</version>
    <configuration>
      <prependFamily>true</prependFamily>
      <!-- ... -->
    </configuration>
    <executions>
      <execution>
        <id>scalaxb</id>
        <goals>
          <goal>generate</goal>
        </goals>
      </execution>
    </executions>
  </plugin>

You can also use -Dscalaxb.prependFamily=true.


Reply to this email directly or view it on GitHubhttps://github.com/eed3si9n/scalaxb/issues/215#issuecomment-20011904
.

Dr Matthew Pocock
Turing ate my hamster LTD
mailto: turingatemyhamster@gmail.com

Integrative Bioinformatics Group, School of Computing Science, Newcastle
University
mailto: matthew.pocock@ncl.ac.uk

gchat: turingatemyhamster@gmail.com
msn: matthew_pocock@yahoo.co.uk
irc.freenode.net: drdozer
skype: matthew.pocock
tel: (0191) 2566550
mob: +447535664143

@martiell

This comment has been minimized.

Show comment
Hide comment
@martiell

martiell Jun 26, 2013

Collaborator

Yep, I see 9 case warnings with and without prependFamily.

Regarding publishing scalaxb to the local maven repository, there's a script called install in that directory which I use, because I can never remember the syntax.

But, you can avoid building scalaxb and mvn-scalaxb locally by adding the following to the pom.xml:

  <repositories>
    <repository>
      <id>sonatype-nexus-snapshots</id>
      <url>https://oss.sonatype.org/content/repositories/snapshots</url>
      <releases>
        <enabled>false</enabled>
      </releases>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </repository>
  </repositories>
  <pluginRepositories>
    <pluginRepository>
      <id>sonatype-nexus-snapshots</id>
      <url>https://oss.sonatype.org/content/repositories/snapshots</url>
      <releases>
        <enabled>false</enabled>
      </releases>
          <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </pluginRepository>
  </pluginRepositories>
Collaborator

martiell commented Jun 26, 2013

Yep, I see 9 case warnings with and without prependFamily.

Regarding publishing scalaxb to the local maven repository, there's a script called install in that directory which I use, because I can never remember the syntax.

But, you can avoid building scalaxb and mvn-scalaxb locally by adding the following to the pom.xml:

  <repositories>
    <repository>
      <id>sonatype-nexus-snapshots</id>
      <url>https://oss.sonatype.org/content/repositories/snapshots</url>
      <releases>
        <enabled>false</enabled>
      </releases>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </repository>
  </repositories>
  <pluginRepositories>
    <pluginRepository>
      <id>sonatype-nexus-snapshots</id>
      <url>https://oss.sonatype.org/content/repositories/snapshots</url>
      <releases>
        <enabled>false</enabled>
      </releases>
          <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </pluginRepository>
  </pluginRepositories>

@eed3si9n eed3si9n closed this in 17e8e81 Jul 4, 2013

@eed3si9n

This comment has been minimized.

Show comment
Hide comment
@eed3si9n

eed3si9n Jul 4, 2013

Owner

Implemented case insensitive comparison in 1.1.1-SNAPSHOT. Have not tried sra_1_5 schemas.

Owner

eed3si9n commented Jul 4, 2013

Implemented case insensitive comparison in 1.1.1-SNAPSHOT. Have not tried sra_1_5 schemas.

eed3si9n added a commit that referenced this issue Jul 28, 2013

eed3si9n added a commit that referenced this issue Sep 12, 2013

eed3si9n added a commit that referenced this issue Nov 8, 2014

eed3si9n added a commit that referenced this issue Jul 7, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment